summaryrefslogtreecommitdiff
path: root/src/bg/RequestGuard.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bg/RequestGuard.js')
-rw-r--r--src/bg/RequestGuard.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js
index 8d30fe7..3936df9 100644
--- a/src/bg/RequestGuard.js
+++ b/src/bg/RequestGuard.js
@@ -287,8 +287,12 @@ var RequestGuard = (() => {
if (policyType) {
let {url, originUrl, documentUrl} = request;
let isFetch = "fetch" === policyType;
+
if ((isFetch || "frame" === policyType) &&
- (((isFetch && !originUrl || url === originUrl) && originUrl === documentUrl
+ (((isFetch && (!originUrl ||
+ browser.runtime.onSyncMessage &&
+ url.includes(browser.runtime.onSyncMessage.ENDPOINT_PREFIX)
+ ) || url === originUrl) && originUrl === documentUrl
// some extensions make them both undefined,
// see https://github.com/eight04/image-picka/issues/150
) ||