mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Mind anscestor hostnames when evaluating host permissions
Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/569
This commit is contained in:
parent
dba33dd71d
commit
4e0f47f11a
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue