Fixed 3rd party scripts blocking regression on Firefox Trunk due to XBL removal (thanks guardao for reporting).

This commit is contained in:
hackademix 2020-05-15 21:33:16 +02:00
parent 7c8b75a671
commit 63ca29158a
1 changed files with 1 additions and 4 deletions

View File

@ -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 => {