Closed Bug 89833 Opened 24 years ago Closed 23 years ago

XUL in XBL crashes mozilla

Categories

(Core :: XBL, defect)

x86
All
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: hand, Assigned: hyatt)

Details

(Keywords: crash)

Attachments

(2 files)

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; .NET CLR 1.0.2914) BuildID: 2001062815 Adding <xul:treechildren/> to XBL causes mozilla to crash. Reproducible: Always Steps to Reproduce: Save the attacked *.zip file. Extract three files "treetest.xul", "tree.xml", "mozilla.css" to a directory and open "treetest.xul" in mozilla. Actual Results: Mozilla crashed. Expected Results: Mozilla should not crash.
Severity: major → critical
Keywords: crash
Confirmed on Linux Build 2001070608
Status: UNCONFIRMED → NEW
Ever confirmed: true
I debugged some, and this is the logic of my upcoming fix: When the tree initializes itself, it checks how many rows it currently contains annd its rows' properties. If there are no rows, or tree children (or whatever, I'm not sure :) ) then it will crash because a frame is null. My fix is to set return 0 as the initial rowcount for this state and return a special return value (-1) for the function that checks the height of something which makes the caller understand that the height is bogus. When I compiled this and tried again, the XUL rendered nicely. I'm not sure I understand the fix but it seems that it fixed the root cause of this bug!
OS: Windows 2000 → All
Attached patch fixSplinter Review
Hyatt, do you think you can review this little crash fix?
This isn't really the right fix. The GetTreeParent function should never return null, so you shouldn't be having to add this code.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
This is a duplicate of bug #68936, I think. The patch attached there fixes GetTreeParent().
this works for me now (at least, it doesn't crash...), Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910, pulled from cvs, build myself Could someone else have a look at it?
Thanks. Doesn't crash for me. All the old tree code was (mostly) replaced a few months ago.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: