From f1a453d349bc581d5578c5e51c699b1252d84acf Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 12 Jul 2021 11:26:25 -0400 Subject: [PATCH] Avoid pointless check of doc id, presence of doc origin is what matter Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1657 --- src/js/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/tab.js b/src/js/tab.js index a2f7db379..75c141a88 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -996,7 +996,7 @@ vAPI.tabs = new vAPI.Tabs(); { const NoPageStore = class extends µBlock.PageStore { getNetFilteringSwitch(fctxt) { - if ( fctxt && fctxt.docId === 0 ) { + if ( fctxt ) { const docOrigin = fctxt.getDocOrigin(); if ( docOrigin ) { return µBlock.getNetFilteringSwitch(docOrigin);