From 37499bc4dc325809473ecdff3352cd1fcaabaa76 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 19 Feb 2022 19:02:58 +0100 Subject: [PATCH] Use correct context for all subresources checks (thanks user72 for reporting). --- src/bg/RequestGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index f617d1b..bc958d7 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -500,7 +500,7 @@ var RequestGuard = (() => { } if (!allowed) { let capabilities = intersectCapabilities( - policy.get(url, documentUrl).perms, + policy.get(url, ns.policyContext(request)).perms, request); allowed = !policyType || capabilities.has(policyType); if (allowed && request._dataUrl && type.endsWith("frame")) {