Closed Bug 535483 Opened 16 years ago Closed 16 years ago

Crash [@ nsIFrame::GetPositionIgnoringScrolling] with position:fixed and mathml

Categories

(Core :: Layout, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Unassigned)

References

Details

(Keywords: crash, testcase, Whiteboard: [sg:dos] null-pointer dereference)

Crash Data

Attachments

(3 files)

Attached file testcase —
See testcase, which crashes after 50ms on trunk and current Firefox3.5.6 build. http://crash-stats.mozilla.com/report/index/bp-d65d44d8-d7f0-4d4f-8cec-865e82091216 0 xul.dll nsIFrame::GetPositionIgnoringScrolling layout/generic/nsIFrame.h:787 1 xul.dll nsHTMLReflowState::CalculateHypotheticalBox 2 xul.dll nsHTMLReflowState::InitAbsoluteConstraints layout/generic/nsHTMLReflowState.cpp:1183 3 xul.dll nsHTMLReflowState::InitResizeFlags layout/generic/nsHTMLReflowState.cpp:425 4 xul.dll nsAbsoluteContainingBlock::ReflowAbsoluteFrame layout/generic/nsAbsoluteContainingBlock.cpp:443 5 @0x420d97f
Attached file stack + frame tree —
cbrs->frame == aContainingBlock http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsHTMLReflowState.cpp#1105 The frame tree looks reasonable to me at first glance. Maybe we should simply change the do{}while(x) to a while(x){}
Attached patch wip1 — — Splinter Review
Attachment #426434 - Flags: review?(dbaron)
OS: Windows XP → All
Hardware: x86 → All
Whiteboard: [sg:dos] null-pointer dereference
Comment on attachment 426434 [details] [diff] [review] wip1 r=dbaron, although I'm not sure that having the ViewportFrame be a containing block for anything other than fixed pos frames is actually a good idea. Then again, I think we don't have box frames be containing blocks at all, so that probably wins. r=dbaron
Attachment #426434 - Flags: review?(dbaron) → review+
Comment on attachment 426434 [details] [diff] [review] wip1 Actually, I think the real problem here is described in bug 469861, so changing this to review-.
Attachment #426434 - Flags: review+ → review-
Yeah, the patch in bug 469861 fixed this.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Depends on: 469861
Crash Signature: [@ nsIFrame::GetPositionIgnoringScrolling]
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: