[webkit-dev] Extending JS context for all WebFrames

2009-03-12 Thread Ross Lillie
I've been digging into extending the Javascript context associated with a Webview, however I'm not sure that that public JS core APIs accomplish what I want to achieve. Ideally, I would like to extend the JS global object with my external (C++) library routines so that any time a new WebView is

Re: [webkit-dev] Extending JS context for all WebFrames

2009-03-12 Thread Geoffrey Garen
Hi Ross. While I can grab the JSGlobalContext reference from a WebView's mainFrame, and subsequently use the public JS APIs to extend the underlying JS global object, I believe that subsequent WebView allocations will cause the underlying JSGlobalObject to be reinitialized forcing me to

Re: [webkit-dev] Extending JS context for all WebFrames

2009-03-12 Thread Ross Lillie
Thanks Geoff, But I think I¹m still faced with the same problem. If I want ALL pages associated with all possible WebViews to have access to my external objects/properties, does this still not require me to reinitialize the global object (via the context reference) at each page load? What I¹m