Reject generic HTML block filters

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1844

Generic HTML block filters will by highlighted as invalid and
rejected by uBO at compile time.
This commit is contained in:
Raymond Hill 2021-11-24 18:14:09 -05:00
parent 8bad29fbcc
commit 1ac9c5ceb7
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -324,6 +324,9 @@ const Parser = class {
}
this.flavorBits |= BITFlavorExtHTML;
selector = selector.slice(1);
if ( (this.hasOptions() || this.isException()) === false ) {
this.flavorBits |= BITFlavorUnsupported;
}
}
// ##...
else {