Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] domain= option fails to match in some rare cases #3328

Closed
olgon opened this issue Dec 8, 2017 · 3 comments
Closed

[Regression] domain= option fails to match in some rare cases #3328

olgon opened this issue Dec 8, 2017 · 3 comments

Comments

@olgon
Copy link

olgon commented Dec 8, 2017

Add this filter and go https://www.kaspersky.com/blog/
/jquery.smartbanner.$domain=~blog.kaspersky.com|~kaspersky.com

Exception |~kaspersky.com does not work. Requests with /jquery.smartbanner. are bloked on kaspersky.com
2017-12-08 06 12 24-fullpage

But if you change the order, exception works ok. With this filter
/jquery.smartbanner.$domain=~kaspersky.com|~blog.kaspersky.com
Requests with /jquery.smartbanner. are not filtered

  • OS/version: Win8.1
  • Browser/version: Firefox 52.5
  • uBlock Origin version: 1.14.21rc2
@gorhill gorhill closed this as completed in c7e8b65 Dec 8, 2017
@gorhill
Copy link
Owner

gorhill commented Dec 8, 2017

Good catch, thanks for reporting.

Regression from 5928996.

@gorhill
Copy link
Owner

gorhill commented Dec 8, 2017

To assess severity, I looked a bit in EasyList to find out if any existing filters would suffer the issue here, and I suspect there might be no case of filters being affected. Normally a filter such as:

/jquery.smartbanner.$domain=~blog.kaspersky.com|~kaspersky.com

Would be really written as

/jquery.smartbanner.$domain=~kaspersky.com

Because there is no point specifying ~blog.kaspersky.com given that it's already being excluded with ~kaspersky.com.

@olgon
Copy link
Author

olgon commented Dec 8, 2017

Because there is no point specifying...

I see, but filter maintainers modify old filters, add exceptions so, probably, it turned out with this filter

/jquery.smartbanner.$domain=~1-ofd.ru|~blog.kaspersky.kz|~blog.kaspersky.ru|~kaspersky.co.in|~kaspersky.co.uk|~kaspersky.co.za|~kaspersky.com|~kaspersky.com.au|~kaspersky.com.br|~kaspersky.com.cn|~kaspersky.com.tr|~kaspersky.de|~kaspersky.es|~kaspersky.fr|~kaspersky.it|~kaspersky.nl|~kaspersky.ru

From RU AdList: BitBlock

Requests with /jquery.smartbanner. are blocked on kaspersky.ru because
~blog.kaspersky.ru located before ~kaspersky.ru

gorhill added a commit that referenced this issue Dec 8, 2017
@gorhill gorhill changed the title domain exception [Regression] domain= option fails to match in some rare cases Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants