From: Steve Lamerton <steve.lamerton@gmail.com>
Date: Tue, 26 Jul 2011 13:14:00 +0000 (+0000)
Subject: We always let the user handle new window events so set the policy appropriately in... 
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/75b3bb6163f4be2854d1202808f5f69f382c0abc?ds=inline

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
---

diff --git a/src/gtk/webview_webkit.cpp b/src/gtk/webview_webkit.cpp
index 36b3eace96..27879488df 100644
--- a/src/gtk/webview_webkit.cpp
+++ b/src/gtk/webview_webkit.cpp
@@ -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;
 }