Bug 1805238 [wpt PR 37257] - Update encoded/decoded body length for service-worker...
commite59f460600b2b2ae5a8ec8de92fa7e96b4cf8f37
authorNoam Rosenthal <nrosenthal@chromium.org>
Tue, 20 Dec 2022 10:21:25 +0000 (20 10:21 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 21 Dec 2022 19:33:27 +0000 (21 19:33 +0000)
tree8644d8fec58757188f7d263b5e3d2fc635a83fee
parentbb710ff7dfb9f9ddb01779295544f8a3876f4790
Bug 1805238 [wpt PR 37257] - Update encoded/decoded body length for service-worker responses, a=testonly

Automatic update from web-platform-tests
Update encoded/decoded body length for service-worker responses

Instead of relying on the network, count the bytes as they
come in and use the sum as the metric, only for service-worker
responses.

Corresponds to the relevant spec change:
https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith
(search for "encoded size")
and to proposed spec change:
https://github.com/whatwg/fetch/pull/1556

Bug: 925239
Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971
Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1081848}

--

wpt-commits: 998e292d3e0296e922d002930986a6156733734f
wpt-pr: 37257
testing/web-platform/tests/service-workers/service-worker/resource-timing-bodySize.https.html [new file with mode: 0644]
testing/web-platform/tests/service-workers/service-worker/resources/fetch-response.html [new file with mode: 0644]
testing/web-platform/tests/service-workers/service-worker/resources/fetch-response.js [new file with mode: 0644]