]> git.saurik.com Git - wxWidgets.git/commitdiff
Block new frames being created in wxWebViewIE, bringing it into line with the other...
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 19 May 2011 20:14:27 +0000 (20:14 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 19 May 2011 20:14:27 +0000 (20:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/webview.h
src/msw/webview_ie.cpp

index 28d0b5b14164ea0521dd2a5d723196457010bfaf..365e7664e4ac0575550445d516054a3b7444808b 100644 (file)
@@ -290,8 +290,8 @@ public:
     //       provide a behavior consistent across ports.
     // - OSX : I receive an event for new frames opened with HTML target, and
     //           currently block them all.
-    // - IE  : The DISPID_NEWWINDOW2 event looks like it should work, but I
-    //           receive way too many of them. A new IE instance opens.
+    // - IE  : An event is recieved for new frames and they are currently 
+    //           blocked
     // - GTK : All frame open requests are blocked. A slot exists that I could
     //           connect to to be notified if ever needed
 
index 6bf16f78cecc8fd678eb2b2622423ec7932ce1f0..7838686bccfae3349d37dc8dcc558c67e9cccb57 100644 (file)
@@ -656,17 +656,15 @@ void wxWebViewIE::onActiveXEvent(wxActiveXEvent& evt)
             {
                 m_canNavigateForward = enable;
             }
+            break;
         }
-
-        /*
         case DISPID_NEWWINDOW2:
-        //case DISPID_NEWWINDOW3:
         {
-            wxLogMessage("DISPID_NEWWINDOW2\n");
             wxActiveXEventNativeMSW* nativeParams = evt.GetNativeParameters();
             // Cancel the attempt to open a new window
             *V_BOOLREF(&nativeParams->pDispParams->rgvarg[0]) = VARIANT_TRUE;
-        }*/
+            break;
+        }
     }
 
     evt.Skip();