Get rid of NS_ERROR_RANGE_ERR
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
It's causing us to have spec-compliance bugs because people get confused and use NS_ERROR_RANGE_ERR when they're supposed to throw a RangeError.
For example, ImageBitmap::Create
throws this instead of an actual RangeError.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
The changes to the return type of MerchantValidationEvent::init are because
Result doesn't allow having an ErrorResult (or any other type without a copy
constructor) as its error type. Plus we would have had the impedance mismatch
between Result<Ok, nsresult> (which is what URL resolution on the document
returns) and Result<Ok, ErrorResult> anyway.
Assignee | ||
Comment 4•5 years ago
|
||
The two remaining consumers don't seem to depend on actually using this
specific nsresult in any way.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05a8a4e72917 part 1. Stop using NS_ERROR_RANGE_ERR in createImageBitmap. r=baku https://hg.mozilla.org/integration/autoland/rev/4bf2eafe1afd part 2. Stop using NS_ERROR_RANGE_ERR in SVGTransform. r=jwatt https://hg.mozilla.org/integration/autoland/rev/7a73a025a5ab part 3. Stop using NS_ERROR_RANGE_ERR and NS_ERROR_TYPE_ERR in payments code. r=edenchuang https://hg.mozilla.org/integration/autoland/rev/8357c5978e4c part 4. Get rid of NS_ERROR_RANGE_ERR. r=peterv
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/19231 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/05a8a4e72917
https://hg.mozilla.org/mozilla-central/rev/4bf2eafe1afd
https://hg.mozilla.org/mozilla-central/rev/7a73a025a5ab
https://hg.mozilla.org/mozilla-central/rev/8357c5978e4c
Upstream PR merged by moz-wptsync-bot
Description
•