diff options
author | hackademix | 2019-03-14 01:57:58 +0100 |
---|---|---|
committer | hackademix | 2019-03-14 01:57:58 +0100 |
commit | d1dd278a81444e2203945fc213a4b69ed1ee49a7 (patch) | |
tree | 8d5324bfd690debdec3f126c68dd376991c94b25 /src/bg/RequestGuard.js | |
parent | 3f2453053bd40102d9bc4eddd5f24759477cca43 (diff) | |
download | noscript-d1dd278a81444e2203945fc213a4b69ed1ee49a7.tar.gz noscript-d1dd278a81444e2203945fc213a4b69ed1ee49a7.tar.xz noscript-d1dd278a81444e2203945fc213a4b69ed1ee49a7.zip |
Selective handling of Tor Browser options and work-around for https://bugzilla.mozilla.org/show_bug.cgi?id=1532530
Diffstat (limited to 'src/bg/RequestGuard.js')
-rw-r--r-- | src/bg/RequestGuard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index a174eba..2f590dc 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -379,7 +379,7 @@ var RequestGuard = (() => { if (pending) { pending.scriptBlocked = scriptBlocked; if (!(pending.headersProcessed && - (scriptBlocked || !ns.isEnforced(tabId) || ns.policy.can(url, "script", request.documentURL)) + (scriptBlocked || !ns.requestCan(request, "script")) )) { debug("[WARNING] onHeadersReceived %s %o", frameId, tabId, pending.headersProcessed ? "has been overridden on": "could not process", |