Bug 272739 - Fetchs with NUL byte network errors do not generate a PerformanceResourceTiming object
Summary: Fetchs with NUL byte network errors do not generate a PerformanceResourceTimi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2024-04-16 03:45 PDT by jannis.rautenstrauch
Modified: 2024-04-27 10:58 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jannis.rautenstrauch 2024-04-16 03:45:25 PDT
Responses that contain a NUL byte in their headers result in an "failed to load resource: Response contained invalid HTTP headers" and do not generate a PerformanceResourceTiming object entry.

The specifications state that
> If a resource fetch was aborted due to a networking error (e.g. DNS, TCP, or TLS error), then the fetch will be included as a PerformanceResourceTiming object in the Performance Timeline with only the startTime, fetchStart, duration and responseEnd set. 
https://w3c.github.io/resource-timing/#resources-included-in-the-performanceresourcetiming-interface

Thus, I believe an entry should be created here.

Example URL: http://sub.headers.websec.saarland/_hp/tests/perfAPI-tao.sub.html?resp_type=parsing&browser_id=1&label=TAO&first_id=42874&last_id=42883&scheme=http&t_resp_id=42875&t_element_relation=img_direct&t_resp_origin=https://headers.webappsec.eu

In Firefox and Chromium an entry is created.
Comment 1 Radar WebKit Bug Importer 2024-04-23 03:46:44 PDT
<rdar://problem/126912722>