Bug 482440 - "Provide aria-controls attribute on searchtextbox widgets" [r+sr=dmose]
authorMarco Zehe <marco.zehe@googlemail.com>
Fri, 24 Apr 2009 10:35:24 +0100
changeset 2468 b7fd81f51c6e895f742fedf44f8d7600ffe55057
parent 2467 6fe4d5047b43e4f08cbbeca31526bd0fc34c4fc4
child 2469 0c2f5641c953aba8714e0cb3f73a93a22fb6e9ab
push id2007
push userbugzilla@standard8.plus.com
push dateFri, 24 Apr 2009 09:36:27 +0000
treeherdercomm-central@b7fd81f51c6e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs482440
Bug 482440 - "Provide aria-controls attribute on searchtextbox widgets" [r+sr=dmose]
mail/base/content/subscribe.xul
mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
mailnews/addrbook/resources/content/addressbook-panel.xul
--- a/mail/base/content/subscribe.xul
+++ b/mail/base/content/subscribe.xul
@@ -81,16 +81,17 @@
               <menulist oncommand="onServerClick(event.target._folder);" id="serverMenu" flex="1">
                 <menupopup type="folder" mode="subscribe" expandFolders="false"/>
               </menulist>
             </row>
             <row align="center">
               <label value="&namefield.label;" accesskey="&namefield.accesskey;" 
                      id="namefieldlabel" control="namefield"/>
               <textbox id="namefield" flex="1" type="search" timeout="300"
+                       aria-controls="subscribeTree"
                        oncommand="Search();"/>
             </row>
           </rows>
         </grid>
         <spacer/>
       </row>
       <row>
         <separator class="thin"/>
--- a/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
+++ b/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul
@@ -77,16 +77,17 @@
     <hbox id="topBox" align="center">
       <label value="&lookIn.label;" accesskey="&lookIn.accesskey;" control="addressbookList"/>
       <menulist id="addressbookList" 
                 oncommand="DirPaneSelectionChangeMenulist(); document.commandDispatcher.updateCommands('addrbook-select');">
         <menupopup id="addressbookList-menupopup" class="addrbooksPopup"/>
       </menulist>  
       <label value="&for.label;" accesskey="&for.accesskey;" control="searchInput"/>
       <textbox id="searchInput" flex="1" type="search"
+               aria-controls="abResultsTree"
                oncommand="onEnterInSearchBar();" clickSelectsAll="true"/>
     </hbox>
     
     <hbox flex="1">    
 
        <vbox id="resultsBox" flex="4">
          <tree id="abResultsTree" flex="1" persist="height" />
        </vbox>
--- a/mailnews/addrbook/resources/content/addressbook-panel.xul
+++ b/mailnews/addrbook/resources/content/addressbook-panel.xul
@@ -95,16 +95,17 @@
                 persist="value">
         <menupopup id="addressbookList-menupopup" class="addrbooksPopup"/>
       </menulist>
     </hbox>
 	<hbox align="center">
 	  <label value="&for.label;" id="forLabel" control="searchInput"/> 
 	  <textbox id="searchInput" flex="1" type="search"
                aria-labelledby="lookInLabel addressbookList forLabel"
+               aria-controls="abResultsTree"
                oncommand="onEnterInSearchBar();" clickSelectsAll="true"/>
 	</hbox>
 
     <tree id="abResultsTree" flex="1" context="composeMail" onclick="AbResultsPaneOnClick(event);" class="plain"
           sortCol="GeneratedName" persist="sortCol">
   <treecols>
     <!-- these column ids must match up to the mork column names, see nsIAddrDatabase.idl -->
     <treecol id="GeneratedName" class="sortDirectionIndicator"