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)
Core
Audio/Video: Playback
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.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
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.
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a739f7e78871
https://hg.mozilla.org/mozilla-central/rev/2f0bfb1d550c
https://hg.mozilla.org/mozilla-central/rev/d6e3926d4f1f
https://hg.mozilla.org/mozilla-central/rev/fea0bcc359a4
https://hg.mozilla.org/mozilla-central/rev/033d0e4500d9
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
•