Skip to content

Commit

Permalink
Fix top document partyness
Browse files Browse the repository at this point in the history
Reported internally.

Regression from:
- 1e2eb03

Related issue:
- uBlockOrigin/uBlock-issues#760
  • Loading branch information
gorhill committed Nov 1, 2020
1 parent ba57cdd commit c75b27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/filtering-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c75b27c

Please sign in to comment.