We always let the user handle new window events so set the policy appropriately in the WebViewGTK+ backend.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-26 13:14:00 +00:00
parent b132a83bff
commit 75b3bb6163

View File

@@ -258,14 +258,8 @@ wxgtk_webview_webkit_new_window(WebKitWebView*,
if (webKitCtrl && webKitCtrl->GetEventHandler())
webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
if (thisEvent.IsVetoed())
{
//We always want the user to handle this themselves
webkit_web_policy_decision_ignore(policy_decision);
}
else
{
webkit_web_policy_decision_use(policy_decision);
}
return TRUE;
}