Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cosmetically filtered DOM elements in embedded frames are not counted #1856
Describe the issue
I became aware of this bug when I investigate the issue reported in uBlockOrigin/uAssets#91.
Toggling the cosmetic filtering switch showed that there were many DOM elements hidden on the page as a result of cosmetic filtering (also as evidenced by the logger output), and yet the cosmetic filtering switch in uBO's popup panel was showing no DOM element being filtered.
The cause is that uBO does not count filtered DOM elements in embedded frames, only those in the top document.
Steps for anyone to reproduce the issue
Follow steps in uBlockOrigin/uAssets#91.
This occurs on any browser, any version of uBO (1.8.0 and less).
Your filter lists
EasyList must be selected for the repro case.