Bug 205768 - Resource Timing: secureConnectionStart == 0 when origin resource is requested from is reconnected to via Resource Hint
Summary: Resource Timing: secureConnectionStart == 0 when origin resource is requested...
Status: RESOLVED DUPLICATE of bug 225733
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-01-04 13:28 PST by Andy Davies
Modified: 2023-10-04 17:41 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Davies 2020-01-04 13:28:56 PST
Example Test Case: https://andydavies.github.io/browser-bug-demos/secureConnectionStart/preconnect.html

Page preconnects to res.cloudinary.com, after a short delay (to allow for a connection to be established) sets image URL, then when image loads, queries resource timing entries and inserts them into the page.

DNS and TCP phases of connection are clamped to fetchStart as they occurred before it)

secureConnectionStart is zero rather than being clamped in the same way

Chrome has similar behaviour (https://bugs.chromium.org/p/chromium/issues/detail?id=1039080) but the behaviour seems to change depending on whether DevTools is open, Safari's behaviour remains consistent regardless of whether Inspector is open or closed.
Comment 1 Radar WebKit Bug Importer 2020-01-05 19:57:05 PST
<rdar://problem/58331361>
Comment 2 Ahmad Saleem 2023-09-26 17:12:38 PDT
I believe this is similar to what was fixed here:

https://commits.webkit.org/237727@main

CCing - Alex and Chris for their input.
Comment 3 Alex Christensen 2023-10-04 17:41:04 PDT
Yep.  Thanks, Ahmad!

*** This bug has been marked as a duplicate of bug 225733 ***