Revision 4c6a2323
Added by koszko over 1 year ago
content/policy_enforcing.js | ||
---|---|---|
43 | 43 |
* proprietary program, I am not going to enforce this in court. |
44 | 44 |
*/ |
45 | 45 |
|
46 |
#FROM common/misc.js IMPORT gen_nonce |
|
46 |
#FROM common/misc.js IMPORT gen_nonce, csp_header_regex
|
|
47 | 47 |
|
48 | 48 |
document.content_loaded = document.readyState === "complete"; |
49 | 49 |
const wait_loaded = e => e.content_loaded ? Promise.resolve() : |
... | ... | |
237 | 237 |
#ENDIF |
238 | 238 |
|
239 | 239 |
/* |
240 |
* Here we block all scripts of a document which might be either and
|
|
240 |
* Here we block all scripts of a document which might be either an |
|
241 | 241 |
* HTMLDocument or an XMLDocument. Modifying an XML document might disrupt |
242 | 242 |
* Mozilla's XML preview. This is an unfortunate thing we have to accept for |
243 | 243 |
* now. XML documents *have to* be sanitized as well because they might |
Also available in: Unified diff
make Haketilo buildable again (for Mozilla)
How cool it is to throw away 5755 lines of code...