mirror of https://github.com/gorhill/uBlock.git
Use request as its own context when none available
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/dn9zso/ When a network request is tabless and contextless, i.e. `tabId === -1` and `frameId === -1`, use the URL of the network request as the context.
This commit is contained in:
parent
30393fdcf1
commit
dd2a9faa4c
|
@ -91,7 +91,7 @@
|
|||
µBlock.normalizePageURL(0, details.documentUrl)
|
||||
);
|
||||
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||
} else if ( this.type.endsWith('_frame') ) {
|
||||
} else if ( this.docId === -1 || this.type.endsWith('_frame') ) {
|
||||
const origin = this.originFromURI(this.url);
|
||||
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue