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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla43
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | fixed |
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(2 files)
|
920 bytes,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
|
1.87 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
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)
Comment 1•10 years ago
|
||
MOZ_ASSERT for all new assertions, please.
| Assignee | ||
Comment 2•10 years ago
|
||
(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)
| Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(Ms2ger)
| Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8646585 -
Flags: review?(peterv)
Updated•10 years ago
|
Attachment #8645276 -
Flags: review?(peterv) → review+
Updated•10 years ago
|
Attachment #8646585 -
Flags: review?(peterv) → review+
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•