Closed Bug 1860597 Opened 1 year ago Closed 1 year ago

Fix a few things around configures that error out and flushing

Categories

(Core :: Audio/Video: Web Codecs, defect)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: padenot, Assigned: padenot)

Details

Attachments

(3 files)

When doing a configure, closing a decoder is to happen in a different task https://w3c.github.io/webcodecs/#ref-for-queue-a-task%E2%91%A0%E2%93%AA.

When Flushing, do nothing if there is no DecoderAgent, just mark the message as processed. The promise has been rejected with NotSupportedError in https://w3c.github.io/webcodecs/#ref-for-queue-a-task%E2%91%A0%E2%93%AA.

This fixes new WPT failures caused by the tests being more correct. This was introduced in https://bugzilla.mozilla.org/show_bug.cgi?id=1849427.

When doing a configure, closing a decoder is to happen in a different task
https://w3c.github.io/webcodecs/#ref-for-queue-a-task%E2%91%A0%E2%93%AA.

When Flushing, do nothing if there is no DecoderAgent, just mark the message as
processed. The promise has been rejected with NotSupportedError in
https://w3c.github.io/webcodecs/#ref-for-queue-a-task%E2%91%A0%E2%93%AA.

The severity field is not set for this bug.
:padenot, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(padenot)
Severity: -- → S2
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4747e34cbd8f Handle decoder configuration failure asynchronously. r=chunmin https://hg.mozilla.org/integration/autoland/rev/2bd1f9af7560 Update web platform tests expectations. r=chunmin https://hg.mozilla.org/integration/autoland/rev/0eb093ea4815 Improve logging messages by logging the error code name instead of value. r=chunmin https://hg.mozilla.org/integration/autoland/rev/70f361f21a24 apply code formatting via Lando
Flags: needinfo?(padenot)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: