[wpt-sync] Sync PR 62715 - Fetch: a FormData body should survive collection of its source
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62715 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62715
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
Fetch: a FormData body should survive collection of its source
A body extracted from a FormData object keeps that object as its source, so the Files it holds, and their blob URL registrations, have to stay alive for as long as the body can be read. Covers Response, Request, a clone, and reading the body as a stream.
WebKit kept only the blob URLs, so reading such a body after a collection failed with an
InvalidStateError. Fix in progress.Added to
fetch/api/basic/gc.any.jssince it is already the home for "GC should not break body consumption" and already pulls in/common/gc.js.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=92518
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 115 tests and 3 subtests
Status Summary
Firefox
OK : 4[GitHub] 109[Gecko-windows11-32-25h2-debug] 110[Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-opt] 111[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 20[GitHub] 1318[Gecko-windows11-32-25h2-debug] 1341[Gecko-windows11-32-25h2-opt] 1343[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 74[Gecko-windows11-32-25h2-opt] 78[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 1
Chrome
OK : 4
PASS : 20
Safari
OK : 4
PASS : 17
FAIL : 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /fetch/api/basic/header-value-combining.any.serviceworker.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-opt]- response.headers.get('content-length') expects 0, 0:
FAIL - response.headers.get('double-trouble') expects , :
FAIL - response.headers.get('heya') expects , , 1, , , 2:
FAIL - response.headers.get('www-authenticate') expects 1, 2, 3, 4:
FAIL
- response.headers.get('content-length') expects 0, 0:
- /fetch/api/basic/request-upload.h2.any.worker.html [wpt.fyi]:
SKIP - /fetch/api/basic/request-upload.h2.any.sharedworker.html [wpt.fyi]:
SKIP - /fetch/api/basic/request-upload.h2.any.serviceworker.html [wpt.fyi]:
SKIP - /fetch/api/basic/block-mime-as-script.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /fetch/api/basic/header-value-combining.any.sharedworker.html [wpt.fyi]
- response.headers.get('content-length') expects 0, 0:
FAIL - response.headers.get('double-trouble') expects , :
FAIL - response.headers.get('heya') expects , , 1, , , 2:
FAIL - response.headers.get('www-authenticate') expects 1, 2, 3, 4:
FAIL
- response.headers.get('content-length') expects 0, 0:
- /fetch/api/basic/header-value-combining.any.html [wpt.fyi]
- response.headers.get('content-length') expects 0, 0:
FAIL - response.headers.get('double-trouble') expects , :
FAIL - response.headers.get('heya') expects , , 1, , , 2:
FAIL - response.headers.get('www-authenticate') expects 1, 2, 3, 4:
FAIL
- response.headers.get('content-length') expects 0, 0:
- /fetch/api/basic/header-value-combining.any.worker.html [wpt.fyi]
- response.headers.get('content-length') expects 0, 0:
FAIL - response.headers.get('double-trouble') expects , :
FAIL - response.headers.get('heya') expects , , 1, , , 2:
FAIL - response.headers.get('www-authenticate') expects 1, 2, 3, 4:
FAIL
- response.headers.get('content-length') expects 0, 0:
- /fetch/api/basic/request-upload.any.serviceworker.html [wpt.fyi]
- Fetch with POST with ReadableStream containing String:
FAIL - Fetch with POST with ReadableStream containing null:
FAIL - Fetch with POST with ReadableStream containing number:
FAIL - Fetch with POST with ReadableStream containing ArrayBuffer:
FAIL - Fetch with POST with ReadableStream containing Blob:
FAIL - Streaming upload shouldn't work on Http/1.1.:
FAIL
- Fetch with POST with ReadableStream containing String:
- /fetch/api/basic/request-upload.any.worker.html [wpt.fyi]
- Fetch with POST with ReadableStream containing String:
FAIL - Fetch with POST with ReadableStream containing null:
FAIL - Fetch with POST with ReadableStream containing number:
FAIL - Fetch with POST with ReadableStream containing ArrayBuffer:
FAIL - Fetch with POST with ReadableStream containing Blob:
FAIL - Streaming upload shouldn't work on Http/1.1.:
FAIL
- Fetch with POST with ReadableStream containing String:
- /fetch/api/basic/request-upload.any.html [wpt.fyi]
- Fetch with POST with ReadableStream containing String:
FAIL - Fetch with POST with ReadableStream containing null:
FAIL - Fetch with POST with ReadableStream containing number:
FAIL - Fetch with POST with ReadableStream containing ArrayBuffer:
FAIL - Fetch with POST with ReadableStream containing Blob:
FAIL - Streaming upload shouldn't work on Http/1.1.:
FAIL
- Fetch with POST with ReadableStream containing String:
- /fetch/api/basic/request-upload.any.sharedworker.html [wpt.fyi]
- Fetch with POST with ReadableStream containing String:
FAIL - Fetch with POST with ReadableStream containing null:
FAIL - Fetch with POST with ReadableStream containing number:
FAIL - Fetch with POST with ReadableStream containing ArrayBuffer:
FAIL - Fetch with POST with ReadableStream containing Blob:
FAIL - Streaming upload shouldn't work on Http/1.1.:
FAIL
- Fetch with POST with ReadableStream containing String:
- /fetch/api/basic/request-upload.h2.any.html [wpt.fyi]:
ERROR[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /fetch/api/basic/response-null-body.any.html [wpt.fyi]
- Response.body is null for responses with status=204 (method=GET):
FAIL - Response.body is null for responses with status=204 (method=POST):
FAIL - Response.body is null for responses with status=204 (method=OPTIONS):
FAIL - Response.body is null for responses with status=205 (method=GET):
FAIL - Response.body is null for responses with status=205 (method=POST):
FAIL - Response.body is null for responses with status=205 (method=OPTIONS):
FAIL - Response.body is null for responses with status=304 (method=GET):
FAIL - Response.body is null for responses with status=304 (method=POST):
FAIL - Response.body is null for responses with status=304 (method=OPTIONS):
FAIL
- Response.body is null for responses with status=204 (method=GET):
- /fetch/api/basic/response-null-body.any.serviceworker.html [wpt.fyi]
- Response.body is null for responses with status=204 (method=GET):
FAIL - Response.body is null for responses with status=204 (method=POST):
FAIL - Response.body is null for responses with status=204 (method=OPTIONS):
FAIL - Response.body is null for responses with status=205 (method=GET):
FAIL - Response.body is null for responses with status=205 (method=POST):
FAIL - Response.body is null for responses with status=205 (method=OPTIONS):
FAIL - Response.body is null for responses with status=304 (method=GET):
FAIL - Response.body is null for responses with status=304 (method=POST):
FAIL - Response.body is null for responses with status=304 (method=OPTIONS):
FAIL
- Response.body is null for responses with status=204 (method=GET):
- /fetch/api/basic/response-null-body.any.worker.html [wpt.fyi]
- Response.body is null for responses with status=204 (method=GET):
FAIL - Response.body is null for responses with status=204 (method=POST):
FAIL - Response.body is null for responses with status=204 (method=OPTIONS):
FAIL - Response.body is null for responses with status=205 (method=GET):
FAIL - Response.body is null for responses with status=205 (method=POST):
FAIL - Response.body is null for responses with status=205 (method=OPTIONS):
FAIL - Response.body is null for responses with status=304 (method=GET):
FAIL - Response.body is null for responses with status=304 (method=POST):
FAIL - Response.body is null for responses with status=304 (method=OPTIONS):
FAIL
- Response.body is null for responses with status=204 (method=GET):
- /fetch/api/basic/response-null-body.any.sharedworker.html [wpt.fyi]
- Response.body is null for responses with status=204 (method=GET):
FAIL - Response.body is null for responses with status=204 (method=POST):
FAIL - Response.body is null for responses with status=204 (method=OPTIONS):
FAIL - Response.body is null for responses with status=205 (method=GET):
FAIL - Response.body is null for responses with status=205 (method=POST):
FAIL - Response.body is null for responses with status=205 (method=OPTIONS):
FAIL - Response.body is null for responses with status=304 (method=GET):
FAIL - Response.body is null for responses with status=304 (method=POST):
FAIL - Response.body is null for responses with status=304 (method=OPTIONS):
FAIL
- Response.body is null for responses with status=204 (method=GET):
- /fetch/api/basic/scheme-blob.sub.any.worker.html [wpt.fyi]
- Fetching URL.createObjectURL(invalid_type_blob) is OK:
FAIL
- Fetching URL.createObjectURL(invalid_type_blob) is OK:
- /fetch/api/basic/scheme-blob.sub.any.html [wpt.fyi]
- Fetching URL.createObjectURL(invalid_type_blob) is OK:
FAIL
- Fetching URL.createObjectURL(invalid_type_blob) is OK:
- /fetch/api/basic/url-parsing.sub.html?encoding=utf8 [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /fetch/api/basic/url-parsing.sub.html?encoding=windows-1252 [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Tests Disabled in Gecko Infrastructure
- /fetch/api/basic/header-value-combining.any.serviceworker.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-opt] - /fetch/api/basic/request-upload.h2.any.worker.html [wpt.fyi]:
SKIP - /fetch/api/basic/request-upload.h2.any.sharedworker.html [wpt.fyi]:
SKIP - /fetch/api/basic/request-upload.h2.any.serviceworker.html [wpt.fyi]:
SKIP - /fetch/api/basic/block-mime-as-script.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /fetch/api/basic/request-upload.h2.any.html [wpt.fyi]:
ERROR[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] linked bug:Bug 1854702 - /fetch/api/basic/url-parsing.sub.html?encoding=utf8 [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /fetch/api/basic/url-parsing.sub.html?encoding=windows-1252 [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Comment 4•2 months ago
|
||
| bugherder | ||
Description
•