Bug 248994 - Blob range request test failures
Summary: Blob range request test failures
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anne van Kesteren
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-08 16:44 PST by Dan Robertson
Modified: 2023-03-22 09:34 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Radar WebKit Bug Importer 2022-12-09 00:20:27 PST
<rdar://problem/103171187>
Comment 2 Anne van Kesteren 2023-03-20 02:08:52 PDT
I updated the tests to better reflect the whitespace requirements: https://github.com/web-platform-tests/wpt/pull/39078.
Comment 3 Anne van Kesteren 2023-03-21 05:49:05 PDT
I attempted writing a patch for this and found some more issues that also impact the specification. We need to clamp the range start and end values pro-actively, otherwise `Content-Range` cannot be set correctly. Too large start values should result in rejection. It's not useful to return the last byte.

The draft patch can be found at https://github.com/WebKit/WebKit/pull/11756. (Apologies for the poor formatting of the commit message. `git webkit pr` was not my friend.)

It also fixes bug 243403.
Comment 4 EWS 2023-03-22 09:34:40 PDT
Committed 261968@main (09841b4faec7): <https://commits.webkit.org/261968@main>

Reviewed commits have been landed. Closing PR #11756 and removing active labels.