Skip to content

Commit 50e898b

Browse files
committed
Ignore negated request types when validating redirect option
Related issue: uBlockOrigin/uBlock-issues#3835
1 parent ae2f4da commit 50e898b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/static-filtering-parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,9 @@ export class AstFilterParser {
13711371
realBad = hasValue;
13721372
if ( realBad ) { break; }
13731373
requestTypeCount += 1;
1374-
unredirectableTypeCount += 1;
1374+
if ( (flags & NODE_FLAG_IS_NEGATED) === 0 ) {
1375+
unredirectableTypeCount += 1;
1376+
}
13751377
break;
13761378
case NODE_TYPE_NET_OPTION_NAME_POPUNDER:
13771379
case NODE_TYPE_NET_OPTION_NAME_POPUP:

0 commit comments

Comments
 (0)