Closed
Bug 328925
Opened 19 years ago
Closed 19 years ago
Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)
Categories
(Core :: XPCOM, defect, P1)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: darin.moz, Assigned: darin.moz)
Details
Attachments
(1 file)
71.64 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)
Bug 305987 changed NS_WARN_IF_FALSE to emit a NS_WARNING instead of a NS_ERROR. This may not be what was intended by some authors who used NS_WARN_IF_FALSE in their code. Since we cannot know for sure what was originally intended, we should assume that NS_ERROR was intended. We can always revert back to warnings on a case-by-case basis if that proves to be desired.
If we don't do this then balsa may not turn orange when it would otherwise have turned orange prior to the patch for bug 305987, and then we might miss out on some valuable information.
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.9alpha
Assignee | ||
Comment 1•19 years ago
|
||
Blindly change all uses of NS_WARN_IF_FALSE to NS_ASSERTION.
1) Get list of NS_WARN_IF_FALSE users from LXR
2) cat list | xargs perl -pi -e "s/NS_WARN_IF_FALSE/NS_ASSERTION/"
3) Verify by inspection that only expected changes were made
Attachment #214248 -
Flags: superreview?(brendan)
Attachment #214248 -
Flags: review?(brendan)
Assignee | ||
Updated•19 years ago
|
Attachment #214248 -
Flags: superreview?(brendan)
Attachment #214248 -
Flags: review?(dbaron)
Attachment #214248 -
Flags: review?(brendan)
Comment 2•19 years ago
|
||
Sorry I didn't review -- still trying to recover from my disk disaster.
/be
Comment on attachment 214248 [details] [diff] [review]
v1 patch
r=dbaron, although this did mess up the indentation in some cases
Attachment #214248 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 4•19 years ago
|
||
OK, I will look into fixing the indentation. Thanks for noticing.
Assignee | ||
Comment 5•19 years ago
|
||
I fixed up the whitespace, and I killed some of the conversions where I saw fit (i.e., in Necko and XForms).
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•