mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
Fix top document partyness
Reported internally.
Regression from:
- 1e2eb037e5
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/760
This commit is contained in:
parent
ba57cdd096
commit
c75b27c052
@ -147,11 +147,11 @@ const FilteringContext = class {
|
|||||||
// assume the origin of the context is the same as the request itself.
|
// assume the origin of the context is the same as the request itself.
|
||||||
fromWebrequestDetails(details) {
|
fromWebrequestDetails(details) {
|
||||||
const tabId = details.tabId;
|
const tabId = details.tabId;
|
||||||
this.fromTabId(tabId);
|
|
||||||
this.type = details.type;
|
this.type = details.type;
|
||||||
if ( this.itype === MAIN_FRAME && tabId > 0 ) {
|
if ( this.itype === MAIN_FRAME && tabId > 0 ) {
|
||||||
µBlock.tabContextManager.push(tabId, details.url);
|
µBlock.tabContextManager.push(tabId, details.url);
|
||||||
}
|
}
|
||||||
|
this.fromTabId(tabId); // Must be called AFTER tab context management
|
||||||
this.realm = '';
|
this.realm = '';
|
||||||
this.id = details.requestId;
|
this.id = details.requestId;
|
||||||
this.setURL(details.url);
|
this.setURL(details.url);
|
||||||
|
Loading…
Reference in New Issue
Block a user