Closed Bug 1015562 Opened 10 years ago Closed 10 years ago

"Assertion failure: !prevChildWasAnonGridItem (two anon grid items in a row)"

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: jruderman, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
With:
  user_pref("layout.css.grid.enabled", true);

Assertion failure: !prevChildWasAnonGridItem (two anon grid items in a row), at layout/generic/nsGridContainerFrame.cpp:131

An assertion added in bug 1009272 caught something!
Attached file stack
Attached patch fix+testSplinter Review
I completely missed one of the nsGkAtoms::flexContainerFrame checks
that should also check for grid containers.  I'm adding a convenience
function for this so an individual flex/gridContainerFrame check will
stand out more to help avoid this.  I checked the remaining uses
(in this file) and it looks OK now.
Assignee: nobody → matspal
Status: NEW → ASSIGNED
Attachment #8428332 - Flags: review?(dholbert)
Comment on attachment 8428332 [details] [diff] [review]
fix+test

>+++ b/layout/generic/crashtests/crashtests.list
>@@ -526,8 +526,9 @@ load 943509-1.html
> asserts(3-6) load 944909-1.html
> test-pref(layout.css.sticky.enabled,true) load 949932.html
> load 973701-1.xhtml
> load 973701-2.xhtml
> load 986899.html
> load 1001233.html
> load 1001258-1.html
> load outline-on-frameset.xhtml
>+pref(layout.css.grid.enabled,true) load 1015562.html

nit: probably insert this one line higher, to keep things alphabetically-sorted. (& keep numbers grouped together)

r=me
Attachment #8428332 - Flags: review?(dholbert) → review+
With the nit fixed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea97b234c940
Flags: in-testsuite+
OS: Mac OS X → All
Hardware: x86_64 → All
https://hg.mozilla.org/mozilla-central/rev/ea97b234c940
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: