diff options
author | hackademix | 2019-02-01 01:16:33 +0100 |
---|---|---|
committer | hackademix | 2019-02-01 01:16:33 +0100 |
commit | 20b689d015ea5743099bdafcac0c6ca6519c22db (patch) | |
tree | 61e9326ba26205907f3c7381cf13a19169a958f5 /src/xss | |
parent | 2fa009673f3d51b14389f8e25075de394290b32c (diff) | |
download | noscript-20b689d015ea5743099bdafcac0c6ca6519c22db.tar.gz noscript-20b689d015ea5743099bdafcac0c6ca6519c22db.tar.xz noscript-20b689d015ea5743099bdafcac0c6ca6519c22db.zip |
Fallback XSS filtering to XSS Auditor since asynchronous webRequest handlers are not supported by Chromium.
Diffstat (limited to 'src/xss')
-rw-r--r-- | src/xss/XSS.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xss/XSS.js b/src/xss/XSS.js index f95ea04..7851e98 100644 --- a/src/xss/XSS.js +++ b/src/xss/XSS.js @@ -113,6 +113,8 @@ var XSS = (() => { return { async start() { + if (!UA.isMozilla) return; // async webRequest is supported on Mozilla only + let {onBeforeRequest} = browser.webRequest; if (onBeforeRequest.hasListener(requestListener)) return; |