diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-01-29 00:03:51 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-01-29 00:04:44 +0100 |
commit | 4c6a2323d90e9321ec2b78e226167b3013ea69ab (patch) | |
tree | 682ab3abd53a68d28d04f0470766699dcadd7294 /content/policy_enforcing.js | |
parent | ea9df6c7688613783ca114f0f11c6f6baf30036b (diff) | |
download | browser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.tar.gz browser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.zip |
make Haketilo buildable again (for Mozilla)
How cool it is to throw away 5755 lines of code...
Diffstat (limited to 'content/policy_enforcing.js')
-rw-r--r-- | content/policy_enforcing.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js index 8e26afb..320b6d0 100644 --- a/content/policy_enforcing.js +++ b/content/policy_enforcing.js @@ -43,7 +43,7 @@ * proprietary program, I am not going to enforce this in court. */ -#FROM common/misc.js IMPORT gen_nonce +#FROM common/misc.js IMPORT gen_nonce, csp_header_regex document.content_loaded = document.readyState === "complete"; const wait_loaded = e => e.content_loaded ? Promise.resolve() : @@ -237,7 +237,7 @@ function prevent_script_execution(event) { #ENDIF /* - * Here we block all scripts of a document which might be either and + * Here we block all scripts of a document which might be either an * HTMLDocument or an XMLDocument. Modifying an XML document might disrupt * Mozilla's XML preview. This is an unfortunate thing we have to accept for * now. XML documents *have to* be sanitized as well because they might |