[webkit-gtk] Usefulness of webkit_frame_is_main_frame ?

Jérémy Lal kapouer at melix.org
Tue Feb 23 06:10:48 PST 2016

I want to prevent iframes from loading.
I naively looked into getting the frame from which a policy decision came,
or the frame for which a send request (in the extension) is called, but i
can't find a
way to get an actual frame instance from which
would tell me if i want to let the frame load or not.

the only webkit2gtk function i found that provides a frame is
which leads to tautology
webkit_frame_is_main_frame(webkit_web_page_get_main_frame(page)) == TRUE

Am i missing a use for webkit_frame_is_main_frame ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20160223/b4d85977/attachment.html>

More information about the webkit-gtk mailing list