On 03.09.2010 19:00, Chris Hatko wrote:
Hi,
I've got a situation where when a user clicks on "_blank" target link
a request for a new window
comes in and I want my version of webkit to reuse the current window ...
Currently, I've got a PolicyDelegate implementation of
decidePolicyForNewWindowAction. In this function I tell the listener
to ignore the current request and start a new request by referencing
my old webview and creating a IWebMutableURLRequest and calling
mainframe->loadRequest(request)
There must be a better way to handle this without recreating the
request and essentially reloading.
Any ideas?
You may implement createWebViewWithRequest in UIDelegate and simply
return your current webView.
--
Alex
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help