Listbox and tree components don't work when used in XBL context

RESOLVED INACTIVE

Status

()

Core
XBL
RESOLVED INACTIVE
16 years ago
a day ago

People

(Reporter: Federico Santoni, Unassigned)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
Event associated to XUL elements as listbox and tree embedded into XBL component
don't fire in any case. Also it's impossible to select any row.
Try this (save it as try.xml): for XBL
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<bindings id="testcases" 
          xmlns="http://www.mozilla.org/xbl" 
          xmlns:html="http://www.w3.org/1999/xhtml" 
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <binding id="testmenu">
    <content>
      <xul:listbox >
         <xul:listhead>
           <xul:listheader label="?"/>
         </xul:listhead>
         <xul:listitem>
          <xul:listcell label="select me!"/>
        </xul:listitem>
       </xul:listbox>
    </content>
  </binding>
</bindings>

and this for XUL:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window title="Testcase"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<box style="-moz-binding: url('try2.xml#testmenu');"/>
</window>

Updated

16 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 1

15 years ago
Mouse events don't, but keyboard events do fire.
Selecting a row is possible (VK_UP or (VK_DOWN).

Comment 2

15 years ago
I don't know about listboxes but trees certainly work in XBL. Think Bookmarks!

Comment 3

15 years ago
Or is this really the "event.target is wrong for complex XBL bindings" issue?
QA Contact: ian → xbl

Updated

9 years ago
Assignee: hyatt → nobody

Comment 4

a day ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: a day ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.