[webkit-dev] How to execute a JavaScript containing site with JSCore?

Geoffrey Garen ggaren at apple.com
Mon Jun 15 09:12:55 PDT 2009


> Is there a straigthforwarded way to collect all the relationships  
> between the
> site's object and to get a js-context of it?
>
> What I want in the end is to get access on the `document`-element,  
> e.g. to
> perform calls like `document.forms`.

If you have a JSContextRef that corresponds to a WebKit frame, you can  
get its global object using JSContextGetGlobalObject(), and get the  
global object's document using JSObjectGetProperty().

Geoff


More information about the webkit-dev mailing list