[webkit-help] Feedback about Content Blocking Extensions from Adblock Plus
sebastian at adblockplus.org
Sun Jun 14 07:07:49 PDT 2015
I'm from Adblock Plus, and just read the articleon the WebKit website 
about the new content blocking mechanism, introduced with Safari 9. Thanks
for providing some details. But I identified following shortcomings that
would effectively make the new mechanism insufficient for us, or anybody
supporting our filters , which are used by popular filter lists,
1. Most importantly, our exception rules are recursive. For example ||
example.com$document prevents not only documents loaded from example.com
being blocked. But also resources loaded as part of that document or in any
of it's subframes or their subframes wouldn't be blocked either. However,
this logic doesn't seem to be possible with the ignore-previous-rules
action. A recursive flag would come handy here.
2. There doesn't seem to be a way to distinguish between document and
subdocument requests. While Adblock Plus blocks frames, it never blocks the
top level document, so that users can still access the resource that is
blocked, when entering its URL in the address bar.
3. A dedicated resource-type for XMLHttpRequests, objects (requests loading
a Flash element) and object subrequests (subsequent requests issued by a
Flash object) would certainly be useful as well. EasyList has quite some
filters specifically checking for those.
4. Adblock Plus uses filters subscriptions (periodically downloaded filter
lists, like EasyList) as well as filters added by the user, to decide what
to block. So we'd need a way to dynamically configure block lists. I saw
the pre-release announcements mentioning the new setContentBlocker API for
this purpose. I couldn't find any details on that, but I assume that you
need a way to invalidate previously set blocking rules when filters in
Adblock Plus changed. However, a way to add new rules without flushing the
previously set block list would be extremely useful in some cases as well.
So ideally, this API should let you modify the block list in place.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help