summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-08-18 20:54:07 +0200
committerWojtek Kosior <koszko@koszko.org>2021-08-18 20:54:07 +0200
commit3d0efa153c95f3bf4912379f910bc59d0fd563c9 (patch)
tree037779008eb9513fc7a4e30b135a769313cc7d43 /content
parent014f2a2f4e2071c35314d67285711f0f4615266b (diff)
downloadbrowser-extension-3d0efa153c95f3bf4912379f910bc59d0fd563c9.tar.gz
browser-extension-3d0efa153c95f3bf4912379f910bc59d0fd563c9.zip
remove unneeded policy-related cosole messages; restore IceCat 60 compatibility
Diffstat (limited to 'content')
-rw-r--r--content/main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/main.js b/content/main.js
index 8adcd48..164ebe3 100644
--- a/content/main.js
+++ b/content/main.js
@@ -84,8 +84,6 @@ function block_script(node)
function inject_csp(head)
{
- console.log('injecting CSP');
-
let meta = document.createElement("meta");
meta.setAttribute("http-equiv", "Content-Security-Policy");
meta.setAttribute("content", csp_rule(nonce));
@@ -102,9 +100,8 @@ if (!is_privileged_url(document.URL)) {
const matches = [...document.cookie.matchAll(/hachette-(\w*)=([^;]*)/g)];
let [policy, signature] = matches.reduce(reductor, []);
- console.log("extracted policy", [signature, policy]);
if (!policy || policy.url !== document.URL) {
- console.log("using default policy");
+ console.log("WARNING! Using default policy!!!");
policy = {allow: false, nonce: gen_nonce()};
}