Open
Bug 1932566
Opened 1 year ago
Updated 1 year ago
VideoDecoder.flush() incorrectly throws exceptions
Categories
(Core :: Audio/Video: Web Codecs, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: ossman, Unassigned)
Details
Steps to reproduce:
- Call VideoDecoder.decode() when Firefox is in the broken state described in bug 1932392.
- Call VideoDecoder.flush()
Actual results:
- The error callback given to VideoDecoder's constructor is called
- VideoDecoder.flush() throws the same Error
Expected results:
Only the error callback should have been called.
Updated•1 year ago
|
Component: Untriaged → Audio/Video: Web Codecs
Product: Firefox → Core
Updated•1 year ago
|
Flags: needinfo?(cchang)
Updated•1 year ago
|
Severity: -- → S3
Comment 1•1 year ago
|
||
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)
| Reporter | ||
Comment 2•1 year ago
|
||
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.
Description
•