Closed
Bug 782606
Opened 13 years ago
Closed 13 years ago
Use NS_FAILED instead of boolean test (dom/indexedDB/, dom/workers/)
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: ayg, Assigned: ayg)
References
Details
Attachments
(1 file)
|
4.30 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•13 years ago
|
||
Testing an nsresult as a boolean isn't correct use of nsresult -- there are success codes other than NS_OK. (Although maybe there shouldn't be!) This will no longer compile when nsresult is an enum class, because enum classes can't be implicitly converted to other types.
This shouldn't change behavior as long as nothing here uses success codes other than NS_OK. I wasn't able to easily verify that was the case here, but it seems likely.
Attachment #651709 -
Flags: review?(jonas)
Attachment #651709 -
Flags: review?(jonas) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/11d577df701f
Green try: https://tbpl.mozilla.org/?tree=Try&rev=da4047717ef7
Flags: in-testsuite-
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•