Closed Bug 1609861 Opened 5 years ago Closed 5 years ago

Stop using NS_ERROR_DOM_TYPE_ERR in mediasource

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(5 files)

It causes us to throw the wrong sort of exception.

To clarify what's going on here: whenever you throw an nsresult value on an ErrorResult you will get an Exception or DOMException thrown, not a JS Error. So this code was throwing DOMExceptions with the name set to TypeError, not actual JS TypeError objects.

Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a739f7e78871
part 1.  Stop using NS_ERROR_DOM_TYPE_ERR in MediaSource::SetLiveSeekableRange. r=jya
https://hg.mozilla.org/integration/autoland/rev/2f0bfb1d550c
part 2.  Stop using NS_ERROR_DOM_TYPE_ERR in SourceBuffer::ChangeType.  r=jya
https://hg.mozilla.org/integration/autoland/rev/d6e3926d4f1f
part 3.  Stop using NS_ERROR_DOM_TYPE_ERR in SourceBuffer::PrepareRemove  r=jya
https://hg.mozilla.org/integration/autoland/rev/fea0bcc359a4
part 4.  Stop using NS_ERROR_DOM_TYPE_ERR in appendWindowStart/End setters.  r=jya
https://hg.mozilla.org/integration/autoland/rev/033d0e4500d9
part 5.  Stop using NS_ERROR_DOM_TYPE_ERR in IsTypeSupported.  r=jya
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21237 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: