From 3292f128d2fb5a2fa41246a4daa799bc82ee733f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 11 May 2025 07:32:32 -0400 Subject: [PATCH] [mv3] Mind discarded regex- or path-based entries when determining genericity Related issue: https://github.com/uBlockOrigin/uAssets/issues/28260 --- src/js/static-dnr-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-dnr-filtering.js b/src/js/static-dnr-filtering.js index 0bc82a7f7..231788604 100644 --- a/src/js/static-dnr-filtering.js +++ b/src/js/static-dnr-filtering.js @@ -226,6 +226,7 @@ function addExtendedToDNR(context, parser) { for ( const { hn, not, bad } of parser.getExtFilterDomainIterator() ) { if ( bad ) { continue; } if ( not && exception ) { continue; } + isGeneric = false; if ( isRegexOrPath(hn) ) { continue; } if ( details === undefined ) { context.specificCosmeticFilters.set(compiled, details = {}); @@ -248,7 +249,6 @@ function addExtendedToDNR(context, parser) { details.matches = [ '*' ]; continue; } - isGeneric = false; details.matches.push(hn); } if ( details === undefined ) { return; }