Closed Bug 135138 Opened 24 years ago Closed 2 years ago

(OS X) XUL listboxes should have a focus ring when activated

Categories

(Toolkit :: UI Widgets, defect)

x86
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: brant, Unassigned)

Details

(Keywords: access)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.9+) Gecko/20020401 BuildID: 2002040103 Listboxes do not indicate that they are activated. Examples include the language list box and the theme list box in preferences. Reproducible: Always Steps to Reproduce: 1. Open the Theme preferences. Actual Results: Press tab until you think the Theme list box is activated. No visual cue shows that it is activated. Expected Results: The list box gets the extra border like other controls do and/or the first item in the list box is selected.
QA Contact: paw → sairuh
This is a themes issue
Assignee: blaker → shliang
Component: XP Apps: GUI Features → Themes
QA Contact: sairuh → pmac
OK, I have a fix... patch coming soon.
Bah, nevermind, the patch didn't work.
Keep up the effort Håkan.
It looks like if one of the items was selected by default, this would be no problem.
This a section 508 issues under paragraph c.
Keywords: access, sec508
Since the View > Apply Them submenu can remember which theme is in use, the Theme preferences should do the same.
I am no expert in chrome programming, but it looks like pref-themes.js can be modified to be similar to navigator.js Pertinent sections of appropriate files are: navigatorOverlay.xul 272 <menu label="&applyTheme.label;" accesskey="&applyTheme.accesskey;"> 273 <menupopup id="theme" datasources="rdf:chrome" ref="urn:mozilla:skin:root" oncommand="applyTheme(event.target)" onpopupshowing="checkTheme()"> 274 <menuitem label="&getNewThemesCmd.label;" accesskey="&getNewThemesCmd.accesskey;" oncommand="getNewThemes();"/> 275 <menuseparator/> 276 <template> 277 <menuitem uri="..." 278 label="rdf:http://www.mozilla.org/rdf/chrome#displayName" 279 accesskey="rdf:http://www.mozilla.org/rdf/chrome#accessKey" 280 id="rdf:http://www.mozilla.org/rdf/chrome#name" 281 type="radio" 282 name="themeGroup"/> 283 </template> 284 </menupopup> 285 </menu> pref-themes.js 52 gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; 53 var list = document.getElementById( "skinsList" ); 54 if ("loaded" in gData && "themeIndex" in gData) { 55 list.selectedIndex = gData.themeIndex; 56 return; 57 } navigator.js 1999 function checkTheme() 2000 { 2001 var theSkinKids = document.getElementById("theme"); 2002 var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] 2003 .getService(Components.interfaces.nsIXULChromeRegistry); 2004 for (var i = 0; i < theSkinKids.childNodes.length; ++i) { 2005 var child = theSkinKids.childNodes[i]; 2006 var id=child.getAttribute("id"); 2007 if (id.length > 0) { 2008 var themeName = id.substring('urn:mozilla:skin:'.length, id.length); 2009 var selected = chromeRegistry.isSkinSelected(themeName, true); 2010 if (selected == Components.interfaces.nsIChromeRegistry.FULL) { 2011 var menuitem=document.getElementById(id); 2012 menuitem.setAttribute("checked", true); 2013 break; 2014 } 2015 } 2016 } 2017 } 52 <listbox id="skinsList" datasources="rdf:chrome" 53 onselect="themeSelect();" 54 ref="urn:mozilla:skin:root" rows="5"> 55 <template> 56 <rule> 57 <listitem uri="..." skin="true" 58 label="rdf:http://www.mozilla.org/rdf/chrome#displayName" 59 author="rdf:http://www.mozilla.org/rdf/chrome#author" 60 displayName="rdf:http://www.mozilla.org/rdf/chrome#displayName" 61 name="rdf:http://www.mozilla.org/rdf/chrome#name" 62 description="rdf:http://www.mozilla.org/rdf/chrome#description" 63 image="rdf:http://www.mozilla.org/rdf/chrome#image" 64 loctype="rdf:http://www.mozilla.org/rdf/chrome#locType"/> 65 </rule> 66 </template> 67 </listbox> When I get some time, I might mess with these and see if I can get it to work. Anybody with experience is, of course, free to do this since they can probably get it done quicker.
Not a big issue now that an item is always selected by default when you tab to a listbox. Should be fixed for Mac though.
OS: Windows XP → MacOS X
Target Milestone: --- → mozilla1.9beta
Assignee: shliang → hwaara
Is this bug referring to HTML form lists or XUL listboxes (or both)?
Target Milestone: mozilla1.9beta → ---
The original report deals with XUL, so I'm going to assume the response to my comment 11 is that this is about XUL listboxes. Phil, do you know if this belongs in Toolkit instead?
Summary: list boxes do not indicate when they are activated → (OS X) XUL listboxes should have a focus ring when activated
Product: Core → SeaMonkey
Assignee: hwaara → nobody
QA Contact: pmac → themes
Yes and yes: it's about XUL, and it's a Toolkit widget issue (well, now that SM's using widgets from there, it is).
Component: Themes → XUL Widgets
Product: SeaMonkey → Toolkit
QA Contact: themes → xul.widgets
Severity: normal → S3

As far as I can tell, this bug has been fixed by something in the mean time. Feel free to reopen if the bug is still valid however.

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