Closed
Bug 274808
Opened 21 years ago
Closed 21 years ago
Crash when dragging onto a tree [@ nsXULTreeBuilder::GetTemplateActionCellFor ]
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: enndeakin, Assigned: enndeakin)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
2.57 KB,
patch
|
janv
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
When there is a tree that does not have a primary column, there is a crash when
dragging onto it. The crash occurs trying to paint the drop marker line.
0x416775a0 in nsXULTreeBuilder::GetTemplateActionCellFor(int, nsITreeColumn*,
nsIContent**) (this=0x43201a68, aRow=2, aCol=0x0, aResult=0xbfffea30)
at nsXULTreeBuilder.cpp:1478
0x41674a2a in nsXULTreeBuilder::GetImageSrc(int, nsITreeColumn*, nsAString&)
(this=0x43201a68, aRow=2, aCol=0x0, aResult=@0xbfffea30)
at nsXULTreeBuilder.cpp:690
0x41634482 in nsTreeBodyFrame::GetImage(int, nsTreeColumn*, int,
nsStyleContext*, int&, imgIContainer**) (this=0x4327e1f0, aRowIndex=2, aCol=0x0,
aUseContext=1, aStyleContext=0x4333a7a0, aAllowImageRegions=@0xbfffeb3c,
aResult=0xbfffeb50) at nsTreeBodyFrame.cpp:1629
0x41634d41 in nsTreeBodyFrame::GetImageSize(int, nsTreeColumn*, int,
nsStyleContext*) (this=0x4327e1f0, aRowIndex=2, aCol=0x0, aUseContext=1,
aStyleContext=0x4333a7a0) at nsTreeBodyFrame.cpp:1755
0x4163817a in nsTreeBodyFrame::PaintDropFeedback(nsRect const&, nsPresContext*,
nsIRenderingContext&, nsRect const&) (this=0x4327e1f0,
aDropFeedbackRect=@0xbfffec90, aPresContext=0x431ddac0,
aRenderingContext=@0x43188b30, aDirtyRect=@0xbfffedd0)
at nsTreeBodyFrame.cpp:3105
Assignee | ||
Comment 1•21 years ago
|
||
The nsXULTreeBuilder change is where the crash was. Fixing that will properly
throw an exception when other calls are made to it with a null column. See bug
245459 for instance.
Attachment #168801 -
Flags: review?(jan)
Updated•21 years ago
|
Attachment #168801 -
Flags: review?(jan) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #168801 -
Flags: superreview?(bryner)
*** Bug 245459 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
OS: Linux → All
Summary: Crash when dragging onto a tree → Crash when dragging onto a tree [@ nsXULTreeBuilder::GetTemplateActionCellFor ]
Comment 3•21 years ago
|
||
Comment on attachment 168801 [details] [diff] [review]
Check if column is null
Looks good, though I do see that no one actually cares about the result code
from GetTemplateActionCellFor... good future deCOMtamination site.
Attachment #168801 -
Flags: superreview?(bryner) → superreview+
Comment 4•21 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.widgets
Updated•14 years ago
|
Crash Signature: [@ nsXULTreeBuilder::GetTemplateActionCellFor ]
You need to log in
before you can comment on or make changes to this bug.
Description
•