<?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>250331</bug_id>
          
          <creation_ts>2023-01-09 11:35:29 -0800</creation_ts>
          <short_desc>Add navigationId to PerformanceEntry and subclasses</short_desc>
          <delta_ts>2025-09-25 17:16:53 -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>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian Clelland">iclelland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1924129</commentid>
    <comment_count>0</comment_count>
    <who name="Ian Clelland">iclelland</who>
    <bug_when>2023-01-09 11:35:29 -0800</bug_when>
    <thetext>(Presuming that https://github.com/w3c/performance-timeline/pull/192 and the related HTML change https://github.com/whatwg/html/pull/7370 land)

PerformanceEntry obejcts (https://w3c.github.io/performance-timeline/#the-performanceentry-interface) should track the number of times that a loaded document has appeared to the user to navigate. Initially this is a count of back-forward cache restorations, which are indistinguishable to the user from other history navigations. The intention is to extend this to include single-page-app (SPA) transitions which mimic traditional navigations (see https://github.com/WICG/soft-navigations), with other extensions possible in the future.

The overall change here is that PerformanceEntry&apos;s IDL becomes

      interface PerformanceEntry {
        readonly    attribute DOMString           name;
        readonly    attribute DOMString           entryType;
        readonly    attribute DOMHighResTimeStamp startTime;
        readonly    attribute DOMHighResTimeStamp duration;
        readonly    attribute unsigned long       navigationId;
        [Default] object toJSON();
      };

where navigationId is set to the value of a similar counter on the document where the entry originated. This counter starts at 1 for the initial (network) navigation, and is incremented by back-forward-cache restoration events (and in the future by detected SPA navigations)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925846</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-16 11:36:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/104303481&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145994</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-09-25 15:32:11 -0700</bug_when>
    <thetext>*** Bug 299564 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>