[webkit-help] on "_blank" request force reuse of same webview
Chris Hatko
chatko at gmail.com
Sat Sep 4 07:23:03 PDT 2010
I'll try that.
Thanks Alex
Chris
On Sat, Sep 4, 2010 at 6:12 AM, Alexander Shulgin
<alexander.shulgin at yessoftware.com> wrote:
> 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
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
More information about the webkit-help
mailing list