2010-10-07 James Simonsen <simonjam@chromium.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Oct 2010 17:56:19 +0000 (17:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Oct 2010 17:56:19 +0000 (17:56 +0000)
        Reviewed by Pavel Feldman.

        [Web Timing] Use platform definition of responseEnd
        https://bugs.webkit.org/show_bug.cgi?id=46306

        No new tests. Used existing webtiming test.

        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::didFinishLoading):

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

WebCore/ChangeLog
WebCore/loader/MainResourceLoader.cpp

index 555a8aaea5d7a95e3ccb45a812e80a255fc2cb1b..78aa0243174da186ca3951ea74d8f3a47e438a27 100644 (file)
@@ -1,3 +1,15 @@
+2010-10-07  James Simonsen  <simonjam@chromium.org>
+
+        Reviewed by Pavel Feldman.
+
+        [Web Timing] Use platform definition of responseEnd
+        https://bugs.webkit.org/show_bug.cgi?id=46306
+
+        No new tests. Used existing webtiming test.
+
+        * loader/MainResourceLoader.cpp:
+        (WebCore::MainResourceLoader::didFinishLoading):
+
 2010-10-05  Martin Robinson  <mrobinson@igalia.com>
 
         Reviewed by Chris Fleizach.
index bc1600180967e35482f14cb8cc31feec218f647d..af30a11913dbb00bb4371911e050328439f459aa 100644 (file)
@@ -453,7 +453,7 @@ void MainResourceLoader::didFinishLoading(double finishTime)
 #endif
 
     ASSERT(!documentLoader()->timing()->responseEnd);
-    documentLoader()->timing()->responseEnd = m_timeOfLastDataReceived;
+    documentLoader()->timing()->responseEnd = finishTime ? finishTime : m_timeOfLastDataReceived;
     frameLoader()->finishedLoading();
     ResourceLoader::didFinishLoading(finishTime);