Closed Bug 334942 Opened 18 years ago Closed 18 years ago

Crash [@GetTablePartRank] with overflow: auto; display: table-row-group; and onmouseover style change

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: martijn.martijn, Assigned: roc)

References

Details

(4 keywords)

Crash Data

Attachments

(3 files)

See upcoming testcase, which crashes current trunk Mozilla build when hovering over the text.
Doesn't crash in 2006-04-17 build, crashes in 2006-04-18 build.

Talkback ID: TB17801522Y
GetTablePartRank   nsDisplayList::Sort   nsTableFrame::BuildDisplayList   nsIFrame::BuildDisplayListForChild  

Most likely a regression from bug 333481.
Attached file testcase
sound like the assumption that a rowgroup parent is a table is made, this is wrong for overflow frames there the parent is the scrollframe.
Me too - TB17809249E (and others this morning)
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060420 Minefield/3.0a1

Win2k platform - anyone try Linux?
TB17814175E
TB17813955W
Summary: Crash with overflow: auto; display: table-row-group; and onmouseover style change → Crash [@GetTablePartRank] with overflow: auto; display: table-row-group; and onmouseover style change
http://lxr.mozilla.org/seamonkey/source/layout/base/nsDisplayList.h#918

says:
918  * In some cases (e.g., clipping) we want to wrap a list but we don't have a
919  * particular underlying frame that is a stacking context root. In that case
920  * we allow the frame to be nsnull. Callers to GetUnderlyingFrame must
921  * detect and handle this case.

nsIAtom* type = aItem->GetUnderlyingFrame()->GetType(); 

isn't exactly complying with this requirement.
Robert I have no idea:
- what we need to return if mFrame is 0
- whether we should hit the case at all (aka wallpaper)
- why we dont mention the cell frame here below (this might be the other regression)
Ugh.

My fix for bug 333481 won't fix the problem in the presence of a scrolling rowgroup. I think we should fix that, and this crash, by calling nsDisplayList::ExplodeAnonymousChildLists before we try to sort by table part rank.
Flags: blocking1.9a1?
Robert:
>I think we should fix that

Is that *we*,  you (hopefully) or me?
[@ GetTablePartRank] is the #18 topcrash on trunk.  Some comments mention real-world pages rather than this testcase.  Assuming a fix here will fix the crash and adding "topcrash" keyword.
Keywords: topcrash
Attached patch fixSplinter Review
What I said ...
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #219825 - Flags: review?(bernd_mozilla)
Attachment #219825 - Flags: review?(bernd_mozilla) → review+
*** Bug 335613 has been marked as a duplicate of this bug. ***
> Some comments mention
> real-world pages rather than this testcase.

One is:
http://web.tampabay.rr.com/bmerkey/examples/nonscroll-table-header.html
checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Verified FIXED using 04-27-16 build of SeaMonkey trunk on Windows XP with both:

https://bugzilla.mozilla.org/attachment.cgi?id=219292&action=view
and
http://web.tampabay.rr.com/bmerkey/examples/nonscroll-table-header.html testcases.
Status: RESOLVED → VERIFIED
Flags: blocking1.9a1?
Crash Signature: [@GetTablePartRank]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: