Reviewed by Darin.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2008 01:38:51 +0000 (01:38 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2008 01:38:51 +0000 (01:38 +0000)
        <rdar://problem/5532361>
        CrashTracer: 9840 crashes in Safari at com.apple.JavaScriptCore: KJS::Bindings::CInstance::~CInstance [in-charge deleting] + 35

        Clear the frame's plugin root objects so that they don't outlive the plugin bundle.

        * page/Frame.cpp:
        (WebCore::Frame::pageDestroyed):

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

WebCore/ChangeLog
WebCore/page/Frame.cpp

index edb28bbca201430b841fd5765f03894d700cae43..3608d4764b7ed54dbbcdcb570acf27b9a14ce69c 100644 (file)
@@ -1,3 +1,15 @@
+2008-01-09  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Darin.
+
+        <rdar://problem/5532361> 
+        CrashTracer: 9840 crashes in Safari at com.apple.JavaScriptCore: KJS::Bindings::CInstance::~CInstance [in-charge deleting] + 35
+        
+        Clear the frame's plugin root objects so that they don't outlive the plugin bundle.
+        
+        * page/Frame.cpp:
+        (WebCore::Frame::pageDestroyed):
+
 2008-01-09  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Adam Roben and Anders Carlsson
index 2905a4dab228dcaf711509d965f927d19f23b45f..26c98a6f0a48f3cbad8a2a8d760653d167466ec0 100644 (file)
@@ -1767,6 +1767,8 @@ void Frame::pageDestroyed()
         if (KJS::Window* w = KJS::Window::retrieveWindow(this))
             w->disconnectFrame();
 
+    clearScriptObjects();
+    
     d->m_page = 0;
 }