Properly detect incorrect usage of CSS combinators

Related discussion:
- https://www.reddit.com/r/uBlockOrigin/comments/12fquk4/ublock_is_on_but_im_still_getting_ads_on_this/jfpkz1g/
This commit is contained in:
Raymond Hill 2023-04-10 15:13:03 -04:00
parent 768bf7d6f6
commit dad862f063
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -3093,6 +3093,7 @@ class ExtSelectorCompiler {
if ( parts === undefined ) { return; }
if ( this.astHasType(parts, 'Error') ) { return; }
if ( this.astHasType(parts, 'Selector') === false ) { return; }
if ( this.astIsValidSelectorList(parts) === false ) { return; }
if (
this.astHasType(parts, 'ProceduralSelector') === false &&
this.astHasType(parts, 'ActionSelector') === false