diff options
author | hackademix | 2020-05-15 21:33:16 +0200 |
---|---|---|
committer | hackademix | 2020-05-15 21:33:16 +0200 |
commit | 63ca29158ab91373b5722ba667ddb536fb8f62cb (patch) | |
tree | 46697a358871fbca10fe7d4a4e7bea082b7b4978 /src | |
parent | 7c8b75a67153f1e92cdea53496b125e592b1cb86 (diff) | |
download | noscript-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.js | 5 |
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 => { |