Reviewed by Adam.
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Aug 2007 20:32:02 +0000 (20:32 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Aug 2007 20:32:02 +0000 (20:32 +0000)
        <rdar://problem/5412988>
        Crash when visiting http://www.rockonflash.com/blog/?p=58

        * plugins/win/PluginViewWin.cpp:
        (WebCore::PluginViewWin::updateWindow):
        Just return if the plugin view hasn't been inserted in the hierarchy yet.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25159 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/plugins/win/PluginViewWin.cpp

index 22c569329b09686f01b20d8f358ff6cf5745ac6d..3023b70504ce5d2ab30d378262102e044138585f 100644 (file)
@@ -1,3 +1,14 @@
+2007-08-20  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Adam.
+
+        <rdar://problem/5412988>
+        Crash when visiting http://www.rockonflash.com/blog/?p=58
+        
+        * plugins/win/PluginViewWin.cpp:
+        (WebCore::PluginViewWin::updateWindow):
+        Just return if the plugin view hasn't been inserted in the hierarchy yet.
+
 2007-08-20  Holger Hans Peter Freyther  <zecke@selfish.org>
 
         Reviewed by Zack.
index b54ee9dab380fc090f214e14ec8156bc43c12078..d8ad87999027e75a4e3407a4aa1b3bcfbf634896 100644 (file)
@@ -145,6 +145,9 @@ static LRESULT CALLBACK PluginViewWndProc(HWND hWnd, UINT message, WPARAM wParam
 
 void PluginViewWin::updateWindow() const
 {
+    if (!parent())
+        return;
+
     ASSERT(parent()->isFrameView());
     FrameView* frameView = static_cast<FrameView*>(parent());