[wpt-sync] Sync PR 63424 - BackgroundFetch: stop using Blobs during request lookup
Categories
(Core :: DOM: Service Workers, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63424 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63424
Details from upstream follow.
Evan Stade <evanstade@microsoft.com> wrote:
BackgroundFetch: stop using Blobs during request lookup
When retrieving a request body from cache storage, don't wrap it in a
Blob. The Blob is immediately redirected into a DataPipeGetter anyway
when used by the browser for the upload/download. Registration of a
BlobDataItem/BlobDataItemReader with the BlobContext is unnecessary
complexity which uses extra mojo pipes and async steps. If the request
is retrieved by the renderer with Match, the Blob wrapper is again
unnecessary most of the time.This change doesn't affect the lifetime of data: as with the
BlobDataItem before it, the DataPipeGetter will stop working if the
cache storage entry needs to be deleted."GetRequestBlob" symbol names are changed to "GetRequestBody" in many
places.Also add WPT coverage for BgF uploads. (It seems like ReadableStream
body should be supported, but currently is not, so that's left out of
the test.)Bypass-Check-License: file rename
Bug: 567175133
Change-Id: Iba326621c2f6930d5d275bb1a95330fb70d69873
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8444651
Reviewed-by: Tommy Nyquist \<nyquist@chromium.org>
Commit-Queue: Evan Stade \<evanstade@microsoft.com>
Reviewed-by: Rick Byers \<rbyers@chromium.org>
Reviewed-by: Rakina Zata Amni \<rakina@chromium.org>
Reviewed-by: Fergal Daly \<fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714621}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=102728
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 15 tests
Status Summary
Firefox
OK : 1
FAIL : 8
Chrome
PASS : 1
TIMEOUT: 2
NOTRUN : 6
Safari
OK : 1
FAIL : 8
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /background-fetch/abort.https.window.html [wpt.fyi]:
SKIP - /background-fetch/content-security-policy.https.window.html [wpt.fyi]:
SKIP - /background-fetch/fetch-uploads.https.window.html [wpt.fyi]:
SKIP - /background-fetch/fetch.https.window.html [wpt.fyi]:
SKIP - /background-fetch/get-ids.https.window.html [wpt.fyi]:
SKIP - /background-fetch/get.https.window.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.serviceworker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.sharedworker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.worker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.html [wpt.fyi]:
SKIP - /background-fetch/match-request-body.https.window.html [wpt.fyi]:
OK[GitHub],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,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] (Chrome:TIMEOUT, Safari:OK)- Match returns the request body for string.:
FAIL(Chrome:PASS, Safari:FAIL) - Match returns the request body for ArrayBuffer.:
FAIL(Chrome:TIMEOUT, Safari:FAIL) - Match returns the request body for TypedArray.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Match returns the request body for DataView.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Match returns the request body for Blob.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Match returns the request body for File.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Match returns the request body for URLSearchParams.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Match returns the request body for FormData.:
FAIL(Chrome:NOTRUN, Safari:FAIL)
- Match returns the request body for string.:
- /background-fetch/match.https.window.html [wpt.fyi]:
SKIP - /background-fetch/mixed-content-and-allowed-schemes.https.window.html [wpt.fyi]:
SKIP - /background-fetch/port-blocking.https.window.html [wpt.fyi]:
SKIP - /background-fetch/update-ui.https.window.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /background-fetch/abort.https.window.html [wpt.fyi]:
SKIP - /background-fetch/content-security-policy.https.window.html [wpt.fyi]:
SKIP - /background-fetch/fetch-uploads.https.window.html [wpt.fyi]:
SKIP - /background-fetch/fetch.https.window.html [wpt.fyi]:
SKIP - /background-fetch/get-ids.https.window.html [wpt.fyi]:
SKIP - /background-fetch/get.https.window.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.serviceworker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.sharedworker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.worker.html [wpt.fyi]:
SKIP - /background-fetch/idlharness.https.any.html [wpt.fyi]:
SKIP - /background-fetch/match-request-body.https.window.html [wpt.fyi]:
OK[GitHub],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,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] (Chrome:TIMEOUT, Safari:OK) - /background-fetch/match.https.window.html [wpt.fyi]:
SKIP - /background-fetch/mixed-content-and-allowed-schemes.https.window.html [wpt.fyi]:
SKIP - /background-fetch/port-blocking.https.window.html [wpt.fyi]:
SKIP - /background-fetch/update-ui.https.window.html [wpt.fyi]:
SKIP
Description
•