[webkit-gtk] Trapping URL access from inside WebKit

Emmanuel Rodriguez emmanuel.rodriguez at gmail.com
Wed Sep 7 13:44:10 PDT 2011


On Wed, Sep 7, 2011 at 18:12, Andrew Wood <a.j.w at me.com> wrote:
> How do I intercept a request to load a URL which has come from within
> webkit, such as a user clicking a link on a page, a redirect (either via
> HTTP or using the meta refresh tag), or a page which is using frames to load
> URLs other than the one typed by the user?

The signal "navigation-policy-decision-requested" that's emitted by
the WebKitWebView can help you. With it you can detect users requests
for iframes and clicked links. You'll have to test how it handles
redirects.

-- 
Emmanuel Rodriguez


More information about the webkit-gtk mailing list