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:
@@ -258,14 +258,8 @@ wxgtk_webview_webkit_new_window(WebKitWebView*,
|
||||
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||
webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
|
||||
|
||||
if (thisEvent.IsVetoed())
|
||||
{
|
||||
webkit_web_policy_decision_ignore(policy_decision);
|
||||
}
|
||||
else
|
||||
{
|
||||
webkit_web_policy_decision_use(policy_decision);
|
||||
}
|
||||
//We always want the user to handle this themselves
|
||||
webkit_web_policy_decision_ignore(policy_decision);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user