1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01: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:
Raymond Hill 2020-11-01 06:25:26 -05:00
parent ba57cdd096
commit c75b27c052
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -147,11 +147,11 @@ const FilteringContext = class {
// assume the origin of the context is the same as the request itself.
fromWebrequestDetails(details) {
const tabId = details.tabId;
this.fromTabId(tabId);
this.type = details.type;
if ( this.itype === MAIN_FRAME && tabId > 0 ) {
µBlock.tabContextManager.push(tabId, details.url);
}
this.fromTabId(tabId); // Must be called AFTER tab context management
this.realm = '';
this.id = details.requestId;
this.setURL(details.url);