File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 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" , {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments