Closed Bug 1943459 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 50253 - [rust png] Legacy codec: Report failure for truncated, complete input.

Categories

(Core :: Audio/Video: Web Codecs, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Lukasz Anforowicz <lukasza@chromium.org> wrote:

[rust png] Legacy codec: Report failure for truncated, complete input.

This CL modifies blink::PNGImageDecoder to call SetFailed when
working with a truncated, complete input. Before this CL the code
has incorrectly treated this situation as recoverable.

After this CL, the behavior of blink::PNGImageDecoder matches that
of blink::SkiaImageDecoderBase. Aligning the behavior it the main
motivation for this CL.

Bug: chromium:391701378
Change-Id: I499a69da6994659ea03dc93967779f691436d0d2
Reviewed-on: https://chromium-review.googlesource.com/6191776
WPT-Export-Revision: c7fe5bb1fb7c7efb635e4a05addf2abe457cdb56

Component: web-platform-tests → Audio/Video: Web Codecs
Product: Testing → Core

CI Results

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

Total 2 tests and 41 subtests

Status Summary

Firefox

PASS : 60
FAIL : 22
ERROR: 2

Chrome

PASS : 80
FAIL : 2
ERROR: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /webcodecs/image-decoder.https.any.worker.html [wpt.fyi]: ERROR (Chrome: ERROR)
    • Test multi-track AVIF image decoding w/ preferAnimation=false.: FAIL (Chrome: PASS)
    • Test multi-track AVIF image decoding w/ preferAnimation=true.: FAIL (Chrome: PASS)
    • Test JPEG image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:2:2 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:4:4 decoding.: FAIL (Chrome: PASS)
    • Test WEBP image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test invalid mime type rejects decode() requests: FAIL (Chrome: PASS)
    • Test invalid mime type rejects decodeMetadata() requests: FAIL (Chrome: PASS)
    • Test decoding a partial ArrayBuffer results in EncodingError: FAIL (Chrome: FAIL)
    • Test track selection in multi track image.: FAIL (Chrome: PASS)
  • /webcodecs/image-decoder.https.any.html [wpt.fyi]: ERROR (Chrome: ERROR)
    • Test multi-track AVIF image decoding w/ preferAnimation=false.: FAIL (Chrome: PASS)
    • Test multi-track AVIF image decoding w/ preferAnimation=true.: FAIL (Chrome: PASS)
    • Test JPEG image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:2:2 decoding.: FAIL (Chrome: PASS)
    • Test AVIF image YUV 4:4:4 decoding.: FAIL (Chrome: PASS)
    • Test WEBP image YUV 4:2:0 decoding.: FAIL (Chrome: PASS)
    • Test invalid mime type rejects decode() requests: FAIL (Chrome: PASS)
    • Test invalid mime type rejects decodeMetadata() requests: FAIL (Chrome: PASS)
    • Test decoding a partial ArrayBuffer results in EncodingError: FAIL (Chrome: FAIL)
    • Test track selection in multi track image.: FAIL (Chrome: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f820f501831f [wpt PR 50253] - [rust png] Legacy codec: Report failure for truncated, complete input., a=testonly https://hg.mozilla.org/integration/autoland/rev/ddf5cb5a6821 [wpt PR 50253] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 25 days ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.