Closed
Bug 899546
Opened 11 years ago
Closed 11 years ago
ENSURE_SUCCESS macro for ErrorResult
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: baku, Assigned: baku)
Details
Attachments
(1 file, 5 obsolete files)
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
This macro would be nice to have in order to avoid: if (rv.Failed()) { NS_WARNING(something); return somethingelse; } Converting IDB components to WebIDL I had to replace many NS_ENSURE_SUCCESS/TRUE to a if statement. Maybe a macro can be useful.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #783127 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•11 years ago
|
||
I prefer to split the patch in 2.
Attachment #783127 -
Attachment is obsolete: true
Attachment #783127 -
Flags: review?(bzbarsky)
Attachment #783140 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #783140 -
Attachment is obsolete: true
Attachment #783140 -
Flags: review?(bzbarsky)
Attachment #783189 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•11 years ago
|
||
better approach
Attachment #783189 -
Attachment is obsolete: true
Attachment #783189 -
Flags: review?(bzbarsky)
Attachment #783190 -
Flags: review?(bzbarsky)
![]() |
||
Comment 5•11 years ago
|
||
Comment on attachment 783190 [details] [diff] [review] macro.patch r=me
Attachment #783190 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #783190 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 7•11 years ago
|
||
I cannot use nsCPrintfString because webRTC uses ErrorResult.h and it's external-linked. This new version uses nsCString and ApppendPrintf and it works.
Attachment #783420 -
Attachment is obsolete: true
Attachment #783589 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 8•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=f7fc0751dc66
![]() |
||
Comment 9•11 years ago
|
||
Comment on attachment 783589 [details] [diff] [review] macro.patch r=me
Attachment #783589 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/42dffbbe9e57
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/42dffbbe9e57
Assignee: nobody → amarchesini
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•