Changeset 85873 in webkit


Ignore:
Timestamp:
May 5, 2011 1:30:13 PM (13 years ago)
Author:
tonyg@chromium.org
Message:

2011-05-05 Tony Gentilcore <tonyg@chromium.org>

Reviewed by Nate Chapin.

[Navigation Timing] navigationStart should always be available
https://bugs.webkit.org/show_bug.cgi?id=59448

  • http/tests/misc/resources/webtiming-cross-origin-and-back2.html:
  • http/tests/misc/resources/webtiming-cross-origin-redirect.html:
  • http/tests/misc/webtiming-origins-expected.txt:

2011-05-05 Tony Gentilcore <tonyg@chromium.org>

Reviewed by Nate Chapin.

[Navigation Timing] navigationStart should always be available
https://bugs.webkit.org/show_bug.cgi?id=59448

  • page/PerformanceTiming.cpp: (WebCore::PerformanceTiming::navigationStart):
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85867 r85873  
     12011-05-05  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Reviewed by Nate Chapin.
     4
     5        [Navigation Timing] navigationStart should always be available
     6        https://bugs.webkit.org/show_bug.cgi?id=59448
     7
     8        * http/tests/misc/resources/webtiming-cross-origin-and-back2.html:
     9        * http/tests/misc/resources/webtiming-cross-origin-redirect.html:
     10        * http/tests/misc/webtiming-origins-expected.txt:
     11
    1122011-05-05  Chang Shu  <cshu@webkit.org>
    213
  • trunk/LayoutTests/http/tests/misc/resources/webtiming-cross-origin-and-back2.html

    r79565 r85873  
    1717function performTest() {
    1818    // FIXME: Need a way to synchronize the test so that loadEventEnd is non-zero.
    19     var shouldBeZeroList = ["loadEventEnd", "navigationStart", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"];
     19    var shouldBeZeroList = ["loadEventEnd", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"];
    2020
    2121    var timingProperties = new Array;
  • trunk/LayoutTests/http/tests/misc/resources/webtiming-cross-origin-redirect.html

    r79565 r85873  
    1717function performTest() {
    1818    // FIXME: Need a way to synchronize the test so that loadEventEnd is non-zero.
    19     var shouldBeZeroList = ["loadEventEnd", "navigationStart", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"];
     19    var shouldBeZeroList = ["loadEventEnd", "redirectStart", "redirectEnd", "secureConnectionStart", "unloadEventEnd", "unloadEventStart"];
    2020
    2121    var timingProperties = new Array;
  • trunk/LayoutTests/http/tests/misc/webtiming-origins-expected.txt

    r79565 r85873  
    5656PASS timing.loadEventEnd is 0
    5757PASS timing.loadEventStart is non-zero.
    58 PASS timing.navigationStart is 0
     58PASS timing.navigationStart is non-zero.
    5959PASS timing.redirectEnd is 0
    6060PASS timing.redirectStart is 0
     
    9191PASS timing.loadEventEnd is 0
    9292PASS timing.loadEventStart is non-zero.
    93 PASS timing.navigationStart is 0
     93PASS timing.navigationStart is non-zero.
    9494PASS timing.redirectEnd is 0
    9595PASS timing.redirectStart is 0
  • trunk/Source/WebCore/ChangeLog

    r85872 r85873  
     12011-05-05  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Reviewed by Nate Chapin.
     4
     5        [Navigation Timing] navigationStart should always be available
     6        https://bugs.webkit.org/show_bug.cgi?id=59448
     7
     8        * page/PerformanceTiming.cpp:
     9        (WebCore::PerformanceTiming::navigationStart):
     10
    1112011-05-05  Eric Carlson  <eric.carlson@apple.com>
    212
  • trunk/Source/WebCore/page/PerformanceTiming.cpp

    r85030 r85873  
    9696        return 0;
    9797
    98     if (timing->hasCrossOriginRedirect)
    99         return 0;
    100 
    10198    return toIntegerMilliseconds(timing->navigationStart);
    10299}
Note: See TracChangeset for help on using the changeset viewer.