<?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>193902</bug_id>
          
          <creation_ts>2019-01-28 04:36:37 -0800</creation_ts>
          <short_desc>[Resource Timing] Should surface entries for failed requests (DNS, TCP, SSL, 4xx, 5xx)</short_desc>
          <delta_ts>2021-09-26 02:20:46 -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>Safari 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>REOPENED</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="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>noam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1498982</commentid>
    <comment_count>0</comment_count>
    <who name="Nic Jansma">nic</who>
    <bug_when>2019-01-28 04:36:37 -0800</bug_when>
    <thetext>This is a request for an un-do of https://bugs.webkit.org/show_bug.cgi?id=104762

Per the latest ResourceTiming (Level 2) spec:

https://www.w3.org/TR/resource-timing-2/#resources-included-in-the-performanceresourcetiming-interface

&gt; If a resource fetch was aborted due to a networking error (e.g. DNS, TCP, or TLS error), then the fetch MAY be included as a PerformanceResourceTiming object in the Performance Timeline with initialized attribute values up to the point of failure - e.g. a TCP handshake error should report DNS timestamps for the request, and so on.

While the language says MAY, I&apos;m requesting that failed entries (transport-level and HTTP 4xx/5xx) be included in ResourceTiming in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758980</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-05-11 11:03:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 202040 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759533</commentid>
    <comment_count>2</comment_count>
    <who name="Nic Jansma">nic</who>
    <bug_when>2021-05-12 21:06:08 -0700</bug_when>
    <thetext>@Alex this isn&apos;t fully addressed though, transport-level errors (DNS/TCP/SSL) still don&apos;t surface a ResourceTiming entry.

Test case at: https://nicj.net/dev/resourcetiming/error-resources.html

The 4xx and 5xx cases work now thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759702</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-05-13 09:00:13 -0700</bug_when>
    <thetext>Reopening then</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1764418</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-05-27 11:09:38 -0700</bug_when>
    <thetext>See https://github.com/whatwg/fetch/issues/1215</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797285</commentid>
    <comment_count>5</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2021-09-26 02:20:46 -0700</bug_when>
    <thetext>I&apos;m currently editing the spec to explicitly create resource timing entries for network errors.

Track https://github.com/whatwg/fetch/pull/1311 for spec work
Track https://github.com/web-platform-tests/wpt/issues/30968 for tests</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>