From cc87b488618fd3c3d297f1ded4510511bb849823 Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 25 Nov 2019 10:55:32 +0100 Subject: [PATCH] Fixed scripts could not be enabled on file: SVG documents. --- src/content/DocumentCSP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/DocumentCSP.js b/src/content/DocumentCSP.js index 9991d4f..057d564 100644 --- a/src/content/DocumentCSP.js +++ b/src/content/DocumentCSP.js @@ -10,7 +10,7 @@ class DocumentCSP { let {document} = this; if (!(document instanceof HTMLDocument)) { // this is not HTML, hence we cannot inject a CSP - if (!capabilites.has("script")) { + if (!capabilities.has("script")) { // safety net for XML (especially SVG) documents document.defaultView.addEventListener("beforescriptexecute", e => e.preventDefault(), true);