[mv3] Mind anscestor hostnames when evaluating host permissions

Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/569
This commit is contained in:
Raymond Hill 2025-12-21 11:16:25 -05:00
parent dba33dd71d
commit 4e0f47f11a
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -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;
}