[webkit-gtk] Selective blocking of image requests
peterbloomfield at bellsouth.net
Sun Mar 24 17:47:58 PDT 2013
I'm exploring porting an email agent from Webkit-1-Gtk to Webkit-2-Gtk. An important privacy issue for users is to control the download of images or other resources from untrusted hosts. In Webkit-1-Gtk we could use the "resource-request-starting" signal to intercept the request, and replace the URI with "about:blank" to postpone the download. In Webkit-2-Gtk, "resource-load-started" appears to be the corresponding signal, but changing the URI in the WebKitURIRequest with webkit_uri_request_set_uri does not prevent the download.
Does the Webkit-2-Gtk API offer a way to intercept the request in time to replace the URI?
Thanks for any help!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: not available
More information about the webkit-gtk