Closed Bug 370586 Opened 18 years ago Closed 18 years ago

[FIX]Crash [@ nsCellMapColumnIterator::GetNextFrame] with <td style="display: table-footer-group"> and rowspan

Categories

(Core :: Layout: Tables, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.9alpha3

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: crash, testcase)

Crash Data

Attachments

(3 files)

Attached file testcase
Loading the testcase makes Firefox crash [@ nsCellMapColumnIterator::GetNextFrame].
In a debug build, I see this assertion before the crash: ###!!! ASSERTION: Bogus mOrigCells?: 'mCurMapRow < mCurMapRelevantRowCount', file /Users/jruderman/trunk/mozilla/layout/tables/nsCellMap.cpp, line 2792
Oh, nice! So the issue is that we have a pseudo cellframe for that <td>. And that pseudo cellframe claims that its rowspan is "3" if you ask it. But when the rowspan is changed, the cellmap is NOT updated, since the cellframe is not the primary frame for the <td>. As a result, we think that it has a span of 3, but it only has a span of 1 in the cellmap, hence crashes. I don't think the rowspan of 3 should be happening here, frankly.
Jesse, that assertion is pretty much the only way crashes can happen here; I should probably give it more generic text since it seems to catch all sorts of cellmap issue. :(
>that assertion is pretty much the only way crashes can happen here Yeah somebody has to lead the crowd. Before this BasicTableLayoutStrategy::AssignNonPctColumnWidths had this role. This is just one place where we access all cellmap coordinates and verify by this the correctness of the cellmap. >So the issue is that we have a pseudo cellframe for that <td>. And that pseudo >cellframe claims that its rowspan is "3" if you ask it. Thats basically a style issue?
Attached patch Proposed fixSplinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #255307 - Flags: superreview?(roc)
Attachment #255307 - Flags: review?(bernd_mozilla)
OS: Mac OS X → All
Hardware: PC → All
Summary: Crash [@ nsCellMapColumnIterator::GetNextFrame] with <td style="display: table-footer-group"> and rowspan → [FIX]Crash [@ nsCellMapColumnIterator::GetNextFrame] with <td style="display: table-footer-group"> and rowspan
Target Milestone: --- → mozilla1.9alpha3
Comment on attachment 255307 [details] [diff] [review] Proposed fix looks good
Attachment #255307 - Flags: review?(bernd_mozilla) → review+
Attachment #255307 - Flags: superreview?(roc) → superreview+
fix checked in on 2007-02-18 17:10
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Oh, sorry. I meant to mark this resolved...
Flags: in-testsuite+
Crash Signature: [@ nsCellMapColumnIterator::GetNextFrame]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: