Updates:
Cc:
joc...@chromium.org
Comment #4 on issue 128196 by
bat...@chromium.org: AdBlock extension causes
I discussed this with Jochen today. We believe that the Declarative Web
Request API with simple CSS and JavaScript injection is not a solution. We
need to introduce a notification mechanism that triggers a listener and
passes the DOM element that was blocked. The good new is that we now have a
plan that is likely to be accepted by the WebKit folks (thanks, Jochen!):
---
we add callbacks to the frame loader client for when the different resource
types we're interested in failed to load, e.g. HTMLImageElement (or image
loader probably) would call
frame->loader()->client()->notifyImageFailedToLoad(this, error) and so on.
If something is blocked by an extension, we would pass in a special html
error code. Now when render view (our frame loader client) is invoked with
that special error code, we know that the request failed due to an
extension.
---
The implementation should work likewise for the old and the new WebRequest
API. It's on my agenda.