<?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>168057</bug_id>
          
          <creation_ts>2017-02-09 10:46:31 -0800</creation_ts>
          <short_desc>[Navigation Timing] navigationStart and DOM timings in Unix epoch, other timings 0-based for Back-Forward navigations</short_desc>
          <delta_ts>2017-02-16 22:33:56 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>Safari 10</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nic Jansma">nic</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>cdumez</cc>
    
    <cc>joepeck</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1274917</commentid>
    <comment_count>0</comment_count>
    <who name="Nic Jansma">nic</who>
    <bug_when>2017-02-09 10:46:31 -0800</bug_when>
    <thetext>Hi,

We&apos;re seeing many cases where on Back-Forward navigations, the NavigationTiming timestamps are incorrect.

It appears that navigationStart is Unix-epoch based, along with the dom* events.  However, all other timestamps are 0-based.

It also appears navigationStart happens after the dom* events.

Example 1:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0 Mobile/14C92 Safari/602.1

navigation.type             2 // back-forward
redirectStart               0
redirectEnd                 0
navigationStart             1486655091185
fetchStart                  0
domainLookupStart           2
domainLookupEnd             27
connectStart                27
connectEnd                  50
requestStart                52
responseStart               434
responseEnd                 0
domLoading                  1486655020306
domInteractive              1486655044330
domContentLoadedEventStart  1486655044330
domContentLoadedEventEnd    1486655044339
domComplete                 1486655088205
loadEventStart              0

Example 2:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1

navigation.type             2 // back-forward
redirectStart               0
redirectEnd                 0
navigationStart             1486648661894
fetchStart                  0
domainLookupStart           0
domainLookupEnd             0
connectStart                0
connectEnd                  0
requestStart                3
responseStart               259
responseEnd                 0
domLoading                  1486648620150
domInteractive              1486648620956
domContentLoadedEventStart  1486648621014
domContentLoadedEventEnd    1486648621070
domComplete                 1486648652486
loadEventStart              0

This doesn&apos;t happen all of the time, but in one data set, we&apos;re seeing it in 17 out of 254,357 beacons.  It doesn&apos;t appear to be all Back-Forward Safari beacons, as there are 27,593 other Back-Foward beacons in that dataset whose timestamps look OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275073</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-02-09 15:24:06 -0800</bug_when>
    <thetext>I can look at this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>