-
Notifications
You must be signed in to change notification settings - Fork 974
Brave fails tests on simple-adblock.com #6788
Comments
I'm just skimming this now, but we're blocking the Google Analytics call that is made here (sending empty url resulting in a 307 redirect that fails). Kind of a funky test for Brave, because we don't element-hide as it has perf negatives, so the rt side of the test applies less in our use-case. IMO The "testing adblocking" test on the left is kind of weird too, the test is site-served via iframe from this URL: http://simple-adblock.com/adblocktest/adblocktest.htm Which seems like a not-so-genuine way to test an adblocker, unless you're the one that owns the adblocker, and want every other blocker except your own to fail the test. When I see who owns this blocker, I'm not surprised in the slightest that this test is setup this way. I'm also not seeing any 3rd party ad requests aside from the Google Translate call, which seems like more of a webcompat item than ad blocking: I'd suggest we apply a site-hack for this iframe URL request to resolve w/minimal friction: Can def assist further as needed. |
Confirming that The subdocument is 1p hosted, which loads in the If we can a |
@lukemulks Looks like they block based on a CSS selector:
|
@jonathansampson You're right about that. I also was kind of short-cutting the fix here, because their testing method is pretty weak. This simulation is great if you own this blocker - otherwise, meh, the other blockers have to subscribe to the same rules, or are branded as non-functional. I could see this method being legit if they actually were serving ads from an ad server to test, but serving the test from the same domain is kind of like cheating in my opinion. In addition to the CSS selector blocking that you pointed out, they're applying a simple I probably was being a little short-sighted with the fix on this, but since we don't block by CSS selection, and since we don't block 1p url requests, I was leaning toward a fix that cut the legs out from under the test. So there are basically 2 options here:
WDYT? Part of me thinks Option 1 is a little more badass since it snips from a higher level, but another part of me thinks a replacement/emulation is a more apples:apples result. |
@lukemulks I think you're right; this test doesn't reflect the web. Blocking the iframe source is appropriate IMHO. If we wanted to block the elements, we can do that too. We've started doing some basic selector-based hiding via the Brave manifest. We could make an entry for this domain, or apply a more global rule. |
Pls avoid any fix that is only getting the test to pass in a specific way. |
Also I think we don't need to prioritize this in a milestone unless there's some generic things to learn about why we aren't blocking correctly. Unless there's big external pressure for it by many. |
@bbondy SGTM |
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Originally reported on Twitter. Brave presently fails the two tests featured on http://simple-adblock.com/faq/testing-your-adblocker/
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10
Brave Version (revision SHA):
0.13.0
Steps to reproduce:
Is this an issue in the currently released version?
Yes
Can this issue be consistently reproduced?
Yes
Screenshot if needed:
The text was updated successfully, but these errors were encountered: