Closed Bug 537419 Opened 15 years ago Closed 15 years ago

crash [@ nsINode::GetCurrentDoc() ] from GetPrimaryFrameFor(null) in nsAutoScrollTimer::Notify

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: bzbarsky)

References

Details

(Keywords: crash, topcrash)

Crash Data

Attachments

(1 file)

http://crash-stats.mozilla.com/report/list?range_value=2&range_unit=weeks&signature=nsINode%3A%3AGetCurrentDoc%28%29&version=Firefox%3A3.7a1pre
is another set of null-dereference topcrashes that started in December 25 builds, presumably a regression from bug 500882.

At a quick glance it looks like this code:
http://hg.mozilla.org/mozilla-central/annotate/127bc6ade9eb/layout/generic/nsSelection.cpp#l470
has to deal with mContent being null.
Hrm.  I'd audited this, but I guess nsIPresShell::GetCapturingContent can return null in Start().  Will add a null-check, though maybe it makes more sense to not start the timer at all in that case...
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attached patch FixSplinter Review
Attachment #419715 - Flags: review?(dbaron)
Comment on attachment 419715 [details] [diff] [review]
Fix

r=dbaron
Attachment #419715 - Flags: review?(dbaron) → review+
Pushed http://hg.mozilla.org/mozilla-central/rev/cb5a303025fe
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Crash Signature: [@ nsINode::GetCurrentDoc() ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: