1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 08:37:11 +02:00

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; this.flavorBits |= BITFlavorExtHTML;
selector = selector.slice(1); selector = selector.slice(1);
if ( (this.hasOptions() || this.isException()) === false ) {
this.flavorBits |= BITFlavorUnsupported;
}
} }
// ##... // ##...
else { else {