Changeset 64939 in webkit
- Timestamp:
- Aug 7, 2010 11:19:48 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r64929 r64939 1 2010-08-07 Mihai Parparita <mihaip@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 WebTiming does not take page cache into account 6 https://bugs.webkit.org/show_bug.cgi?id=42772 7 8 Adds tests that simulates flow from a page that's in the page cache to 9 one that's not, and then back to the page cached page (where the 10 DocumentLoader is reused, but we should have a new DocumentLoadTiming 11 struct). 12 13 * fast/events/onunload-back-to-page-cache-expected.txt: Added. 14 * fast/events/onunload-back-to-page-cache.html: Added. 15 1 16 2010-08-07 Sam Weinig <sam@webkit.org> 2 17 -
trunk/WebCore/ChangeLog
r64936 r64939 1 2010-08-07 Mihai Parparita <mihaip@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 WebTiming does not take page cache into account 6 https://bugs.webkit.org/show_bug.cgi?id=42772 7 8 When restoring a page from the page cache, reset its DocumentLoadTiming 9 struct and record navigationStart. 10 11 Test: fast/events/onunload-back-to-page-cache.html 12 13 * loader/DocumentLoadTiming.h: removed Noncopyable, since it's just a simple struct. 14 * loader/DocumentLoader.h: 15 (WebCore::DocumentLoader::resetTiming): Added method. 16 * loader/FrameLoader.cpp: 17 (WebCore::FrameLoader::stopLoading): Uncommented assert. 18 (WebCore::FrameLoader::loadProvisionalItemFromCachedPage): Added resetTiming() call. 19 1 20 2010-08-07 Zoltan Horvath <zoltan@webkit.org> 2 21 -
trunk/WebCore/loader/DocumentLoadTiming.h
r64051 r64939 27 27 #define DocumentLoadTiming_h 28 28 29 #include <wtf/Noncopyable.h>30 31 29 namespace WebCore { 32 30 33 struct DocumentLoadTiming : public Noncopyable{31 struct DocumentLoadTiming { 34 32 DocumentLoadTiming() 35 33 : navigationStart(0.0) -
trunk/WebCore/loader/DocumentLoader.h
r64051 r64939 208 208 209 209 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } 210 void resetTiming() { m_documentLoadTiming = DocumentLoadTiming(); } 210 211 211 212 #if ENABLE(OFFLINE_WEB_APPLICATIONS) -
trunk/WebCore/loader/FrameLoader.cpp
r64735 r64939 454 454 DocumentLoadTiming* timing = m_provisionalDocumentLoader->timing(); 455 455 ASSERT(timing->navigationStart); 456 // FIXME: This fails in Safari (https://bugs.webkit.org/show_bug.cgi?id=42772). Understand why. 457 // ASSERT(!timing->unloadEventEnd); 456 ASSERT(!timing->unloadEventEnd); 458 457 timing->unloadEventEnd = currentTime(); 459 458 ASSERT(timing->unloadEventEnd >= timing->navigationStart); … … 3145 3144 3146 3145 m_loadingFromCachedPage = true; 3146 3147 // Should have timing data from previous time(s) the page was shown. 3148 ASSERT(provisionalLoader->timing()->navigationStart); 3149 provisionalLoader->resetTiming(); 3150 provisionalLoader->timing()->navigationStart = currentTime(); 3147 3151 3148 3152 provisionalLoader->setCommitted(true);
Note: See TracChangeset
for help on using the changeset viewer.