[Webkit-unassigned] [Bug 272739] New: Fetchs with NUL byte network errors do not generate a PerformanceResourceTiming object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 16 03:45:25 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=272739

            Bug ID: 272739
           Summary: Fetchs with NUL byte network errors do not generate a
                    PerformanceResourceTiming object
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jannis.rautenstrauch at cispa.de
                CC: beidson at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240416/51272694/attachment.htm>


More information about the webkit-unassigned mailing list