Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcosmetic blocking flag causes shields ad toggle to not work correctly #8688
Comments
|
cc @rebron @kjozwiak @bsclifton as this will be an issue in 1.5.x, but the flag must be enabled manually on 1.5.x. we should fix this for 1.7.x release though. |
|
@LaurenWags is the expected behavior here to tie cosmetic filtering to the Cross-site trackers toggle? If so, i'd vote against that, since there is (in almost all cases) no connection between the cosmetic filtering and tracking. Would either of the following solutions work?
FWIW, i have a weak pref against putting cosmetic filtering in shields, since the shield metaphor suggests privacy-protections |
|
Having a separate shields switch for cosmetic filtering would be helpful for debugging purposes if there an issue with a cosmetic filter we could track down more quickly |
|
I've got no beef with another toggle, its just a matter of slotting it in w/ the other priorities. I know @tomlowenthal is also pushing for more shield configurability. @ryanbr could you create an issue for it, if it doesn't exist here, and we can triage and work through it from there? |
|
cc: @antonok-edm |



Description
If you enable the cosmetic blocking flag (you must do this manually on 1.5.x, but it is enabled by default on 1.7.x), and you change the cross site trackers toggle to OFF, ads do not start appearing on web pages as expected. You must toggle shields off entirely.
Note - if you disable cosmetic blocking flag, this is not an issue, the Cross-site trackers toggle works as expected.
Steps to Reproduce
Cross-site trackers blocked.--> ads are not displayed on the page
--> now ads are displayed on the page
If you disable the brave://flags/#brave-adblock-cosmetic-filtering, then the
Cross-site trackers blockedtoggle begins working as expected (after browser restart.Actual result:
When cosmetic blocking flag is enabled and you toggle
Cross-site trackers blockedOFF, sites do not show ads as expectedExpected result:
Toggling

Cross site trackers blockedto OFF should show ads regardless of the cosmetic blocking flag setting:Reproduces how often:
easily
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
reproduces on other sites like buzzfeed.com, etc.