Changeset 79565 in webkit
- Timestamp:
- Feb 24, 2011 7:51:13 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r79560 r79565 1 2011-02-24 James Simonsen <simonjam@chromium.org> 2 3 Reviewed by Tony Gentilcore. 4 5 [Web Timing] Zero out navigationStart and unloadEvent on cross-origin redirect 6 https://bugs.webkit.org/show_bug.cgi?id=55068 7 8 * http/tests/misc/resources/webtiming-cross-origin-and-back2.html: Expect navStart and unload to be zero. 9 * http/tests/misc/resources/webtiming-cross-origin-redirect.html: Expect navStart to be zero. 10 * http/tests/misc/webtiming-origins-expected.txt: 11 1 12 2011-02-24 Pavel Podivilov <podivilov@chromium.org> 2 13 -
trunk/LayoutTests/http/tests/misc/resources/webtiming-cross-origin-and-back2.html
r75560 r79565 17 17 function performTest() { 18 18 // FIXME: Need a way to synchronize the test so that loadEventEnd is non-zero. 19 var shouldBeZeroList = ["loadEventEnd", " redirectStart", "redirectEnd", "secureConnectionStart"];19 var shouldBeZeroList = ["loadEventEnd", "navigationStart", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"]; 20 20 21 21 var timingProperties = new Array; -
trunk/LayoutTests/http/tests/misc/resources/webtiming-cross-origin-redirect.html
r75560 r79565 17 17 function performTest() { 18 18 // FIXME: Need a way to synchronize the test so that loadEventEnd is non-zero. 19 var shouldBeZeroList = ["loadEventEnd", " redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventStart", "unloadEventEnd"];19 var shouldBeZeroList = ["loadEventEnd", "navigationStart", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"]; 20 20 21 21 var timingProperties = new Array; -
trunk/LayoutTests/http/tests/misc/webtiming-origins-expected.txt
r75560 r79565 56 56 PASS timing.loadEventEnd is 0 57 57 PASS timing.loadEventStart is non-zero. 58 PASS timing.navigationStart is non-zero.58 PASS timing.navigationStart is 0 59 59 PASS timing.redirectEnd is 0 60 60 PASS timing.redirectStart is 0 … … 91 91 PASS timing.loadEventEnd is 0 92 92 PASS timing.loadEventStart is non-zero. 93 PASS timing.navigationStart is non-zero.93 PASS timing.navigationStart is 0 94 94 PASS timing.redirectEnd is 0 95 95 PASS timing.redirectStart is 0 … … 98 98 PASS timing.responseStart is non-zero. 99 99 PASS timing.secureConnectionStart is 0 100 PASS timing.unloadEventEnd is non-zero.101 PASS timing.unloadEventStart is non-zero.100 PASS timing.unloadEventEnd is 0 101 PASS timing.unloadEventStart is 0 102 102 PASS navigation.redirectCount is 0 103 103 PASS successfullyParsed is true -
trunk/Source/WebCore/ChangeLog
r79563 r79565 1 2011-02-24 James Simonsen <simonjam@chromium.org> 2 3 Reviewed by Tony Gentilcore. 4 5 [Web Timing] Zero out navigationStart and unloadEvent on cross-origin redirect 6 https://bugs.webkit.org/show_bug.cgi?id=55068 7 8 Test: http/tests/misc/webtiming-origins.html 9 10 * page/PerformanceTiming.cpp: 11 (WebCore::PerformanceTiming::navigationStart): Zero out on cross origin redirect. 12 (WebCore::PerformanceTiming::unloadEventStart): Ditto. 13 (WebCore::PerformanceTiming::unloadEventEnd): Ditto. 14 1 15 2011-02-24 Adam Klein <adamk@chromium.org> 2 16 -
trunk/Source/WebCore/page/PerformanceTiming.cpp
r75560 r79565 95 95 return 0; 96 96 97 if (timing->hasCrossOriginRedirect) 98 return 0; 99 97 100 return toIntegerMilliseconds(timing->navigationStart); 98 101 } … … 104 107 return 0; 105 108 106 if ( !timing->hasSameOriginAsPreviousDocument)109 if (timing->hasCrossOriginRedirect || !timing->hasSameOriginAsPreviousDocument) 107 110 return 0; 108 111 … … 116 119 return 0; 117 120 118 if ( !timing->hasSameOriginAsPreviousDocument)121 if (timing->hasCrossOriginRedirect || !timing->hasSameOriginAsPreviousDocument) 119 122 return 0; 120 123
Note: See TracChangeset
for help on using the changeset viewer.