Closed Bug 148120 Opened 22 years ago Closed 5 years ago

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

Categories

(Core :: XBL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: santoni, Unassigned)

Details

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>
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mouse events don't, but keyboard events do fire.
Selecting a row is possible (VK_UP or (VK_DOWN).
I don't know about listboxes but trees certainly work in XBL. Think Bookmarks!
Or is this really the "event.target is wrong for complex XBL bindings" issue?
QA Contact: ian → xbl
Assignee: hyatt → nobody

XBL is now disabled in Firefox (Bug 1583314) and is in the process of being removed from Gecko (Bug 1566221), so closing bugs requesting changes to its implementation as wontfix.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.