summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2020-05-15 21:33:16 +0200
committerhackademix2020-05-15 21:33:16 +0200
commit63ca29158ab91373b5722ba667ddb536fb8f62cb (patch)
tree46697a358871fbca10fe7d4a4e7bea082b7b4978 /src
parent7c8b75a67153f1e92cdea53496b125e592b1cb86 (diff)
downloadnoscript-63ca29158ab91373b5722ba667ddb536fb8f62cb.tar.gz
noscript-63ca29158ab91373b5722ba667ddb536fb8f62cb.tar.xz
noscript-63ca29158ab91373b5722ba667ddb536fb8f62cb.zip
Fixed 3rd party scripts blocking regression on Firefox Trunk due to XBL removal (thanks guardao for reporting).
Diffstat (limited to 'src')
-rw-r--r--src/bg/RequestGuard.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js
index 725a2bf..9cc2eb0 100644
--- a/src/bg/RequestGuard.js
+++ b/src/bg/RequestGuard.js
@@ -20,9 +20,6 @@ var RequestGuard = (() => {
media: "media",
other: "",
};
- const allTypes = UA.isMozilla ? Object.keys(policyTypesMap)
- : ["main_frame", "sub_frame", "stylesheet", "script", "image", "font",
- "object", "xmlhttprequest", "ping", "csp_report", "media", "websocket", "other"];
Object.assign(policyTypesMap, {"webgl": "webgl"}); // fake types
const TabStatus = {
@@ -509,7 +506,7 @@ var RequestGuard = (() => {
let allUrls = ["<all_urls>"];
let docTypes = ["main_frame", "sub_frame", "object"];
let filterDocs = {urls: allUrls, types: docTypes};
- let filterAll = {urls: allUrls, types: allTypes};
+ let filterAll = {urls: allUrls};
listen("onBeforeRequest", filterAll, ["blocking"]);
listen("onHeadersReceived", filterDocs, ["blocking", "responseHeaders"]);
(listeners.onHeadersReceivedLast = new LastListener(wr.onHeadersReceived, request => {