<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>205768</bug_id>
          
          <creation_ts>2020-01-04 13:28:56 -0800</creation_ts>
          <short_desc>Resource Timing: secureConnectionStart == 0 when origin resource is requested from is reconnected to via Resource Hint</short_desc>
          <delta_ts>2023-10-04 17:41:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>225733</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy Davies">ad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1602779</commentid>
    <comment_count>0</comment_count>
    <who name="Andy Davies">ad</who>
    <bug_when>2020-01-04 13:28:56 -0800</bug_when>
    <thetext>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&apos;s behaviour remains consistent regardless of whether Inspector is open or closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1602930</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-05 19:57:05 -0800</bug_when>
    <thetext>&lt;rdar://problem/58331361&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980345</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-26 17:12:38 -0700</bug_when>
    <thetext>I believe this is similar to what was fixed here:

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

CCing - Alex and Chris for their input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982659</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2023-10-04 17:41:04 -0700</bug_when>
    <thetext>Yep.  Thanks, Ahmad!

*** This bug has been marked as a duplicate of bug 225733 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>