aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-24 12:22:12 +0200
committerWojtek Kosior <koszko@koszko.org>2022-08-24 12:22:12 +0200
commit95bc9b67b0523fc03831328d759c4fb7505783e2 (patch)
treeafd82ecef6a0e4011c0e02213b0636f9c278c189
parent50b8bee7bfb68717753bd1d2af935b462f6a28f5 (diff)
downloadbrowser-extension-95bc9b67b0523fc03831328d759c4fb7505783e2.tar.gz
browser-extension-95bc9b67b0523fc03831328d759c4fb7505783e2.zip
fix SVG script blocking
-rw-r--r--content/policy_enforcing.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js
index b13eb82..69a12fd 100644
--- a/content/policy_enforcing.js
+++ b/content/policy_enforcing.js
@@ -447,7 +447,7 @@ async function sanitize_document(doc, policy) {
}
const scripts = [...root.getElementsByTagNameNS(html_ns, "script"),
- ...root.getElementsByTagNameNS(svg_ns, "svg")];
+ ...root.getElementsByTagNameNS(svg_ns, "script")];
scripts.forEach(s => sanitize_script(s, policy));
temporary_html.replaceWith(root);
scripts.forEach(s => desanitize_script(s, policy));