Open Bug 1932566 Opened 1 year ago Updated 1 year ago

VideoDecoder.flush() incorrectly throws exceptions

Categories

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

Firefox 132
defect

Tracking

()

UNCONFIRMED

People

(Reporter: ossman, Unassigned)

Details

Steps to reproduce:

  1. Call VideoDecoder.decode() when Firefox is in the broken state described in bug 1932392.
  2. Call VideoDecoder.flush()

Actual results:

  1. The error callback given to VideoDecoder's constructor is called
  2. VideoDecoder.flush() throws the same Error

Expected results:

Only the error callback should have been called.

Component: Untriaged → Audio/Video: Web Codecs
Product: Firefox → Core
Flags: needinfo?(cchang)
Severity: -- → S3

What kind of error do you see from flush() or decode()? By the spec, InvalidStateError should be thrown. See: https://w3c.github.io/webcodecs/#dom-videodecoder-flush

Flags: needinfo?(cchang) → needinfo?(ossman)

I'm unsure what the exact error was. I think it was something more along the lines of the codec being unsupported.

But even so, the specification states that flush() should return a rejected promise at worst. There isn't anything about it throwing an exception.

Flags: needinfo?(ossman)
You need to log in before you can comment on or make changes to this bug.