[webkit-help] on "_blank" request force reuse of same webview
alexander.shulgin at yessoftware.com
Sat Sep 4 03:12:04 PDT 2010
On 03.09.2010 19:00, Chris Hatko wrote:
> 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
> 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.
More information about the webkit-help