Closed Bug 403576 Opened 18 years ago Closed 18 years ago

[FIX]"ASSERTION: Margins on anonymous fieldset child not supported!" with <fieldset style="display: table-column-group;">

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: jruderman, Assigned: bzbarsky)

References

(Depends on 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
Loading the testcase triggers: ###!!! ASSERTION: Bogus availSize.width; should be bigger: '!mContentFrame || GetContentMinWidth(aReflowState.rendContext) <= availSize.width', file /Users/jruderman/trunk/mozilla/layout/forms/nsFieldSetFrame.cpp, line 470 ###!!! ASSERTION: width less than zero: 'aContainingBlockWidth >= 0', file /Users/jruderman/trunk/mozilla/layout/base/nsLayoutUtils.cpp, line 1643 ###!!! ASSERTION: Margins on anonymous fieldset child not supported!: 'kidReflowState.mComputedMargin == nsMargin(0,0,0,0)', file /Users/jruderman/trunk/mozilla/layout/forms/nsFieldSetFrame.cpp, line 556 The last assertion was added by roc in bug 336153, a few days ago. This bug might be related to bug 402850.
(gdb) p kidReflowState.mComputedMargin $1 = {top = 0, right = -828, bottom = 0, left = 0} (gdb) p aReflowState.mComputedWidth $3 = -828 I call bogus right about then!
Attached patch FixSplinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #288453 - Flags: superreview?(dbaron)
Attachment #288453 - Flags: review?(dbaron)
Assignee: bzbarsky → nobody
Status: ASSIGNED → NEW
Component: Layout: Form Controls → Layout
OS: Mac OS X → All
QA Contact: layout.form-controls → layout
Hardware: PC → All
Summary: "ASSERTION: Margins on anonymous fieldset child not supported!" with <fieldset style="display: table-column-group;"> → [FIX]"ASSERTION: Margins on anonymous fieldset child not supported!" with <fieldset style="display: table-column-group;">
Target Milestone: --- → mozilla1.9 M10
Assignee: nobody → bzbarsky
Comment on attachment 288453 [details] [diff] [review] Fix r+sr=dbaron. Sorry for the long delay here. (Worth approving; it's just a test to make sure a width doesn't go below zero, plus a bunch of assertions.)
Attachment #288453 - Flags: superreview?(dbaron)
Attachment #288453 - Flags: superreview+
Attachment #288453 - Flags: review?(dbaron)
Attachment #288453 - Flags: review+
Comment on attachment 288453 [details] [diff] [review] Fix This is just adding some basic safety checks. This should be very safe.
Attachment #288453 - Flags: approval1.9?
Comment on attachment 288453 [details] [diff] [review] Fix a=beltzner for 1.9
Attachment #288453 - Flags: approval1.9? → approval1.9+
Checked in. I checked in the crashtest too.
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Depends on: 422890
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: