Closed Bug 1192467 Opened 10 years ago Closed 10 years ago

Formalize precondition that SetDisplayDocument must not be called with null

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

Details

Attachments

(2 files)

It's mentioned in the comment, but not actually added to the NS_PRECONDITIONs. Running MSVC static analysis complains about possible null-deref without this.
Attachment #8645276 - Flags: review?(peterv)
MOZ_ASSERT for all new assertions, please.
(In reply to :Ms2ger from comment #1) > MOZ_ASSERT for all new assertions, please. I do prefer it, but I was miming local code. Should I change the others in this function? If only the new one is MOZ_ASSERT, it will look like it's MOZ_ASSERT instead of NS_PRECONDITION for a reason, when it's really two names for the same thing. (Though NS_PRECONDITION has a little extra context for the reason for the assertion)
Flags: needinfo?(Ms2ger)
Making them all MOZ_ASSERT would be nice too :)
Flags: needinfo?(Ms2ger)
Attachment #8645276 - Flags: review?(peterv) → review+
Attachment #8646585 - Flags: review?(peterv) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: