Closed
Bug 1339540
Opened 8 years ago
Closed 8 years ago
Add a separate nsresult module for ErrorResult to use
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla54
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Keywords: sec-want, Whiteboard: [post-critsmash-triage][adv-main54-])
Attachments
(3 files, 1 obsolete file)
2.57 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
14.71 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
6.80 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
There are some nsresult values that mean special things to ErrorResult. We should make them clearly ErrorResult-specific.
![]() |
Assignee | |
Comment 1•8 years ago
|
||
Attachment #8837261 -
Flags: review?(bugs)
![]() |
Assignee | |
Comment 2•8 years ago
|
||
Attachment #8837262 -
Flags: review?(bugs)
![]() |
Assignee | |
Comment 3•8 years ago
|
||
Attachment #8837263 -
Flags: review?(bugs)
![]() |
Assignee | |
Comment 4•8 years ago
|
||
Attachment #8837266 -
Flags: review?(bugs)
![]() |
Assignee | |
Updated•8 years ago
|
Attachment #8837263 -
Attachment is obsolete: true
Attachment #8837263 -
Flags: review?(bugs)
Updated•8 years ago
|
Attachment #8837261 -
Flags: review?(bugs) → review+
Comment 5•8 years ago
|
||
Comment on attachment 8837262 [details] [diff] [review]
part 2. Move the three ErrorResult-internal NS_ERROR_DOM_* values over to the ErrorResult error module
+ /* Represents an JS Value being thrown as an exception. */
Should it be 'a JS'?
Attachment #8837262 -
Flags: review?(bugs) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8837266 [details] [diff] [review]
part 3. Use nsresult values in the ErrorResult error module in place of NS_ERROR_TYPE_ERR/NS_ERROR_RANGE_ERR in ErrorResult code
ok, so old NS_ERROR_TYPE_ERR and NS_ERROR_RANGE_ERR are still there.
I guess their usage should be replaced with ThrowTypeError and ThrowRangeError, but that is a separate bug or bugs?
Attachment #8837266 -
Flags: review?(bugs) → review+
![]() |
Assignee | |
Comment 7•8 years ago
|
||
> Should it be 'a JS'?
Yes. Fixed.
> ok, so old NS_ERROR_TYPE_ERR and NS_ERROR_RANGE_ERR are still there.
Yes. They sort of predate ErrorResult using them, so...
> I guess their usage should be replaced with ThrowTypeError and ThrowRangeError
Probably, yes. And yes, that's separate bug fodder.
Comment 8•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ebb182ab1da2
https://hg.mozilla.org/mozilla-central/rev/8682efc34f6c
https://hg.mozilla.org/mozilla-central/rev/b17eeee93d22
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•8 years ago
|
Group: dom-core-security → core-security-release
Updated•8 years ago
|
status-firefox52:
--- → wontfix
status-firefox53:
--- → wontfix
Updated•8 years ago
|
Flags: qe-verify-
Whiteboard: [post-critsmash-triage]
Updated•8 years ago
|
Whiteboard: [post-critsmash-triage] → [post-critsmash-triage][adv-main54-]
Updated•7 years ago
|
Group: core-security-release
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•