Changeset 63011 in webkit
- Timestamp:
- Jul 9, 2010 4:10:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r63010 r63011 1 2010-07-09 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Implement performance.timing.navigationStart 6 https://bugs.webkit.org/show_bug.cgi?id=41815 7 8 * fast/dom/script-tests/webtiming.js: 9 (checkTimingBeforeLoad): 10 (checkWebTimingOnLoad): 11 (checkWebTimingAfterLoad): 12 * fast/dom/webtiming-expected.txt: 13 1 14 2010-07-09 Albert J. Wong <ajwong@chromium.org> 2 15 -
trunk/LayoutTests/fast/dom/script-tests/webtiming.js
r62984 r63011 39 39 function checkTimingBeforeLoad() 40 40 { 41 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.oneHourAgoUTC"); 41 shouldBeGreaterThanOrEqual("timing.navigationStart", "oneHourAgoUTC"); 42 43 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.navigationStart"); 42 44 43 45 shouldBe("timing.loadEventStart", "0"); … … 49 51 function checkWebTimingOnLoad() 50 52 { 51 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.oneHourAgoUTC"); 53 shouldBeGreaterThanOrEqual("timing.navigationStart", "oneHourAgoUTC"); 54 55 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.navigationStart"); 52 56 53 57 shouldBeGreaterThanOrEqual("timing.loadEventStart", "timing.unloadEventEnd"); … … 59 63 function checkWebTimingAfterLoad() 60 64 { 61 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.oneHourAgoUTC"); 65 shouldBeGreaterThanOrEqual("timing.navigationStart", "oneHourAgoUTC"); 66 67 shouldBeGreaterThanOrEqual("timing.unloadEventEnd", "timing.navigationStart"); 62 68 63 69 shouldBeGreaterThanOrEqual("timing.loadEventStart", "timing.unloadEventEnd"); -
trunk/LayoutTests/fast/dom/webtiming-expected.txt
r62984 r63011 4 4 5 5 6 FAIL timing.unloadEventEnd should be >= timing.oneHourAgoUTC. Was undefined (of type undefined). 6 FAIL timing.navigationStart should be >= oneHourAgoUTC. Was undefined (of type undefined). 7 FAIL timing.unloadEventEnd should be >= timing.navigationStart. Was undefined (of type undefined). 7 8 FAIL timing.loadEventStart should be 0 (of type number). Was undefined (of type undefined). 8 9 FAIL timing.loadEventEnd should be 0 (of type number). Was undefined (of type undefined). 9 FAIL timing.unloadEventEnd should be >= timing.oneHourAgoUTC. Was undefined (of type undefined). 10 FAIL timing.navigationStart should be >= oneHourAgoUTC. Was undefined (of type undefined). 11 FAIL timing.unloadEventEnd should be >= timing.navigationStart. Was undefined (of type undefined). 10 12 FAIL timing.loadEventStart should be >= timing.unloadEventEnd. Was undefined (of type undefined). 11 13 FAIL timing.loadEventEnd should be 0 (of type number). Was undefined (of type undefined). 12 FAIL timing.unloadEventEnd should be >= timing.oneHourAgoUTC. Was undefined (of type undefined). 14 FAIL timing.navigationStart should be >= oneHourAgoUTC. Was undefined (of type undefined). 15 FAIL timing.unloadEventEnd should be >= timing.navigationStart. Was undefined (of type undefined). 13 16 FAIL timing.loadEventStart should be >= timing.unloadEventEnd. Was undefined (of type undefined). 14 17 FAIL timing.loadEventEnd should be >= timing.loadEventStart + 50. Was undefined (of type undefined). -
trunk/WebCore/ChangeLog
r63003 r63011 1 2010-07-09 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Implement performance.timing.navigationStart 6 https://bugs.webkit.org/show_bug.cgi?id=41815 7 8 See: http://dev.w3.org/2006/webapi/WebTiming/#nt-navigation-start 9 10 * loader/FrameLoader.cpp: 11 (WebCore::FrameLoader::loadWithDocumentLoader): 12 * loader/FrameLoaderTypes.h: 13 (WebCore::FrameLoadTimeline::FrameLoadTimeline): 14 * page/Timing.cpp: 15 (WebCore::Timing::navigationStart): 16 1 17 2010-07-09 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 18 -
trunk/WebCore/loader/FrameLoader.cpp
r62984 r63011 1502 1502 1503 1503 m_frameLoadTimeline = FrameLoadTimeline(); 1504 m_frameLoadTimeline.navigationStart = currentTime(); 1504 1505 1505 1506 policyChecker()->setLoadType(type); -
trunk/WebCore/loader/FrameLoaderTypes.h
r62984 r63011 63 63 struct FrameLoadTimeline { 64 64 FrameLoadTimeline() 65 : unloadEventEnd(0) 65 : navigationStart(0) 66 , unloadEventEnd(0) 66 67 , loadEventStart(0) 67 68 , loadEventEnd(0) … … 69 70 } 70 71 72 double navigationStart; 71 73 double unloadEventEnd; 72 74 double loadEventStart; -
trunk/WebCore/page/Timing.cpp
r62984 r63011 58 58 return 0; 59 59 60 return 0; // FIXME60 return static_cast<unsigned long long>(m_frame->loader()->frameLoadTimeline()->navigationStart * 1000); 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.