Closed
Bug 1610610
Opened 5 years ago
Closed 5 years ago
Remove remaining NS_ERROR_DOM_TYPE_ERR usage in mediasource
Categories
(Core :: Audio/Video: Playback, task, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla74
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(3 files)
A few got missed in bug 1609861 because the tests were not as simple.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
There are no values of aError that are not handled by the switch.
Assignee | ||
Comment 3•5 years ago
|
||
I tried to write a test for this, but it looks like
mCurrentAttributes.mGenerateTimestamps is only true when the type is "audio/aac"
or "audio/mpeg", and we don't support either of those in MediaSource. So this
code can't actually be reached, as far as I can tell.
Priority: -- → P3
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/786fbd2c6687
part 1. Throw the right exception from MediaSource::SetDuration. r=jya
https://hg.mozilla.org/integration/autoland/rev/cb2ed5d9a5b1
part 2. Remove unreachable code from MediaSource::EndOfStream. r=jya
https://hg.mozilla.org/integration/autoland/rev/64dc8647fc6c
part 3. Fix the exception thrown when a SourceBuffer's mode is set to "segments". r=jya
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21331 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/786fbd2c6687
https://hg.mozilla.org/mozilla-central/rev/cb2ed5d9a5b1
https://hg.mozilla.org/mozilla-central/rev/64dc8647fc6c
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox74:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•