summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bg/RequestGuard.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js
index 55a78c8..8214a3d 100644
--- a/src/bg/RequestGuard.js
+++ b/src/bg/RequestGuard.js
@@ -264,7 +264,10 @@ var RequestGuard = (() => {
if (policyType) {
let {url, originUrl, documentUrl} = request;
if (("fetch" === policyType || "frame" === policyType) &&
- (url === originUrl && originUrl === documentUrl ||
+ (((!originUrl || url === originUrl) && originUrl === documentUrl
+ // some extensions make them both undefined,
+ // see https://github.com/eight04/image-picka/issues/150
+ ) ||
INTERNAL_SCHEME.test(originUrl))
) {
// livemark request or similar browser-internal, always allow;