From c75b27c052c8ee74b1dc6c7af7a7a8d0c3c65864 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 1 Nov 2020 06:25:26 -0500 Subject: [PATCH] Fix top document partyness Reported internally. Regression from: - https://github.com/gorhill/uBlock/commit/1e2eb037e5b4754feb4a40519951b3e7a73d545d Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/760 --- src/js/filtering-context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/filtering-context.js b/src/js/filtering-context.js index 20b66ccb6..af68ca19e 100644 --- a/src/js/filtering-context.js +++ b/src/js/filtering-context.js @@ -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);