Closed Bug 1891897 Opened 6 months ago Closed 5 months ago

Add a testcase to ensure WebCodecs decoder handle the right promise in flush's callback

Categories

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

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(4 files)

Follow-up from: https://phabricator.services.mozilla.com/D206934?id=846659#inline-1149546

In bug 1839993, the flush-promise handling in DecoderTemplate will be updated. We should have a testcase to ensure the task delivering the flush X's result always handle/resolve/reject the promise associated with the flush X

Attachment #9397030 - Attachment description: WIP: Bug 1891897 - Ensure flush handles its associate promise → Bug 1891897 - Ensure flush handles its associate promise
Attachment #9397030 - Attachment description: Bug 1891897 - Ensure flush handles its associate promise → WIP: Bug 1891897 - Ensure flush handles its associate promise
See Also: → 1839993, 1892785
Attachment #9397030 - Attachment description: WIP: Bug 1891897 - Ensure flush handles its associate promise → Bug 1891897 - Validate WebCodecs decoder's flush promise handling

Previously, the WebCodecs encoder modified how it handles promises
associated with flush requests in Bug 1892785 [1]. This patch introduces
tests to ensure that the encoder's handler for a flush request can
correctly resolve or reject the associated promise without affecting
other pending promises.

[1] https://hg.mozilla.org/mozilla-central/rev/eeac4e97050a4b1e61d8331f5d61b5b3316d4f72

Depends on D207655

Depends on D208689

Depends on D208690

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecc4a91a0a74 Validate WebCodecs decoder's flush promise handling r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/ae143f29809b Validate WebCodecs encoder's flush promise handling r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/653eb24b823d Correct logging level r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/af9ab0b39f69 Correct comment r=media-playback-reviewers,padenot
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/45931 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: