mirror of https://github.com/gorhill/uBlock.git
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
|
@ -336,7 +336,9 @@ const µBlock = { // jshint ignore:line
|
||||||
this.setDocOrigin(origin).setTabOrigin(origin);
|
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||||
return this;
|
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);
|
this.setDocOrigin(origin).setTabOrigin(origin);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue