Ignore negated request types when validating redirect option

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3835
This commit is contained in:
Raymond Hill 2025-10-20 09:14:22 -04:00
parent ae2f4da11f
commit 50e898b847
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -1371,7 +1371,9 @@ export class AstFilterParser {
realBad = hasValue;
if ( realBad ) { break; }
requestTypeCount += 1;
unredirectableTypeCount += 1;
if ( (flags & NODE_FLAG_IS_NEGATED) === 0 ) {
unredirectableTypeCount += 1;
}
break;
case NODE_TYPE_NET_OPTION_NAME_POPUNDER:
case NODE_TYPE_NET_OPTION_NAME_POPUP: