Closed Bug 282537 Opened 19 years ago Closed 19 years ago

crash when xbl:inherits is placed on the children tag

Categories

(Core :: XBL, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: surkov, Assigned: bzbarsky)

Details

Attachments

(4 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111

<binding id="bnd2">
<content>
	<xul:hbox>
		<children includes="button" xbl:inherits="disabled"/>
	</xul:hbox>
</content>
</binding>

<bnd2 disabled="true">
<button label="hello"/>
</bnd2>

Default namespace is http://www.mozilla.org/xbl. When I specify 'inherits'
attribute with 'xbl' prefix then mozilla is crashed.

Reproducible: Always

Steps to Reproduce:
Severity: normal → critical
Alexander, please please attach testcases to the bug if you have them.  Don't
just paste in little snippets that have to be reverse-engineered into a testcase!
Attached file XBL for testcase (obsolete) —
Attached file Testcase -- will crash
Simpler XBL.
Attachment #174589 - Attachment is obsolete: true
Attached patch Patch (obsolete) — Splinter Review
The comment in the patch pretty much sums up what's going on...

The other option would be to make the attr entries hold strong refs to the
content nodes, but that seems somewhat unnecessary to me.
Attachment #174595 - Flags: superreview?(bryner)
Attachment #174595 - Flags: review?(bryner)
Comment on attachment 174595 [details] [diff] [review]
Patch

This patch is wrong; it causes attribute inheritance to not work right for some
reason...
Attachment #174595 - Flags: superreview?(bryner)
Attachment #174595 - Flags: superreview-
Attachment #174595 - Flags: review?(bryner)
Attachment #174595 - Flags: review-
Attached patch Better patchSplinter Review
Attachment #174595 - Attachment is obsolete: true
Attached patch Same as diff -wSplinter Review
Attachment #174702 - Flags: superreview?(bryner)
Attachment #174702 - Flags: review?(bryner)
Attachment #174702 - Flags: superreview?(bryner)
Attachment #174702 - Flags: superreview+
Attachment #174702 - Flags: review?(bryner)
Attachment #174702 - Flags: review+
Assignee: hyatt → bzbarsky
Status: UNCONFIRMED → NEW
Ever confirmed: true
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: