Closed Bug 1229657 Opened 5 years ago Closed 5 years ago

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

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: jya, Assigned: jya)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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

It should return NotSupportedErr error per spec.
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+
https://hg.mozilla.org/mozilla-central/rev/c829a47db369
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.