Skip to content

ELEMHIDE filters are not displayed as expected in ABP devtools tab

Environment

  • OS version: TBD
  • Browser version: Chrome 108, Firefox 107
  • Extension version: Adblock Plus 3.15
  • Last working version: TBD

Steps to reproduce

  1. Install ABP
  2. Add the following two custom filters:
testpages.adblockplus.org##div[style*="width: 203px;"]
testpages.adblockplus.org##div[style$="width: 202px;"]
testpages.adblockplus.org##div[style^="width: 201px;"]
testpages.adblockplus.org##div[href^="http://testcase-startswith.com/"]
testpages.adblockplus.org##div[style="width: 200px;"]
testpages.adblockplus.org##div[href="http://testcase-attribute.com/"]
testpages.adblockplus.org##div[height="100"][width="100"]
testpages.adblockplus.org##.testcase-examplecontent + .eh-sibling
testpages.adblockplus.org##.testcase-area > .eh-descendant
testpages.adblockplus.org##.eh-class
testpages.adblockplus.org###eh-id
testpages.adblockplus.org##div[id='{{eh-id}}']
  1. Open page https://testpages.adblockplus.org/en/filters/element-hiding
  2. Open dev tools, ABP tab and reload the page

Observed behavior

Only one ELEMHIDE filter is shown at a time in the devtools panel.

image

Expected behavior

All elemhide filters that hit on the page should be displayed. In the case described under steps to reproduce, 12 element hiding filters are applied and should be displayed in the devtools panel.

Hints for testers

In addition to content filters, this bug also affects CSP filters, so the problem should also no longer occur for those.

Edited by Thomas Greiner
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information