We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dcbc7e commit 83979c5Copy full SHA for 83979c5
src/bg/RequestGuard.js
@@ -264,7 +264,10 @@ var RequestGuard = (() => {
264
if (policyType) {
265
let {url, originUrl, documentUrl} = request;
266
if (("fetch" === policyType || "frame" === policyType) &&
267
- (url === originUrl && originUrl === documentUrl ||
+ (((!originUrl || url === originUrl) && originUrl === documentUrl
268
+ // some extensions make them both undefined,
269
+ // see https://github.com/eight04/image-picka/issues/150
270
+ ) ||
271
INTERNAL_SCHEME.test(originUrl))
272
) {
273
// livemark request or similar browser-internal, always allow;
0 commit comments