[XSS] Interactive testing made a bit easier.
This commit is contained in:
parent
49959aa108
commit
0ff5320725
|
@ -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", {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue