RESOLVED DUPLICATE of bug 245744 185870
Enable Server-Timing by default
https://bugs.webkit.org/show_bug.cgi?id=185870
Summary Enable Server-Timing by default
cvazac
Reported 2018-05-22 09:05:47 PDT
Enable Server-Timing by default
Attachments
Patch (1.16 KB, patch)
2018-05-22 09:07 PDT, cvazac
no flags
Archive of layout-test-results from ews204 for win-future (12.73 MB, application/zip)
2018-05-22 14:22 PDT, EWS Watchlist
no flags
Patch (1.78 KB, patch)
2021-09-01 22:13 PDT, Alex Christensen
no flags
cvazac
Comment 1 2018-05-22 09:07:13 PDT
EWS Watchlist
Comment 2 2018-05-22 14:22:37 PDT
Comment on attachment 340985 [details] Patch Attachment 340985 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/7768389 New failing tests: http/tests/security/contentSecurityPolicy/video-with-https-url-allowed-by-csp-media-src-star.html
EWS Watchlist
Comment 3 2018-05-22 14:22:48 PDT
Created attachment 341025 [details] Archive of layout-test-results from ews204 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews204 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Alexey Proskuryakov
Comment 4 2018-05-22 19:00:35 PDT
Comment on attachment 340985 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=340985&action=review > Source/WebKit/ChangeLog:3 > + Enable Server-Timing by default Why?
youenn fablet
Comment 5 2018-05-22 21:18:08 PDT
Comment on attachment 340985 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=340985&action=review >> Source/WebKit/ChangeLog:3 >> + Enable Server-Timing by default > > Why? IIANM, Server-Timing WebCore implementation is finished though WebInspector could further leverage this information. Having it enabled in STP by default might make sense. cvazac, can you tell us what the implementation/shipping status is in other browsers?
cvazac
Comment 6 2018-05-22 21:26:50 PDT
(In reply to youenn fablet from comment #5) > Comment on attachment 340985 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=340985&action=review > > >> Source/WebKit/ChangeLog:3 > >> + Enable Server-Timing by default > > > > Why? > > IIANM, Server-Timing WebCore implementation is finished though WebInspector > could further leverage this information. > Having it enabled in STP by default might make sense. > cvazac, can you tell us what the implementation/shipping status is in other > browsers? On by default since Chrome 65, Opera 52: https://www.chromestatus.com/features/5695708376072192. Firefox is code complete with an intent to ship: https://groups.google.com/forum/#!msg/mozilla.dev.platform/MSzaY7_4mvg/hGpUlTzxAgAJ.
Ryosuke Niwa
Comment 7 2018-05-24 21:14:54 PDT
Does our implementation pass all web platform tests?
cvazac
Comment 8 2018-05-25 07:27:36 PDT
(In reply to Ryosuke Niwa from comment #7) > Does our implementation pass all web platform tests? Outside of tests that validate server-timing entries on the PerformanceNavigationTiming instance (which we don't yet support), they all pass.
Ryosuke Niwa
Comment 9 2018-05-25 19:46:57 PDT
(In reply to cvazac from comment #8) > (In reply to Ryosuke Niwa from comment #7) > > Does our implementation pass all web platform tests? > > Outside of tests that validate server-timing entries on the > PerformanceNavigationTiming instance (which we don't yet support), they all > pass. Why are we enabling this feature before adding the support for it? Presumably, you're talking about https://w3c.github.io/server-timing/#extension-to-the-a-performanceresourcetiming-a-interface It seems important that our implementation is complete.
cvazac
Comment 10 2018-05-30 10:32:43 PDT
> Why are we enabling this feature before adding the support for it? > > Presumably, you're talking about > https://w3c.github.io/server-timing/#extension-to-the-a- > performanceresourcetiming-a-interface > > It seems important that our implementation is complete. (Sorry for the delay) I'm talking about this: https://www.w3.org/TR/navigation-timing-2/#sec-PerformanceNavigationTiming Best I can tell, Webkit doesn't yet support performance entries of type "navigation".
Radar WebKit Bug Importer
Comment 11 2018-05-30 10:44:46 PDT
Jakub G (dailymotion)
Comment 12 2021-06-14 06:14:33 PDT
Current status of compat: - shipped in Chrome 65 - shipped in Edge 79 - shipped in Firefox 61 - Safari is the last major engine remaining Note that this API can be useful beyond strictly performance monitoring. Sometimes it's useful and handy to pass some piece of information to the page via an HTTP header, and Server-Timing can be (ab)used to pass arbitrary key-value string pairs (apart from performance numeric data), and read them back on JavaScript side: https://stackoverflow.com/a/66211531/245966 I don't know any other header *which is JS-readable* and can be used to pass arbitrary data in that way.
Alex Christensen
Comment 13 2021-09-01 22:13:54 PDT
Ryosuke Niwa
Comment 14 2021-09-02 01:23:56 PDT
In the past, we had several privacy concerns about this API. I'm not certain that all of them have been addressed.
Ryosuke Niwa
Comment 15 2021-09-02 01:24:54 PDT
(In reply to Jakub G (dailymotion) from comment #12) > > https://stackoverflow.com/a/66211531/245966 > > I don't know any other header *which is JS-readable* and can be used to pass > arbitrary data in that way. That is precisely the issue here. It can open up side channels for trackers.
Robin Berjon
Comment 16 2023-06-22 14:48:56 PDT
(In reply to Ryosuke Niwa from comment #15) > (In reply to Jakub G (dailymotion) from comment #12) > > https://stackoverflow.com/a/66211531/245966 > > > > I don't know any other header *which is JS-readable* and can be used to pass > > arbitrary data in that way. > > That is precisely the issue here. It can open up side channels for trackers. As far as I can tell, the side-channel issue has been resolved (see https://github.com/w3c/server-timing/issues/89, and the change landed in the spec last year).
Anne van Kesteren
Comment 17 2024-03-14 07:44:17 PDT
*** This bug has been marked as a duplicate of bug 245744 ***
Note You need to log in before you can comment on or make changes to this bug.