Closed Bug 1851121 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 41756 - [fetch-later] Limit max amount of deferred requests per origin

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox119 fixed)

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 41756 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/41756
Details from upstream follow.

Ming-Ying Chung <mych@chromium.org> wrote:

[fetch-later] Limit max amount of deferred requests per origin

The spec of the "Deferred fetching" algorithm sets the maximum
bytes of deferred requests (a fetchLater request) for a request URL
origin to 64 kilobytes.

This CL implements the restriction by surfacing a fetch's Request
body size from Request::ExtractBody() to
FetchRequestData::BufferByteLength(). The body size is extraced from
v8 value when ExtractBody() performs the body extraction.

Intentionally not to modify Body (Requests's base class) nor
BodyStreamBuffer (FetchRequestData::Buffer()'s return type), as they
are all widely used beyond a request (it can be a response body).

Bug: 1465781
Change-Id: I075be5043f5658971d347729923f968b428bc7c1
Reviewed-on: https://chromium-review.googlesource.com/4835437
WPT-Export-Revision: 3e10be6914b1d87bb4138be470166e4a5701b009

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 11 tests and 20 subtests

Status Summary

Firefox

ERROR: 11

Chrome

OK : 7
PASS : 69
ERROR: 4

Safari

ERROR: 11

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae7eac085a26 [wpt PR 41756] - [fetch-later] Limit max amount of deferred requests per origin, a=testonly https://hg.mozilla.org/integration/autoland/rev/826a2adb5aff [wpt PR 41756] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.