Make popup windows work again
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Sep 2007 17:05:21 +0000 (17:05 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Sep 2007 17:05:21 +0000 (17:05 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25389 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/ChangeLog
WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp

index 31bf9c6..4fbded5 100644 (file)
@@ -1,3 +1,12 @@
+2007-09-06  George Staikos  <staikos@kde.org>
+
+        Reviewed by Anders.
+
+        Make popup windows work again.
+
+        * WebCoreSupport/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
+
 2007-09-01  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Sam.
index ec367c6..b6b4c6d 100644 (file)
@@ -773,9 +773,9 @@ void FrameLoaderClientQt::dispatchDecidePolicyForMIMEType(FramePolicyFunction fu
 
 void FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String&)
 {
-    notImplemented();
     Q_ASSERT(!m_policyFunction);
-    callPolicyFunction(function, PolicyIgnore);
+    m_policyFunction = function;
+    slotCallPolicyFunction(PolicyUse);
 }
 
 void FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(FramePolicyFunction function, const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request)