mediasource.addSourceBuffer returns the wrong error type when mimetype isn't supported

RESOLVED FIXED in Firefox 45

Status

()

RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: jya, Assigned: jya)

Tracking

(Blocks: 1 bug)

Trunk
mozilla45
Points:
---

Firefox Tracking Flags

(firefox45 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
When a mimetype that isn't supported it passed, addSourceBuffer returns Invalid State.

It should return NotSupportedErr error per spec.
(Assignee)

Comment 1

3 years ago
InvalidStateError is only to be returned if the readyState attribute is not in the "open" state.
Attachment #8694581 - Flags: review?(gsquelart)
Attachment #8694581 - Flags: review?(gsquelart) → review+

Comment 3

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/c829a47db369
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox45: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.