On Jul 14, 2009, at 12:15 PM, scostas wrote:

a) I added a new javascript class, and it works fine, but when I run the webpage inside an iframe, it doesn't work. How have I to add the new class and object to make it work in the iframes too?

In the code you pasted:

   WebKitWebFrame* frame = webkit_web_view_get_main_frame (web_view);

This line always retrieves the main frame of the WebView. If you want to add your object to the global object of an iframe, you need to get the WebKitWebFrame* corresponding to that iframe.

-Adam

_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to