New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Safari] In Content Blocker API mode, Adguard converts rule too broadly #262
Comments
Yep, I am aware of this. Not sure if mention works that way, but anyway, let's try to summon fanboy here: @ryanbr The root cause of this issue is that Safari does not make any difference between "document" and "subdocument". Let me elaborate on this. Default behavior for Adguard and any other ad blocker is to block subdocuments (iframes), but not to block "documents" (for instance, to not mess with you clicking such links). In the very first version converter we've tried to exclude "document" resource type while converting basic rules, but it appears that this is not very good idea, too many frames stayed unblocked. Back then I've filed a bug report to the webkit team: https://bugs.webkit.org/show_bug.cgi?id=153559 However, it seems that they are not eager to further develop the content blocking API. At least I've seen almost no reaction on all the feature requests. Temporary solution for this issue is to add |
@aitte2 could you please check this |
@ameshkov Ah Content Blocker API limitations again. :( I wish Apple would take it seriously and improve the API, it's a super high-performance blocker but the API is so half-finished... I tested your unbreak rule above and it works! |
Totally. |
Thanks, added it to the Safari filter. |
In addition, it would be nice if you add a comment about it to the webkit bugzilla. More people bugging them about it, greater chance one day they will do it. Having these two issues resolved would be really great: |
@ameshkov Because I also care deeply about this issue, I have commented on both bugs. :) It's so close to perfect... I wish they would take it all the way to perfection. |
@aitte2 thank you! |
…ad_notifications to master * commit '46159fc8a9f99d3bf727f8eb84496153ae6f3ae1': fix fix viewed notifications fix review comments Add translations update version make cross color same as text color feature/ad_notifications feature/ad_notifications feature/ad_notifications move languages in the notifications refactoring and update icon on notification disabling add notifications module show ad notifications
I don't know if this can be fixed, or if it's a limitation of the content blocker API.
To Reproduce:
||list-manage.com/track/
http://abraham-hicks.us4.list-manage.com/track/click?u=1c8e6d19e03449b5d28ee9f3d&id=56c46fcce1&e=88926e2c08
, you will be taken to "about:blank" by Safari. You can find other test links by Googling "list-manage.com/track".I talked to EasyList about the entry on the list, and the author defended it by saying that their HTML newsletters contain tracking-pixels to track that you have read the email (which is what the rule blocks), and by saying that the rule as-written does not block GOING to the page, only LOADING embedded resources from it, which he is of course right about.
This is a problem with the Safari Content Blocker. I wonder if you know what the issue is? Is it something about how the rule is being converted? Is it being converted to a "don't go here, don't load from here" Content Blocker rule instead of just a "don't load from here" rule, for instance?
Can you investigate it please? It's breaking a pretty big part of the web: Opening newsletter links sent by the most popular newsletter software.
The text was updated successfully, but these errors were encountered: