Skip to content

Regression with :-abp- and :has rules #2400

Description

@THEtomaso

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

uBO doesn't support certain characters, like apostrophes (') in :-abp- and :has rules anymore.
This regression happened somewhere between v1.44.4 and v1.45.0.

A specific URL where the issue occurs.

https://anyataylorjoy.org/

Steps to Reproduce

Add the following rule, to block the twitter widget in the site's sidebar:
anyataylorjoy.org###sidebar > div.side-content:has-text(Adoring Anya's twitter)
(uBO flags this as an invalid rule)

Expected behavior

The widget should be blocked (like with uBO v1.44.4).

Actual behavior

The widget isn't blocked!

uBO version

v1.45.3b11

Browser name and version

LibreWolf v107.0.1-1

Operating System and version

Windows 10 Pro 21H2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionquery or an enquiry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions