Bug 887242 Add more IDs to the elements in MessengerCompose.xul. r=mkmelin
authorJosiahOne <josiah@programmer.net>
Tue, 02 Jul 2013 16:28:05 -0400
changeset 16219 a7e0cc2171dc2205c2122f7fcf0ea911176adba1
parent 16218 9463299217318bf8be1a346976cc0217eeb00041
child 16220 b7359393d3fe7e063a6b83676a9f672c00a13d00
push id1000
push userbugzilla@standard8.plus.com
push dateMon, 16 Sep 2013 20:21:48 +0000
treeherdercomm-beta@77f0178eb807 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs887242
Bug 887242 Add more IDs to the elements in MessengerCompose.xul. r=mkmelin
mail/components/compose/content/messengercompose.xul
--- a/mail/components/compose/content/messengercompose.xul
+++ b/mail/components/compose/content/messengercompose.xul
@@ -326,62 +326,72 @@
                 oncommand="openDictionaryList();"/>
     </menupopup>
   </menu>
 
 </menupopup>
 
 <menupopup id="msgComposeAttachmentItemContext"
            onpopupshowing="updateAttachmentItems();">
-  <menuitem label="&openAttachment.label;"
+  <menuitem id="composeAttachmentContext_openItem"
+            label="&openAttachment.label;"
             accesskey="&openAttachment.accesskey;"
             command="cmd_openAttachment"/>
-  <menuitem label="&removeAttachment.label;"
+  <menuitem id="composeAttachmentContext_deleteItem"
+            label="&removeAttachment.label;"
             accesskey="&removeAttachment.accesskey;"
             command="cmd_delete"/>
-  <menuitem label="&renameAttachment.label;"
+  <menuitem id="composeAttachmentContext_renameItem"
+            label="&renameAttachment.label;"
             accesskey="&renameAttachment.accesskey;"
             command="cmd_renameAttachment"/>
-  <menu label="&convertCloud.label;"
+  <menu id="composeAttachmentContext_convertCloudMenu"
+        label="&convertCloud.label;"
         accesskey="&convertCloud.accesskey;"
         command="cmd_convertCloud">
-    <menupopup onpopupshowing="addConvertCloudMenuItems(this, 'context_convertCloudSeparator', 'context_convertCloud');">
-      <menuitem id="context_convertAttachment"
+    <menupopup id="convertCloudMenuItems_popup"
+               onpopupshowing="addConvertCloudMenuItems(this, 'context_convertCloudSeparator', 'context_convertCloud');">
+      <menuitem id="convertCloudMenuItems_popup_convertAttachment"
                 type="radio" name="context_convertCloud"
                 label="&convertRegularAttachment.label;"
                 accesskey="&convertRegularAttachment.accesskey;"
                 command="cmd_convertAttachment"/>
-      <menuseparator id="context_convertCloudSeparator"/>
+      <menuseparator id="convertCloudSeparator"/>
     </menupopup>
   </menu>
-  <menuitem id="context_cancelUpload"
+  <menuitem id="composeAttachmentContext_cancelUploadItem"
             label="&cancelUpload.label;"
             accesskey="&cancelUpload.accesskey;"
             command="cmd_cancelUpload"/>
   <menuseparator/>
-  <menuitem label="&selectAll.label;"
+  <menuitem id="composeAttachmentContext_selectAllItem"
+            label="&selectAll.label;"
             accesskey="&selectAll.accesskey;"
             command="cmd_selectAll"/>
 </menupopup>
 
 <menupopup id="msgComposeAttachmentListContext"
            onpopupshowing="updateAttachmentItems();">
-  <menuitem label="&selectAll.label;"
+  <menuitem id="attachmentListContext_selectAllItem"
+            label="&selectAll.label;"
             accesskey="&selectAll.accesskey;"
             command="cmd_selectAll"/>
   <menuseparator/>
-  <menuitem label="&attachFile.label;"
+  <menuitem id="attachmentListContext_attachFileItem"
+            label="&attachFile.label;"
             accesskey="&attachFile.accesskey;"
             command="cmd_attachFile"/>
-  <menu label="&attachCloud.label;"
+  <menu id="attachmentListContext_attachCloudMenu"
+        label="&attachCloud.label;"
         accesskey="&attachCloud.accesskey;"
         command="cmd_attachCloud">
-    <menupopup onpopupshowing="addAttachCloudMenuItems(this);"/>
+    <menupopup id="attachCloudMenu_attachCloudPopup" onpopupshowing="addAttachCloudMenuItems(this);"/>
   </menu>
-  <menuitem label="&attachPage.label;"
+  <menuitem id="attachmentListContext_attachPageItem"
+            label="&attachPage.label;"
             accesskey="&attachPage.accesskey;"
             command="cmd_attachPage"/>
 </menupopup>
 
 <menupopup id="toolbar-context-menu"
            onpopupshowing="onViewToolbarsPopupShowing(event, 'compose-toolbox');">
   <menuseparator/>
   <menuitem id="CustomizeComposeToolbar"
@@ -685,29 +695,34 @@
     <toolbarbutton class="toolbarbutton-1" type="menu-button"
                id="button-attach" label="&attachButton.label;"
                tooltiptext="&attachButton.tooltip;"
                command="cmd_attachFile"
                ondragover="nsDragAndDrop.dragOver(event, envelopeDragObserver);"
                ondragdrop="nsDragAndDrop.drop(event, envelopeDragObserver);"
                ondragexit="nsDragAndDrop.dragExit(event, envelopeDragObserver);">
       <menupopup id="button-attachPopup" onpopupshowing="updateAttachmentItems();">
-        <menuitem label="&attachFileCmd.label;"
+        <menuitem id="button-attachPopup_attachFileItem"
+                  label="&attachFileCmd.label;"
                   accesskey="&attachFileCmd.accesskey;"
                   command="cmd_attachFile"/>
-        <menu label="&attachCloudCmd.label;"
+        <menu id="button-attachPopup_attachCloudMenu"
+              label="&attachCloudCmd.label;"
               accesskey="&attachCloudCmd.accesskey;"
               command="cmd_attachCloud">
-          <menupopup onpopupshowing="addAttachCloudMenuItems(this);"/>
+          <menupopup id="attachCloudMenu_popup" onpopupshowing="addAttachCloudMenuItems(this);"/>
         </menu>
-        <menuitem label="&attachPageCmd.label;"
+        <menuitem id="button-attachPopup_attachPageItem"
+                  label="&attachPageCmd.label;"
                   accesskey="&attachPageCmd.accesskey;"
                   command="cmd_attachPage"/>
         <menuseparator/>
-        <menuitem type="checkbox" label="&attachVCardCmd.label;"
+        <menuitem id="button-attachPopup_attachVCardItem"
+                  type="checkbox"
+                  label="&attachVCardCmd.label;"
                   accesskey="&attachVCardCmd.accesskey;"
                   command="cmd_attachVCard"/>
       </menupopup>
     </toolbarbutton>
 
     <toolbarbutton class="toolbarbutton-1" type="menu-button"
                id="spellingButton" label="&spellingButton.label;"
                tooltiptext="&spellingButton.tooltip;"
@@ -717,22 +732,25 @@
                  onpopupshowing="OnShowDictionaryMenu(event.target);"/>
     </toolbarbutton>
 
     <toolbarbutton class="toolbarbutton-1" type="menu-button"
                id="button-save" label="&saveButton.label;"
                tooltiptext="&saveButton.tooltip;"
                command="cmd_saveDefault">
          <menupopup id="button-savePopup" onpopupshowing="InitFileSaveAsMenu();">
-           <menuitem label="&saveAsFileCmd.label;" accesskey="&saveAsFileCmd.accesskey;"
+           <menuitem id="savePopup_saveAsFile"
+                     label="&saveAsFileCmd.label;" accesskey="&saveAsFileCmd.accesskey;"
                      command="cmd_saveAsFile" type="radio" name="radiogroup_SaveAs"/>
            <menuseparator/>
-           <menuitem label="&saveAsDraftCmd.label;" accesskey="&saveAsDraftCmd.accesskey;"
+           <menuitem id="savePopup_saveAsDraft"
+                     label="&saveAsDraftCmd.label;" accesskey="&saveAsDraftCmd.accesskey;"
                      command="cmd_saveAsDraft" type="radio" name="radiogroup_SaveAs"/>
-           <menuitem label="&saveAsTemplateCmd.label;" accesskey="&saveAsTemplateCmd.accesskey;"
+           <menuitem id="savePopup_saveAsTemplate"
+                     label="&saveAsTemplateCmd.label;" accesskey="&saveAsTemplateCmd.accesskey;"
                      command="cmd_saveAsTemplate" type="radio" name="radiogroup_SaveAs"/>
          </menupopup>
     </toolbarbutton>
 
     <toolbarbutton class="toolbarbutton-1"
                id="quoteButton" label="&quoteButton.label;"
                tooltiptext="&quoteButton.tooltip;"
                command="cmd_quoteMessage"/>
@@ -777,17 +795,17 @@
            customizable="true" context="toolbar-context-menu">
   </toolbar>
 
   <toolbarset id="customToolbars" context="toolbar-context-menu"/>
   </toolbox>
 
   <hbox flex="1">
     <vbox id="sidebar-box" persist="sidebarVisible width" hidden="true">
-      <sidebarheader align="center">
+      <sidebarheader id="sidebarHeader" align="center">
         <label id="sidebar-title" value="&addressesSidebarTitle.label;"/>
         <spacer flex="1"/>
         <toolbarbutton class="ab-closebutton" oncommand="toggleAddressPicker();"/>
       </sidebarheader>
       <browser id="sidebar" flex="1" src="" disablehistory="true"
                style="min-width: 150px; width: 200px; max-width: 400px;"/>
     </vbox>
 
@@ -851,17 +869,17 @@
                          disableonsend="true">
                   <image class="person-icon" onclick="this.parentNode.select();"/>
                 </textbox>
               </listcell>
             </listitem>
           </listbox>
           <hbox id="subject-box">
             <hbox align="center" pack="end" style="&headersSpace.style;">
-              <label value="&subject.label;" accesskey="&subject.accesskey;" control="msgSubject"/>
+              <label id="subjectLabel" value="&subject.label;" accesskey="&subject.accesskey;" control="msgSubject"/>
             </hbox>
             <textbox id="msgSubject" flex="1" class="toolbar" disableonsend="true" spellcheck="true"
                      oninput="gContentChanged=true;SetComposeWindowTitle();"
                      onkeypress="subjectKeyPress(event);" />
           </hbox>
         </vbox>
         <splitter id="attachmentbucket-sizer" collapsed="true" collapse="after"/>
         <vbox id="attachments-box" collapsed="true" persist="width">