From 4e0f47f11a12839014d3f3b28b75267b56403a9a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 21 Dec 2025 11:16:25 -0500 Subject: [PATCH] [mv3] Mind anscestor hostnames when evaluating host permissions Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/569 --- platform/mv3/extension/js/mode-manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/mv3/extension/js/mode-manager.js b/platform/mv3/extension/js/mode-manager.js index 416613b5f..f30649c42 100644 --- a/platform/mv3/extension/js/mode-manager.js +++ b/platform/mv3/extension/js/mode-manager.js @@ -384,7 +384,8 @@ export async function syncWithBrowserPermissions() { if ( afterAllowedHostnames.has('all-urls') === false ) { const { none, basic, optimal, complete } = filteringModes; for ( const hn of new Set([ ...optimal, ...complete ]) ) { - if ( afterAllowedHostnames.has(hn) ) { continue; } + if ( afterAllowedHostnames.has(hn) ) { continue; } + if ( isDescendantHostnameOfIter(hn, afterAllowedHostnames) ) { continue; } applyFilteringMode(filteringModes, hn, afterMode); modified = true; }