Open Bug 273863 Opened 20 years ago Updated 2 years ago

wrong behaviour of embedded expander elements

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

People

(Reporter: surkov, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

When I empbed one expander to another then top expander catchs events of
empbedded expander.
This bug can be fixed by adding one line of code to onCommand() method of expander:

var element = aEvent.originalTarget;
if(element.parentNode.parentNode!=this) return; //this line should be added
var button = element.getAttribute("anonid");

Reproducible: Always
Steps to Reproduce:
Example:

<expander label="expander1">
 <expander label="expander2">
  <description value="hello"/>
 </expander>
</expander>
Assignee: jag → bugs
Component: XP Toolkit/Widgets → Preferences
Product: Core → Firefox
QA Contact: jrgmorrison → mconnor
confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050401 Firefox/1.0+

Not sure the expanders are used anymore (they were considered mozapps-only - bug
217631, and now they don't seem to be used in Options window)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
roc seems to have been unamused by their behavior even unnested: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/xul/base/src/nsBoxFrame.cpp&rev=1.313#1584
Assignee: bugs → nobody
Component: Preferences → XUL Widgets
Product: Firefox → Toolkit
QA Contact: preferences → xul.widgets
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.