Fix for regression: request and execution attempts not being reported anymore in the UI if restrictions are disabled (thanks Stefan Mey for report).

This commit is contained in:
hackademix 2022-03-11 23:18:33 +01:00
parent 6a59d1090e
commit da7ee2104a
1 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,9 @@ var RequestGuard = (() => {
if (ns.unrestrictedTabs.has(tabId) && type.endsWith("frame") && url.startsWith("https:")) { if (ns.unrestrictedTabs.has(tabId) && type.endsWith("frame") && url.startsWith("https:")) {
TabStatus.addOrigin(tabId, url); TabStatus.addOrigin(tabId, url);
} }
if (type !== "main_frame") {
Content.reportTo(request, true, policyType);
}
return ALLOW; return ALLOW;
} }
let isFetch = "fetch" === policyType; let isFetch = "fetch" === policyType;