Open Bug 307188 Opened 19 years ago Updated 2 years ago

MENUITEM thumb images not shown in MENULIST

Categories

(Toolkit :: UI Widgets, defect)

x86
Windows Server 2003
defect

Tracking

()

People

(Reporter: bugzilla, Unassigned)

References

()

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; hu-HU; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

Firefox 1.0.x and Deer Park alpha builds do not seem to display thumb images 
assigned to MENUITEMs inside a MENULIST's MENUPOPUP list. Images intended to be 
shown right next to the item captions are not shown in the drop-down area, nor 
in the always-visible portion of the dropdown listbox.

XUL sample code:
[code]
        <menulist id="xxx" ...>
          <menupopup>
            <menuitem label="label1" value="value1" id="menuitem1" 
image="chrome://basename/skin/icon.gif" class="menuitem-iconic"/>
            ..
          </menupopup>
        </menulist>
[/code]

CSS code for XUL:
[code]
menuitem#menuitem1 { 
   -moz-box-orient: horizontal; list-style-image: url
("chrome://basename/skin/icon.gif") 
}
[/code]


Reproducible: Always

Steps to Reproduce:
1. Download and install the extension linked above
2. Check the first non-editable dropdown box in the toolbar (it 
displays "weben" in default) - no images shown
3. Check the XUL and CSS files in the .XPI's .JAR file - all MENUITEMs for the 
specified MENULIST have both the "image" inline attribute, and the "list-style-
image" attribute in the CSS file set to a valid image file. Their class is also 
set correctly to "menuitem-iconic".

Actual Results:  
No image thumbs are shown in the dropdown listbox (XUL MENULIST control).

Expected Results:  
Images displayed next to the list items.
Do you need any further information to proceed fixing this bug? Or why this 
silence?
Nem: please retest in Firefox 1.5.0.3... I'm seeing results that indicate it does work now.
I spoke a little too soon.  I see this in Firefox 1.5.0.3, WinXP.  (Sorry, I was looking at a menu, not a menulist.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file testcase (obsolete) —
Attached file fixed testcase
Attachment #220701 - Attachment is obsolete: true
Component: Toolbars → XUL Widgets
Product: Firefox → Toolkit
QA Contact: toolbars → xul.widgets
Any work on this? This seems to be still in the latest XULRunner nightlies.
If you replace image= with src= then the images _are_ shown in the always-visible portion of the dropdown listbox. They are still not visible in the drop-down area however. MENUITEMs which contain only image=/src= and no label= will display empty in the drop-down area. I am using Firefox 2.0.0.12
I've found that these images are disabled for menulist in Firefox's menu.css.
Tested in Fx 3.5.8 & 3.6.4 with the testcase here.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: