Skip to content

Commit 0ff5320

Browse files
committed
[XSS] Interactive testing made a bit easier.
1 parent 49959aa commit 0ff5320

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/bg/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,16 @@
309309
include("/test/run.js");
310310
},
311311

312+
async testIC(callbackOrUrl) {
313+
await include("xss/InjectionChecker.js");
314+
let IC = await XSS.InjectionChecker;
315+
let ic = new IC();
316+
ic.logEnabled = true;
317+
return (typeof callbackOrUrl === "function")
318+
? await callbackOrUrl(ic)
319+
: ic.checkUrl(callbackOrUrl);
320+
},
321+
312322
async savePolicy() {
313323
if (this.policy) {
314324
await Storage.set("sync", {

src/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"/nscl/common/Permissions.js",
5252
"/nscl/common/Policy.js",
5353
"/nscl/common/locale.js",
54-
"/nscl/common/SyntaxChecker.js",
5554
"/nscl/common/Storage.js",
5655
"/nscl/common/include.js",
5756
"/nscl/service/DocStartInjection.js",

0 commit comments

Comments
 (0)