diff --git a/src/bg/main.js b/src/bg/main.js index d589387..7dca693 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -309,6 +309,16 @@ include("/test/run.js"); }, + async testIC(callbackOrUrl) { + await include("xss/InjectionChecker.js"); + let IC = await XSS.InjectionChecker; + let ic = new IC(); + ic.logEnabled = true; + return (typeof callbackOrUrl === "function") + ? await callbackOrUrl(ic) + : ic.checkUrl(callbackOrUrl); + }, + async savePolicy() { if (this.policy) { await Storage.set("sync", { diff --git a/src/manifest.json b/src/manifest.json index e228f94..3b4697c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -51,7 +51,6 @@ "/nscl/common/Permissions.js", "/nscl/common/Policy.js", "/nscl/common/locale.js", - "/nscl/common/SyntaxChecker.js", "/nscl/common/Storage.js", "/nscl/common/include.js", "/nscl/service/DocStartInjection.js",