Context:
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
webkit_frame_is_main_frame(frame)
would tell me if i want to let the frame load or not.

Question:
the only webkit2gtk function i found that provides a frame is
webkit_web_page_get_main_frame(page)
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 ?

Jérémy
_______________________________________________
webkit-gtk mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to