Include ServiceWorker-initiated fetch requests in UI reporting (thanks 0_o for report).
This commit is contained in:
parent
ac9237f565
commit
1e96503130
|
@ -303,8 +303,9 @@ var RequestGuard = (() => {
|
|||
type, url, documentUrl, originUrl
|
||||
};
|
||||
if (tabId < 0) {
|
||||
if (type === "script" && url.startsWith("https://") && documentUrl && documentUrl.startsWith("https://")) {
|
||||
// service worker / importScripts()?
|
||||
if ((policyType === "script" || policyType === "fetch") &&
|
||||
url.startsWith("https://") && documentUrl && documentUrl.startsWith("https://")) {
|
||||
// service worker request ?
|
||||
let payload = {request, allowed, policyType, serviceWorker: Sites.origin(documentUrl)};
|
||||
let recipient = {frameId: 0};
|
||||
for (let tabId of TabStatus.findTabsByOrigin(payload.serviceWorker)) {
|
||||
|
|
Loading…
Reference in New Issue