From 95bc9b67b0523fc03831328d759c4fb7505783e2 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 24 Aug 2022 12:22:12 +0200 Subject: fix SVG script blocking --- content/policy_enforcing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content') 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)); -- cgit v1.2.3