[webkit-help] extend javascript inside iframes, and hide cursor

Adam Roben aroben at apple.com
Tue Jul 14 09:26:08 PDT 2009

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.


More information about the webkit-help mailing list