brave-experiments / ad-block

Ad block engine used in the Brave browser for ABP filter syntax based lists like EasyList.
https://www.brave.com
Mozilla Public License 2.0
239 stars 95 forks source link

Matching for host anchored filters doesn't work in this cases when deserialized #190

Closed bbondy closed 5 years ago

bbondy commented 5 years ago

URL like: https://2mdn.info/something

||2mdn.info^$third-party,domain=contextdomain.com ||2mdn.info$third-party,domain=contextdomain.com

This does match though ||2mdn.info/

The problem is with deserialization of context only domains, which is a performance optimization that was done when adding EasyPrivacy.

This only reproduces when the list is deserialized from serialized state and not from parsing directly.