[webkit-dev] Extending JS context for all WebFrames
Geoffrey Garen
ggaren at apple.com
Thu Mar 12 15:37:41 PDT 2009
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-
> extend' the
> object using the public APIs.
It's a page load, not a WebView allocation, that clears the data in a
JSGlobalContext.
Here is the delegate callback you need: –
webView:didClearWindowObject:forFrame:
Cheers,
Geoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090312/c61efe92/attachment.html>
More information about the webkit-dev
mailing list