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)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

Attachments

(1 file)

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.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.9alpha
Attached patch v1 patchSplinter Review
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)
Attachment #214248 - Flags: superreview?(brendan)
Attachment #214248 - Flags: review?(dbaron)
Attachment #214248 - Flags: review?(brendan)
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+
OK, I will look into fixing the indentation. Thanks for noticing.
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.

Attachment

General

Creator:
Created:
Updated:
Size: