Closed
Bug 387460
Opened 16 years ago
Closed 16 years ago
[FIX]Crash [@ nsCellMapColumnIterator::GetNextFrame] with DOMAttrModified and changing rowspan
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
(5 keywords, Whiteboard: [sg:critical?] possibly exploitable)
Crash Data
Attachments
(3 files)
492 bytes,
application/xhtml+xml
|
Details | |
3.81 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
3.82 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
dveditz
:
approval1.8.1.8+
dveditz
:
approval1.8.0.14+
|
Details | Diff | Splinter Review |
See testcase which crashes current trunk build after 200ms. This regressed between 2007-01-21 and 2007-01-22: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-01-21+04&maxdate=2007-01-22+09&cvsroot=%2Fcvsroothttp://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-01-21+04&maxdate=2007-01-22+09&cvsroot=%2Fcvsroot I guess a regression from bug 352461. http://crash-stats.mozilla.com/report/index/6a2e1307-2e54-11dc-92f0-001a4bd43ef6 0 nsCellMapColumnIterator::GetNextFrame(int *,int *) 1 BasicTableLayoutStrategy::ComputeColumnIntrinsicWidths(nsIRenderingContext *) 2 BasicTableLayoutStrategy::ComputeIntrinsicWidths(nsIRenderingContext *) 3 BasicTableLayoutStrategy::GetMinWidth(nsIRenderingContext *) 4 nsTableFrame::TableShrinkWidthToFit(nsIRenderingContext *,int) 5 nsTableFrame::ComputeAutoSize(nsIRenderingContext *,nsSize,int,nsSize,nsSize,nsSize,int) 6 nsFrame::ComputeSize(nsIRenderingContext *,nsSize,int,nsSize,nsSize,nsSize,int) 7 nsTableFrame::ComputeSize(nsIRenderingContext *,nsSize,int,nsSize,nsSize,nsSize,int) 8 nsHTMLReflowState::InitConstraints(nsPresContext *,int,int,nsMargin const *,nsMargin const *) 9 nsHTMLReflowState::Init(nsPresContext *,int,int,nsMargin const *,nsMargin const *)
Bug 352461 is seldom the cause but rather exposing a underlying problem in the cellmap. Why does the testcase need window.addEventListener('DOMAttrModified', function(e){document.getElementById('a').focus();}, true); Is that a good old layout breakpoint? Or can it be replaced by one?
![]() |
Assignee | |
Comment 2•16 years ago
|
||
Anything that triggers a layout flush in there will cause a crash. document.body.offsetWidth does. I should have a patch soon; doing some CVS archeology.
![]() |
Assignee | |
Updated•16 years ago
|
Group: security
![]() |
Assignee | |
Comment 3•16 years ago
|
||
This has been broken ever since mutation events landed. Basically, we're firing the mutation event after changing the attr value but before calling AttributeChanged, so some data structures (in particular the cellmap) are not getting updated as they should before the mutation event runs arbitrary script. This might well be exploitable if one tries hard enough...
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #271620 -
Flags: superreview?(jonas)
Attachment #271620 -
Flags: review?(jonas)
![]() |
Assignee | |
Comment 4•16 years ago
|
||
Attachment #271622 -
Flags: superreview?(jonas)
Attachment #271622 -
Flags: review?(jonas)
Attachment #271622 -
Flags: approval1.8.1.6?
Attachment #271622 -
Flags: approval1.8.0.13?
![]() |
Assignee | |
Updated•16 years ago
|
Flags: blocking1.8.1.6?
Flags: blocking1.8.0.13?
OS: Windows XP → All
Hardware: PC → All
Summary: Crash [@ nsCellMapColumnIterator::GetNextFrame] with DOMAttrModified and changing rowspan → [FIX]Crash [@ nsCellMapColumnIterator::GetNextFrame] with DOMAttrModified and changing rowspan
Attachment #271622 -
Flags: superreview?(jonas)
Attachment #271622 -
Flags: superreview+
Attachment #271622 -
Flags: review?(jonas)
Attachment #271622 -
Flags: review+
Attachment #271620 -
Flags: superreview?(jonas)
Attachment #271620 -
Flags: superreview+
Attachment #271620 -
Flags: review?(jonas)
Attachment #271620 -
Flags: review+
![]() |
Assignee | |
Comment 5•16 years ago
|
||
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 6•16 years ago
|
||
Verified fixed, using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7pre) Gecko/2007071905 Minefield/3.0a7pre
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: wanted1.8.0.x+
Whiteboard: [sg:critical?] possibly exploitable
Updated•16 years ago
|
Flags: blocking1.8.0.13? → blocking1.8.0.14?
Updated•16 years ago
|
Attachment #271622 -
Flags: approval1.8.0.13? → approval1.8.0.14?
Comment 7•16 years ago
|
||
Comment on attachment 271622 [details] [diff] [review] Branch patch approved for 1.8.1.7 and 1.8.0.14, a=dveditz for release-drivers
Attachment #271622 -
Flags: approval1.8.1.7?
Attachment #271622 -
Flags: approval1.8.1.7+
Attachment #271622 -
Flags: approval1.8.0.14?
Attachment #271622 -
Flags: approval1.8.0.14+
Updated•16 years ago
|
Flags: blocking1.8.1.7? → blocking1.8.1.7+
Reporter | ||
Updated•16 years ago
|
Flags: blocking1.8.0.14?
Comment 9•16 years ago
|
||
verified fixed 1.8.1.7 using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.7pre) Gecko/2007083003 BonEcho/2.0.0.7pre and Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.7pre) Gecko/20070830 BonEcho/2.0.0.7pre ID:2007083003 and the testcase this bug. No crash on testcase - adding verified keyword.
Keywords: fixed1.8.1.7 → verified1.8.1.7
![]() |
Assignee | |
Updated•16 years ago
|
Flags: in-testsuite?
![]() |
Assignee | |
Comment 10•16 years ago
|
||
Filed bug 394418 on a similar issue.
Updated•16 years ago
|
Group: security
Comment 11•16 years ago
|
||
I can't repro the crash with the released Firefox 1.5.0.12 (Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12). Because of this, I can't verify that the fix works in the current 1.8.0 branch builds. Is there an alternative test case?
Comment 12•16 years ago
|
||
It doesn't crash in Windows FF 1.5.0.12 either: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12.
Comment 13•15 years ago
|
||
crash test landed http://hg.mozilla.org/mozilla-central/rev/9fa246f8f121
Flags: in-testsuite? → in-testsuite+
Updated•13 years ago
|
Crash Signature: [@ nsCellMapColumnIterator::GetNextFrame]
You need to log in
before you can comment on or make changes to this bug.
Description
•