Allowing header filters not filtering by content type
Environment
- OS version: MacOS
- Browser version: Chrome 98
- Extension version: ABP 3.12
- Core version: fa0bb0c0 (the one shipped with ABP 3.12)
- Enabled Filter lists: None
How to reproduce
- Go to https://testpages.adblockplus.org/en/exceptions/header
- Add both filters to ABP options, reload the page and see they behave as expected
- On ABP options, replace the allowing filter
@@testpages.adblockplus.org/testfiles/header_exception/$header
with@@testpages.adblockplus.org/testfiles/header_exception/$header=content-type=audio/ogg
and reload the page
Observed behavior
The green image with the white square is still allowlisted
Expected behavior
The green image with the white square is not allowlisted
Additional Information
My expectation is that with a non-matching content type, the allowing filter wouldn't apply.
I tentatively created the issue on this project, but I'm not sure if that would be caused by ABP instead. In any case, I'd suggest to add the described case to the existing matching filter unit tests if possible.