<?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>168415</bug_id>
          
          <creation_ts>2017-02-15 23:12:27 -0800</creation_ts>
          <short_desc>[Resource Timing] El Capitan NetworkLoadTiming values are sometimes jumbled</short_desc>
          <delta_ts>2017-08-18 13:06:33 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <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>
          <dependson>175674</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>joepeck</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1277534</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-02-15 23:12:27 -0800</bug_when>
    <thetext>[Resource Timing] El Capitan NetworkLoadTiming values are sometimes jumbled

See discussion on: bug 168086

I&apos;m not exactly sure how to interpret the numbers. They are not as consistently numbered as they are on Sierra.

----

    $ sw_vers
    ProductName:	Mac OS X
    ProductVersion:	10.11.6
    BuildVersion:	15G31

    --- stderr from test ---

    2017-02-15 21:42:30.349 com.apple.WebKit.Networking.Development[41618:151126] &gt;&gt;&gt; TIMING DATA: {
        &quot;_kCFNTimingDataConnectEnd&quot; = &quot;508916550.347444&quot;;
        &quot;_kCFNTimingDataConnectStart&quot; = &quot;508916550.347444&quot;;
        &quot;_kCFNTimingDataConnectionReused&quot; = 1;
        &quot;_kCFNTimingDataDomainLookupEnd&quot; = &quot;508916550.346444&quot;;
        &quot;_kCFNTimingDataDomainLookupStart&quot; = &quot;508916550.346444&quot;;
        &quot;_kCFNTimingDataFetchStart&quot; = &quot;508916550.328835&quot;;
        &quot;_kCFNTimingDataRedirectCount&quot; = 3;
        &quot;_kCFNTimingDataRedirectCountW3C&quot; = 0;
        &quot;_kCFNTimingDataRedirectEnd&quot; = 0;
        &quot;_kCFNTimingDataRedirectStart&quot; = 0;
        &quot;_kCFNTimingDataRequestStart&quot; = &quot;508916550.330722&quot;;
        &quot;_kCFNTimingDataResponseEnd&quot; = &quot;508916550.349124&quot;;
        &quot;_kCFNTimingDataResponseStart&quot; = &quot;508916550.331586&quot;;
        &quot;_kCFNTimingDataSecureConnectionStart&quot; = 0;
        &quot;_kCFNTimingDataTimingDataInit&quot; = &quot;508916550.346192&quot;;
    }

Note in this example the ordered by timestamps we get:

    FetchStart:         508916550.328835
    RequestStart:       508916550.330722
    ResponseStart:      508916550.331586
    TimingDataInit:     508916550.346192
    DomainLookupStart:  508916550.346444
    DomainLookupEnd:    508916550.346444
    ConnectStart:       508916550.347444
    ConnectEnd:         508916550.347444
    ResponseEnd:        508916550.349124

This is whacky. For starters, TimingDataInit/FetchStart should be the earliest value that all other values are measured relative to. But here it isn&apos;t even the earliest value.

A different entry looks like:

    TimingDataInit:     508916550.058271
    DomainLookupEnd:    508916550.058545
    DomainLookupStart:  508916550.058545
    FetchStart:         508916550.057944
    ConnectEnd:         508916550.059545
    ConnectStart:       508916550.059545
    RequestStart:       508916550.059958
    ResponseStart:      508916550.060892
    ResponseEnd:        508916550.061163

It is suspicious that _kCFNTimingDataConnectionReused is reused. Maybe in that case we should ignore DNS/Connect numbers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1277537</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-02-15 23:13:05 -0800</bug_when>
    <thetext>&lt;rdar://problem/30551923&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340069</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-18 08:48:54 -0700</bug_when>
    <thetext>Reopening, sorry for closing it. The tests marked against this bug are passing for GTK+ now, see bug #175674. But I don&apos;t know about other platforms. It&apos;s worth checking if this is still a problem on El Capitan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340146</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-08-18 11:03:38 -0700</bug_when>
    <thetext>It&apos;s likely this is something that changed in CFNetwork between El Capitan and Sierra, and won&apos;t be fixed in WebKit anyways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340201</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-08-18 13:06:33 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #3)
&gt; It&apos;s likely this is something that changed in CFNetwork between El Capitan
&gt; and Sierra, and won&apos;t be fixed in WebKit anyways.

Correct. The values from CFNetwork were jumbled. Ultimately that got addressed in Sierra when CFNetwork introduced NSURLSessionTaskTransactionMetrics and improved and corrected handling of all the loading metrics, very much in-line with the W3C Resource Timing data.

Since that data comes from a component underneath WebKit I think its unlikely to get addressed for an older OS. As a result, El Capitan won&apos;t have ResourceTiming enabled but newer OSes will.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>