2008-05-31 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 May 2008 22:33:46 +0000 (22:33 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 May 2008 22:33:46 +0000 (22:33 +0000)
        Reviewed by Sam.

        - avoid assertion in updateDocument() when running debug

        * bindings/js/kjs_proxy.cpp:
        (WebCore::KJSProxy::updateDocument): Exit early if the document is null. We
        don't need to update in this case.

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

WebCore/ChangeLog
WebCore/bindings/js/kjs_proxy.cpp

index 062c523d1b4062c4e7f5ef2f9770feca1d5282e0..23af5440995e0f69430f0ce2f63e35baa62718e5 100644 (file)
@@ -1,3 +1,13 @@
+2008-05-31  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Sam.
+
+        - avoid assertion in updateDocument() when running debug
+
+        * bindings/js/kjs_proxy.cpp:
+        (WebCore::KJSProxy::updateDocument): Exit early if the document is null. We
+        don't need to update in this case.
+
 2008-05-30  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Darin Adler.
index ba098b133dc23d4919f8c16c6586cc0cf05ee3a4..3baad5fc5a01f3a7b1bd25e81cbf7dcca116d7b1 100644 (file)
@@ -213,6 +213,9 @@ void KJSProxy::attachDebugger(KJS::Debugger* debugger)
 
 void KJSProxy::updateDocument()
 {
+    if (!m_frame->document())
+        return;
+
     JSLock lock;
     if (m_windowShell)
         m_windowShell->window()->updateDocument();