Skip to content

Commit

Permalink
Reject generic HTML block filters
Browse files Browse the repository at this point in the history
Related feedback:
- uBlockOrigin/uBlock-issues#1844

Generic HTML block filters will by highlighted as invalid and
rejected by uBO at compile time.
  • Loading branch information
gorhill committed Nov 24, 2021
1 parent 8bad29f commit 1ac9c5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ const Parser = class {
}
this.flavorBits |= BITFlavorExtHTML;
selector = selector.slice(1);
if ( (this.hasOptions() || this.isException()) === false ) {
this.flavorBits |= BITFlavorUnsupported;
}
}
// ##...
else {
Expand Down

0 comments on commit 1ac9c5c

Please sign in to comment.