Closed Bug 1746885 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32140 - Stream cancellation in page should be notified to service worker

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yutaka Hirano <yhirano@chromium.org> wrote:

Stream cancellation in page should be notified to service worker

When the script transfers a body stream via FetchEvent.RespondWith and
the stream consumption is cancelled in page, that cancellation should be
observable in the service worker via UnderlyingSource.cancel.

Bug: 638494
Change-Id: Ib46c9ae73c17dd2c04432d23b06dad76466105ed
Reviewed-on: https://chromium-review.googlesource.com/3347484
WPT-Export-Revision: fd87da68a2493fece6780372dfd441e6ce9bf419

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core

CI Results

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

Total 3 tests and 33 subtests

Status Summary

Firefox

OK : 2
PASS : 6
FAIL : 66
TIMEOUT: 2

Chrome

OK : 3
PASS : 70
FAIL : 3

Safari

OK : 3
PASS : 6
FAIL : 67

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/service-workers/service-worker/fetch-event-respond-with-readable-stream.https.html: TIMEOUT

New Tests That Don't Pass

/service-workers/service-worker/fetch-event-respond-with-readable-stream.https.html: TIMEOUT (Chrome: OK, Safari: OK)
Cancellation in the page should be observable in the service worker: TIMEOUT (Chrome: FAIL, Safari: FAIL)
/webcodecs/image-decoder.https.any.html
Test JPEG image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation top-left.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation top-right.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation bottom-right.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation bottom-left.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation left-top.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation right-top.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation right-bottom.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation left-bottom.: FAIL (Chrome: PASS, Safari: FAIL)
Test PNG image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test high bit depth HDR AVIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test multi-track AVIF image decoding w/ preferAnimation=false.: FAIL (Chrome: PASS, Safari: FAIL)
Test multi-track AVIF image decoding w/ preferAnimation=true.: FAIL (Chrome: PASS, Safari: FAIL)
Test WEBP image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test GIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:2:2 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:4:4 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test WEBP image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test invalid mime type rejects decode() requests: FAIL (Chrome: PASS, Safari: FAIL)
Test invalid mime type rejects decodeMetadata() requests: FAIL (Chrome: PASS, Safari: FAIL)
Test out of range index returns RangeError: FAIL (Chrome: PASS, Safari: FAIL)
Test partial decoding without a frame results in an error: FAIL (Chrome: PASS, Safari: FAIL)
Test completed property on fully buffered decode: FAIL (Chrome: PASS, Safari: FAIL)
Test decode, decodeMetadata after no track selected.: FAIL (Chrome: PASS, Safari: FAIL)
Test track selection in multi track image.: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream of gif: FAIL (Chrome: FAIL, Safari: FAIL)
Test that decode requests are serialized.: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream aborts promises on track change: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream aborts completed on close: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream resolves completed: FAIL (Chrome: PASS, Safari: FAIL)
/webcodecs/image-decoder.https.any.worker.html
Test JPEG image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation top-left.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation top-right.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation bottom-right.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation bottom-left.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation left-top.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation right-top.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation right-bottom.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG w/ EXIF orientation left-bottom.: FAIL (Chrome: PASS, Safari: FAIL)
Test PNG image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test high bit depth HDR AVIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test multi-track AVIF image decoding w/ preferAnimation=false.: FAIL (Chrome: PASS, Safari: FAIL)
Test multi-track AVIF image decoding w/ preferAnimation=true.: FAIL (Chrome: PASS, Safari: FAIL)
Test WEBP image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test GIF image decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test JPEG image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:2:2 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test AVIF image YUV 4:4:4 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test WEBP image YUV 4:2:0 decoding.: FAIL (Chrome: PASS, Safari: FAIL)
Test invalid mime type rejects decode() requests: FAIL (Chrome: PASS, Safari: FAIL)
Test invalid mime type rejects decodeMetadata() requests: FAIL (Chrome: PASS, Safari: FAIL)
Test out of range index returns RangeError: FAIL (Chrome: PASS, Safari: FAIL)
Test partial decoding without a frame results in an error: FAIL (Chrome: PASS, Safari: FAIL)
Test completed property on fully buffered decode: FAIL (Chrome: PASS, Safari: FAIL)
Test decode, decodeMetadata after no track selected.: FAIL (Chrome: PASS, Safari: FAIL)
Test track selection in multi track image.: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream of gif: FAIL (Chrome: FAIL, Safari: FAIL)
Test that decode requests are serialized.: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream aborts promises on track change: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream aborts completed on close: FAIL (Chrome: PASS, Safari: FAIL)
Test ReadableStream resolves completed: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b1aadc65bb0d
[wpt PR 32140] - Stream cancellation in page should be notified to service worker, a=testonly
https://hg.mozilla.org/integration/autoland/rev/82c4dc9a08f7
[wpt PR 32140] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.