mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Restore behind-the-scene origin for docless secondary resources
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2515
This commit is contained in:
parent
4690885c85
commit
8f32bee8b9
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ const µBlock = { // jshint ignore:line
|
|||
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||
return this;
|
||||
}
|
||||
const origin = originFromURI(this.url);
|
||||
const origin = (this.itype & this.FRAME_ANY) !== 0
|
||||
? originFromURI(this.url)
|
||||
: this.tabOrigin;
|
||||
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue