1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02: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:
Raymond Hill 2023-02-28 20:08:31 -05:00
parent 4690885c85
commit 8f32bee8b9
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;
} }