Reviewed by Chris.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Dec 2003 21:25:31 +0000 (21:25 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Dec 2003 21:25:31 +0000 (21:25 +0000)
<rdar://problem/3512545>: reproducible assertion failure in KWQKHTMLPart::addData scrolling to anchor while page loads

* kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::scrollToAnchor): Don't pretend we finished loading,
because we don't actually make anchor scrolling stop the current
page load.

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

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQKHTMLPart.mm

index f77246d..7109a7b 100644 (file)
@@ -1,3 +1,14 @@
+2003-12-19  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Chris.
+
+       <rdar://problem/3512545>: reproducible assertion failure in KWQKHTMLPart::addData scrolling to anchor while page loads
+        
+       * kwq/KWQKHTMLPart.mm:
+        (KWQKHTMLPart::scrollToAnchor): Don't pretend we finished loading,
+       because we don't actually make anchor scrolling stop the current
+       page load.
+
 === Safari-119 ===
 
 2003-12-18  Richard Williamson   <rjw@apple.com>
index 731b15d..3ce1116 100644 (file)
@@ -1567,10 +1567,7 @@ void KWQKHTMLPart::scrollToAnchor(const KURL &URL)
     if (!gotoAnchor(URL.encodedHtmlRef()))
         gotoAnchor(URL.htmlRef());
 
-    d->m_bComplete = true;
-    d->m_doc->setParsing(false);
-
-    completed();
+    checkCompleted();
 }
 
 bool KWQKHTMLPart::closeURL()