Bug 272749 - Lone LF (\n) in responses to images result in timeouts
Summary: Lone LF (\n) in responses to images result in timeouts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat
Depends on:
Blocks:
 
Reported: 2024-04-16 06:14 PDT by jannis.rautenstrauch
Modified: 2024-04-23 06:15 PDT (History)
2 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 06:14:57 PDT
Responses that contain a lone LF and are loaded as subresources (e.g., image) load forever and do not fire a load/error event.

Example response:
```
HTTP/1.1 200
\ntiming-allow-origin: *
more-headers

body
```

URL: http://sub.headers.websec.saarland/_hp/tests/perfAPI-tao.sub.html?resp_type=parsing&browser_id=1&label=TAO&first_id=41834&last_id=41843&scheme=http&t_resp_id=41838&t_element_relation=img_direct&t_resp_origin=https://headers.webappsec.eu 
- Loads for 5 seconds, then the test aborts
- Firefox and Chromium fail the request immediately and fire an error event

Related issue with Fetch: https://bugs.webkit.org/show_bug.cgi?id=272748