Bug 161068 - Update the Resource Timing implementation
Summary: Update the Resource Timing implementation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 19:24 PDT by Johan K. Jensen
Modified: 2016-08-25 11:24 PDT (History)
8 users (show)

See Also:


Attachments
Patch (87.56 KB, patch)
2016-08-23 10:10 PDT, Johan K. Jensen
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.07 MB, application/zip)
2016-08-23 10:47 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-yosemite (1.63 MB, application/zip)
2016-08-23 11:11 PDT, Build Bot
no flags Details
Patch (87.48 KB, patch)
2016-08-23 12:38 PDT, Johan K. Jensen
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.06 MB, application/zip)
2016-08-23 13:20 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-yosemite (1.46 MB, application/zip)
2016-08-23 13:25 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews101 for mac-yosemite (919.74 KB, application/zip)
2016-08-23 14:09 PDT, Build Bot
no flags Details
Patch (87.48 KB, patch)
2016-08-23 14:25 PDT, Johan K. Jensen
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-yosemite (1.45 MB, application/zip)
2016-08-23 15:06 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-yosemite-wk2 (1.06 MB, application/zip)
2016-08-23 15:24 PDT, Build Bot
no flags Details
Patch (89.10 KB, patch)
2016-08-24 16:11 PDT, Johan K. Jensen
no flags Details | Formatted Diff | Diff
Patch (89.08 KB, patch)
2016-08-24 16:32 PDT, Johan K. Jensen
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews114 for mac-yosemite (1.47 MB, application/zip)
2016-08-24 17:19 PDT, Build Bot
no flags Details
Git removed some whitespace in the test expectation for one of the Resource Timing tests. (89.12 KB, patch)
2016-08-24 17:27 PDT, Johan K. Jensen
achristensen: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-yosemite (1001.92 KB, application/zip)
2016-08-24 18:14 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.23 MB, application/zip)
2016-08-24 18:36 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan K. Jensen 2016-08-22 19:24:55 PDT
Update the Resource timing implementation for better compatibility with the spec.
Comment 1 Johan K. Jensen 2016-08-23 10:10:13 PDT
Created attachment 286725 [details]
Patch
Comment 2 Build Bot 2016-08-23 10:47:45 PDT
Comment on attachment 286725 [details]
Patch

Attachment 286725 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1928565

New failing tests:
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 3 Build Bot 2016-08-23 10:47:48 PDT
Created attachment 286732 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 4 Chris Dumez 2016-08-23 10:51:08 PDT
Comment on attachment 286725 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286725&action=review

> Source/WebCore/loader/LoadTiming.cpp:54
> +    , m_cached(false)

As per coding style, this needs a prefix. E.g. m_isCached or m_wasCached.
Comment 5 Build Bot 2016-08-23 11:11:21 PDT
Comment on attachment 286725 [details]
Patch

Attachment 286725 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1928635

New failing tests:
fast/animation/request-animation-frame-detach-element.html
fast/animation/request-animation-frame-detach-element2.html
fast/animation/request-animation-frame-remove-client.html
Comment 6 Build Bot 2016-08-23 11:11:26 PDT
Created attachment 286742 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 7 Johan K. Jensen 2016-08-23 12:38:29 PDT
Created attachment 286757 [details]
Patch
Comment 8 Build Bot 2016-08-23 13:20:26 PDT
Comment on attachment 286757 [details]
Patch

Attachment 286757 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1929424

New failing tests:
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 9 Build Bot 2016-08-23 13:20:30 PDT
Created attachment 286762 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 10 Build Bot 2016-08-23 13:25:56 PDT
Comment on attachment 286757 [details]
Patch

Attachment 286757 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1929432

New failing tests:
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm
Comment 11 Build Bot 2016-08-23 13:25:59 PDT
Created attachment 286765 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 12 Build Bot 2016-08-23 14:09:50 PDT
Comment on attachment 286757 [details]
Patch

Attachment 286757 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1929772

New failing tests:
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 13 Build Bot 2016-08-23 14:09:54 PDT
Created attachment 286771 [details]
Archive of layout-test-results from ews101 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 14 Johan K. Jensen 2016-08-23 14:25:03 PDT
Created attachment 286776 [details]
Patch
Comment 15 Build Bot 2016-08-23 15:06:40 PDT
Comment on attachment 286776 [details]
Patch

Attachment 286776 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1930142

New failing tests:
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 16 Build Bot 2016-08-23 15:06:45 PDT
Created attachment 286785 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 17 Build Bot 2016-08-23 15:23:48 PDT
Comment on attachment 286776 [details]
Patch

Attachment 286776 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1930239

New failing tests:
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 18 Build Bot 2016-08-23 15:24:00 PDT
Created attachment 286790 [details]
Archive of layout-test-results from ews106 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 19 Alex Christensen 2016-08-23 15:44:35 PDT
Comment on attachment 286776 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286776&action=review

> Source/WebCore/loader/LoadTiming.cpp:54
> +    , m_isCached(false)

These should be in the header.
m_isCached { false };

> Source/WebCore/loader/ResourceLoader.h:144
> +    LoadTiming& loadTiming() { return m_loadTiming; }

Can this be const?

> Source/WebCore/loader/SubresourceLoader.cpp:463
> +    finishTime = monotonicallyIncreasingTime();

We should probably report this time in didFail, too.  Or at least something interesting.
Also, finishTime is a double that is a parameter coming from somewhere.  It might already have the current time.

// FIXME: ...
UNUSED_PARAM(finishTime);
double realFinishTime = ...

Same in InspectorNetworkAgent::didFinishLoading

> Source/WebCore/page/PerformanceResourceTiming.cpp:173
> +    if (m_loadTiming.isCached())
> +        return connectStart();

These seem suspicious.  I think this is covering up a problem.
Comment 20 Johan K. Jensen 2016-08-24 16:11:08 PDT
Created attachment 286903 [details]
Patch
Comment 21 Johan K. Jensen 2016-08-24 16:32:29 PDT
Created attachment 286906 [details]
Patch
Comment 22 Build Bot 2016-08-24 17:19:42 PDT
Comment on attachment 286906 [details]
Patch

Attachment 286906 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1936689

New failing tests:
imported/w3c/web-platform-tests/resource-timing/test_resource_timing.html
Comment 23 Build Bot 2016-08-24 17:19:46 PDT
Created attachment 286915 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 24 Johan K. Jensen 2016-08-24 17:27:52 PDT
Created attachment 286919 [details]
Git removed some whitespace in the test expectation for one of the Resource Timing tests.
Comment 25 Build Bot 2016-08-24 18:14:21 PDT
Comment on attachment 286919 [details]
Git removed some whitespace in the test expectation for one of the Resource Timing tests.

Attachment 286919 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1936952

New failing tests:
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 26 Build Bot 2016-08-24 18:14:25 PDT
Created attachment 286924 [details]
Archive of layout-test-results from ews101 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 27 Build Bot 2016-08-24 18:36:50 PDT
Comment on attachment 286919 [details]
Git removed some whitespace in the test expectation for one of the Resource Timing tests.

Attachment 286919 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1937048

New failing tests:
imported/w3c/web-platform-tests/html/dom/interfaces.html
Comment 28 Build Bot 2016-08-24 18:36:54 PDT
Created attachment 286928 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 29 Alex Christensen 2016-08-25 11:24:29 PDT
Test failures unrelated.
http://trac.webkit.org/changeset/204976