Revision 4970930c
Added by koszko over 1 year ago
| content/policy_enforcing.js | ||
|---|---|---|
| 224 | 224 |
* blocked and unable to redefine properties, anyway. |
| 225 | 225 |
*/ |
| 226 | 226 |
if (Object.getOwnPropertyDescriptor(element.wrappedJSObject, attr)) {
|
| 227 |
console.error("Redefined property on a DOM object! The page might have bypassed our script blocking measures!");
|
|
| 227 |
console.error("Haketilo: Redefined property on a DOM object! The page might have bypassed our script blocking measures!");
|
|
| 228 | 228 |
continue; |
| 229 | 229 |
} |
| 230 | 230 |
element.wrappedJSObject[attr] = null; |
| ... | ... | |
| 348 | 348 |
if (registrations.length === 0) |
| 349 | 349 |
return; |
| 350 | 350 |
|
| 351 |
console.warn("Service Workers detected on this page! Unregistering and reloading.");
|
|
| 351 |
console.warn("Haketilo: Service Workers detected on this page! Unregistering and reloading.");
|
|
| 352 | 352 |
|
| 353 | 353 |
try {
|
| 354 | 354 |
await Promise.all(registrations.map(r => r.unregister())); |
| ... | ... | |
| 369 | 369 |
try {
|
| 370 | 370 |
await _disable_service_workers() |
| 371 | 371 |
} catch (e) {
|
| 372 |
console.debug("Exception thrown during an attempt to detect and disable service workers.", e);
|
|
| 372 |
console.warn("Haketilo: Exception thrown during an attempt to detect and disable service workers.", e);
|
|
| 373 | 373 |
} |
| 374 | 374 |
} |
| 375 | 375 |
|
Also available in: Unified diff
prepend all generated console messages with 'Haketilo:'