Closed
Bug 617639
Opened 15 years ago
Closed 15 years ago
Hopefully useless null check in PresShell::SetIsActive for mDocument or [@ PresShell::UpdateImageLockingState | PresShell::SetIsActive]
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: timeless, Assigned: timeless)
References
(Blocks 1 open bug)
Details
(Keywords: coverity)
Attachments
(1 file)
1.11 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
approval2.0+
|
Details | Diff | Splinter Review |
9242 PresShell::SetIsActive(PRBool aIsActive)
9243 {
9252 if (mDocument) {
9253 mDocument->EnumerateExternalResources(SetExternalResourceIsActive,
9254 &aIsActive);
9255 }
this will crash if !mDocument:
9256 return UpdateImageLockingState();
9257 }
9258
9259 /*
9260 * Determines the current image locking state. Called when one of the
9261 * dependent factors changes.
9262 */
9263 nsresult
9264 PresShell::UpdateImageLockingState()
9265 {
9266 // We're locked if we're both thawed and active.
right here:
9267 return mDocument->SetImageLockingState(!mFrozen && mIsActive);
![]() |
||
Comment 1•15 years ago
|
||
I believe we never enter this code if !mDocument.
bz: this being different than bug 602516?
Severity: critical → trivial
Keywords: crash
OS: Mac OS X → Windows XP
Summary: [@ PresShell::UpdateImageLockingState | PresShell::SetIsActive] if !mDocument → Hopefully useless null check in PresShell::SetIsActive for mDocument or [@ PresShell::UpdateImageLockingState | PresShell::SetIsActive]
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #496372 -
Flags: review?(bzbarsky)
Attachment #496372 -
Flags: approval2.0?
![]() |
||
Comment 4•15 years ago
|
||
Comment on attachment 496372 [details] [diff] [review]
patch
Yes, this is different from Freeze().
Attachment #496372 -
Flags: review?(bzbarsky)
Attachment #496372 -
Flags: review+
Attachment #496372 -
Flags: approval2.0?
Attachment #496372 -
Flags: approval2.0+
Keywords: checkin-needed
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Updated•7 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•