Closed
Bug 284575
Opened 21 years ago
Closed 21 years ago
Crash when dynamically adding rowspan and border to table-cells [@ TableBackgroundPainter::PaintCell ]
Categories
(Core :: Layout: Tables, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: bernd_mozilla)
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(2 files)
677 bytes,
text/html
|
Details | |
1.31 KB,
patch
|
bzbarsky
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
See upcoming testcase. The testcase crashes my current trunk build for 100%.
Talkback is currently down.
This looks like a regression:
Doesn't crash in 2004-04-16 8:45am
Crashes in 2004-04-20 12:42am
The only bug that might have got something to do with it, as far as I can see,
is bug 237078.
Reporter | ||
Comment 1•21 years ago
|
||
It crashes in background painting as the columns are not correct. The testcase
with standards rendering mode should crash even before.
Martijn. if you file a crash bug into the layout-table component please put me
on CC.
Assignee: nobody → bernd_mozilla
Updated•21 years ago
|
Summary: Crash when dynamically adding rowspan and border to table-cells → Crash when dynamically adding rowspan and border to table-cells [@ TableBackgroundPainter::PaintCell ]
Attachment #176442 -
Flags: superreview?(roc)
Attachment #176442 -
Flags: review?(mats.palmgren)
Comment 5•21 years ago
|
||
Comment on attachment 176442 [details] [diff] [review]
patch
The change looks reasonable and it does fix the crash.
I don't know the table code well enough yet to feel comfortable doing
reviews on it though, sorry. Bumping the request to Boris.
Attachment #176442 -
Flags: review?(mats.palmgren) → review?(bzbarsky)
![]() |
||
Comment 6•21 years ago
|
||
So why are we using aColIndex + 1 and not aColIndex + numNewCells?
Its enough
for (PRInt32 cellX = 0; cellX < numNewCells; cellX++) {
nsTableCellFrame* cell =
(nsTableCellFrame*)aCellFrames->ElementAt(cellX);
if (cell) {
AppendCell(aMap, cell, rowX, PR_FALSE, aDamageArea);
}
}
will append all cells that we want. We might assert on numOrigCols >= aColIndex
There should *never* aColIndex be by say 5 larger than numOrigCols.
I checked in patch mentioning this bug, but that was wrong it was bug 280009.
Attachment #176442 -
Flags: superreview?(roc) → superreview+
![]() |
||
Comment 9•21 years ago
|
||
Comment on attachment 176442 [details] [diff] [review]
patch
Add that assert that numOrigCols >= aColIndex and r=bzbarsky
Attachment #176442 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 10•21 years ago
|
||
fix checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Crash Signature: [@ TableBackgroundPainter::PaintCell ]
You need to log in
before you can comment on or make changes to this bug.
Description
•