[webkit-help] enabling javascript close() to close top browser on OS X

Grant Gayed Grant_Gayed at ca.ibm.com
Wed May 5 12:47:11 PDT 2010


Hi,

We embed WebKit on OSX and GTK.  On GTK if javascript's window.close() is 
executed then the signal to close the browser is always received, which 
seems good.  However on OS X our webViewClose: implementation is only 
invoked iff the browser that executed javascript's window.close() is not a 
top-level browser (eg.- it was created via our 
webView:createWebViewWithRequest: implementation).  Is there a way to make 
WebKit on OS X always invoke our webViewClose: implementation when 
javascript's window.close() is invoked, even in a top-level browser?

Thanks!
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100505/fac4919b/attachment.html>


More information about the webkit-help mailing list