<?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>177579</bug_id>
          
          <creation_ts>2017-09-27 16:16:25 -0700</creation_ts>
          <short_desc>Include &quot;beacon&quot; ResourceTiming entry</short_desc>
          <delta_ts>2023-05-03 08:17:57 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>bugmail</cc>
    
    <cc>cdumez</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1353910</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-09-27 16:16:25 -0700</bug_when>
    <thetext>Include &quot;beacon&quot; ResourceTiming entry.

The current Resource Timing spec expects beacon resource loads:
https://w3c.github.io/resource-timing/

Spec text:

&gt; On getting, the initiatorType attribute must return one of the following DOMString values:
&gt; ...
&gt;     &quot;beacon&quot;, if the request is the result of processing the sendBeacon method [Beacon];

Test:
1. Load https://tests.caniuse.com/?feat=beacon
2. Wait a while so beacons could be fulfilled
3. js&gt; performance.getEntriesByType(&quot;resource&quot;)
  =&gt; No &quot;beacon&quot; entries

Notes:
- No other browser I tested included beacon loads in Resource Timing
- Note adding entries to the performance timeline exposes when the beacon was sent / response received. I don&apos;t think thats a bad thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952640</commentid>
    <comment_count>1</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-05-03 08:17:57 -0700</bug_when>
    <thetext>I filed https://github.com/w3c/resource-timing/issues/377 to track this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>