Bug 495919: Add ids to preferences elements to allow extensions to overlay them easily. r=philor
authorDave Townsend <dtownsend@oxymoronical.com>
Sat, 06 Jun 2009 17:47:26 +0100
changeset 2789 ea48ca4f20847d72434b4e0f05111eb41340d4f2
parent 2788 096acd1ed9b2df53b636850106e59a783001538d
child 2790 120b7786e2b24e6c681ab31db32d1e9b0df20018
push idunknown
push userunknown
push dateunknown
reviewersphilor
bugs495919
Bug 495919: Add ids to preferences elements to allow extensions to overlay them easily. r=philor
mail/components/preferences/advanced.xul
mail/components/preferences/compose.xul
mail/components/preferences/connection.xul
mail/components/preferences/display.xul
mail/components/preferences/downloads.xul
mail/components/preferences/dsn.xul
mail/components/preferences/general.xul
mail/components/preferences/notifications.xul
mail/components/preferences/offline.xul
mail/components/preferences/receipts.xul
mail/components/preferences/security.xul
mail/components/preferences/sendoptions.xul
--- a/mail/components/preferences/advanced.xul
+++ b/mail/components/preferences/advanced.xul
@@ -57,17 +57,17 @@
 ]>
 
 <overlay id="AdvancedPaneOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
   <prefpane id="paneAdvanced" onpaneload="gAdvancedPane.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/advanced.js"/>
 
-    <preferences>
+    <preferences id="advancedPreferences">
       <preference id="mail.preferences.advanced.selectedTabIndex"
                   name="mail.preferences.advanced.selectedTabIndex" type="int"/>
       <!-- General tab -->
       <preference id="mailnews.database.global.indexer.enabled" 
                   name="mailnews.database.global.indexer.enabled" 
                   type="bool"/>
 #ifdef HAVE_SHELL_SERVICE
       <preference id="mail.shell.checkDefaultClient"
--- a/mail/components/preferences/compose.xul
+++ b/mail/components/preferences/compose.xul
@@ -51,17 +51,17 @@
 
   <prefpane id="paneCompose" onpaneload="gComposePane.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/compose.js"/>
 
     <stringbundle id="languageBundle" src="chrome://global/locale/languageNames.properties"/>
     <stringbundle id="regionBundle" src="chrome://global/locale/regionNames.properties"/>
     <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
 
-    <preferences>
+    <preferences is="composePreferences">
       <preference id="mail.preferences.compose.selectedTabIndex" name="mail.preferences.compose.selectedTabIndex" type="int"/>
       <preference id="mail.forward_message_mode" name="mail.forward_message_mode" type="int"/>     
       <preference id="mail.forward_add_extension" name="mail.forward_add_extension" type="bool"/>
       <preference id="mail.SpellCheckBeforeSend" name="mail.SpellCheckBeforeSend" type="bool"/>
       <preference id="mail.spellcheck.inline" name="mail.spellcheck.inline" type="bool"/>
       <preference id="mail.warn_on_send_accel_key" name="mail.warn_on_send_accel_key" type="bool"/>
       <preference id="mail.compose.autosave" name="mail.compose.autosave" type="bool"/>
       <preference id="mail.compose.autosaveinterval" name="mail.compose.autosaveinterval" type="int"/>
--- a/mail/components/preferences/connection.xul
+++ b/mail/components/preferences/connection.xul
@@ -47,17 +47,17 @@
             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
             title="&connectionsDialog.title;"
             dlgbuttons="accept,cancel"
             onbeforeaccept="return gConnectionsDialog.beforeAccept();"
             onload="gConnectionsDialog.checkForSystemProxy();"
             style="width: &window.width; !important;">
 
   <prefpane id="ConnectionsDialogPane">
-    <preferences>
+    <preferences id="ConnectionPreferences">
       <preference id="network.proxy.type"         name="network.proxy.type"         type="int" onchange="gConnectionsDialog.proxyTypeChanged();"/>
       <preference id="network.proxy.http"         name="network.proxy.http"         type="string"/>
       <preference id="network.proxy.http_port"    name="network.proxy.http_port"    type="int"/>
       <preference id="network.proxy.ssl"          name="network.proxy.ssl"          type="string"/>
       <preference id="network.proxy.ssl_port"     name="network.proxy.ssl_port"     type="int"/>
       <preference id="network.proxy.socks"        name="network.proxy.socks"        type="string"/>
       <preference id="network.proxy.socks_port"   name="network.proxy.socks_port"   type="int"/>
       <preference id="network.proxy.socks_version"  name="network.proxy.socks_version"  type="int"/>
--- a/mail/components/preferences/display.xul
+++ b/mail/components/preferences/display.xul
@@ -45,17 +45,17 @@
 ]>
 
 <overlay id="DisplayPaneOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
            
   <prefpane id="paneDisplay" onpaneload="gDisplayPane.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/display.js"/>
 
-    <preferences>
+    <preferences id="displayPreferences">
       <preference id="mail.preferences.display.selectedTabIndex" name="mail.preferences.display.selectedTabIndex" type="int"/>
       <preference id="mail.fixed_width_messages" name="mail.fixed_width_messages" type="bool"/>
       <preference id="mail.quoted_style" name="mail.quoted_style" type="int"/>
       <preference id="mail.quoted_size" name="mail.quoted_size" type="int"/>
       <preference id="mail.citation_color" name="mail.citation_color" type="string"/>
       <preference id="mail.display_glyph" name="mail.display_glyph" type="bool"/>
       <preference id="browser.display.foreground_color" name="browser.display.foreground_color" type="string"/>     
       <preference id="browser.display.background_color" name="browser.display.background_color" type="string"/>
--- a/mail/components/preferences/downloads.xul
+++ b/mail/components/preferences/downloads.xul
@@ -45,17 +45,17 @@
 %brandDTD;
 %downloadsDTD;
 ]>
 
 <overlay id="DownloadsPaneOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
   <prefpane id="paneDownloads">
-    <preferences>
+    <preferences id="downloadsPreferences">
       <preference id="browser.download.useDownloadDir"    name="browser.download.useDownloadDir"    type="bool"/>
       <preference id="browser.download.folderList"        name="browser.download.folderList"        type="int"/>
       <preference id="browser.download.downloadDir"       name="browser.download.downloadDir"       type="file"/>
       <preference id="browser.download.dir"
                   name="browser.download.dir"
                   type="file"
                   onchange="gDownloadsPane.readDownloadDirPref();"/>
       <preference id="pref.downloads.disable_button.edit_actions"
--- a/mail/components/preferences/dsn.xul
+++ b/mail/components/preferences/dsn.xul
@@ -48,17 +48,17 @@
 <prefwindow id="DSNDialog" type="child"
             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
             dlgbuttons="accept,cancel"
             title="&dialog.title;">
 
   <script type="application/x-javascript" src="chrome://messenger/content/preferences/dsn.js"/>
         
   <prefpane id="DSNDialogPane" onpaneload="onInit();">
-    <preferences>
+    <preferences id="DSNPreferences">
       <preference id="mail.dsn.request_on_success_on"
                   name="mail.dsn.request_on_success_on"
                   type="bool"/>
 
       <preference id="mail.dsn.request_on_failure_on"
                   name="mail.dsn.request_on_failure_on"
                   type="bool"/>
 
--- a/mail/components/preferences/general.xul
+++ b/mail/components/preferences/general.xul
@@ -45,17 +45,17 @@
 ]>
 
 <overlay id="GeneralPaneOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
            
   <prefpane id="paneGeneral" onpaneload="gGeneralPane.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/general.js"/>
 
-    <preferences>
+    <preferences id="generalPreferences">
       <preference id="mail.pane_config.dynamic" name="mail.pane_config.dynamic" type="int"/>
       <preference id="mailnews.reuse_message_window" name="mailnews.reuse_message_window" type="bool"/>
       <preference id="mailnews.start_page.enabled" name="mailnews.start_page.enabled" type="bool"/>
       <preference id="mailnews.start_page.url" name="mailnews.start_page.url" type="string"/>
       <preference id="mail.biff.show_alert" name="mail.biff.show_alert" type="bool"/>
       <preference id="mail.biff.play_sound" name="mail.biff.play_sound" type="bool"/>
       <preference id="mail.biff.play_sound.type" name="mail.biff.play_sound.type" type="int"/>
       <preference id="mail.biff.play_sound.url" name="mail.biff.play_sound.url" type="string"/>      
--- a/mail/components/preferences/notifications.xul
+++ b/mail/components/preferences/notifications.xul
@@ -48,17 +48,17 @@
 ]>
 
 <prefwindow id="NotificationsDialog" type="child"
             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
             dlgbuttons="accept,cancel"
             title="&notificationsDialog2.title;">
 
   <prefpane id="NotificationsDialogPane">
-    <preferences>
+    <preferences id="NotificationsPreferences">
       <preference id="mail.biff.alert.show_preview" name="mail.biff.alert.show_preview" type="bool"/>
       <preference id="mail.biff.alert.show_subject" name="mail.biff.alert.show_subject" type="bool"/>
       <preference id="mail.biff.alert.show_sender" name="mail.biff.alert.show_sender" type="bool"/>
     </preferences>
 
     <description>&alertCustomization.intro;</description>
     <checkbox id="previewText" class="indent" label="&previewText.label;" accesskey="&previewText.accesskey;" preference="mail.biff.alert.show_preview"/>
     <checkbox id="subject" class="indent" label="&subject.label;" accesskey="&subject.accesskey;" preference="mail.biff.alert.show_subject"/>
--- a/mail/components/preferences/offline.xul
+++ b/mail/components/preferences/offline.xul
@@ -47,17 +47,17 @@
 ]>
 
 <prefwindow id="OfflineSettingsDialog" type="child"
             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
             dlgbuttons="accept,cancel"
             title="&offlineDialog.title;">
 
   <prefpane id="OfflineSettingsDialogPane">
-    <preferences>
+    <preferences id="OfflineSettingsPreferences">
       <preference id="offline.startup_state"                 name="offline.startup_state"     type="int"/>
       <preference id="offline.send.unsent_messages"          name="offline.send.unsent_messages" type="int"/>
       <preference id="offline.download.download_messages"    name="offline.download.download_messages"    type="int"/>
     </preferences>
 
     <label value="&textStartUp;" control="whenStartingUp"/>
     <radiogroup id="whenStartingUp" class="indent" preference="offline.startup_state">
       <radio value="0" label="&radioRememberPrevState.label;" accesskey="&radioRememberPrevState.accesskey;"/>
--- a/mail/components/preferences/receipts.xul
+++ b/mail/components/preferences/receipts.xul
@@ -49,17 +49,17 @@
 ]>
 
 <prefwindow id="ReturnReceiptsDialog" type="child"
             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
             dlgbuttons="accept,cancel"
             title="&dialog.title;">
 
   <prefpane id="ReturnReceiptsDialogPane">
-    <preferences>
+    <preferences id="ReturnReceiptsPreferences">
       <preference id="mail.receipt.request_return_receipt_on" name="mail.receipt.request_return_receipt_on" type="bool"/>
       <preference id="mail.incorporate.return_receipt" name="mail.incorporate.return_receipt" type="int"/>
       <preference id="mail.mdn.report.enabled"     name="mail.mdn.report.enabled" type="bool"/>
       <preference id="mail.mdn.report.not_in_to_cc" name="mail.mdn.report.not_in_to_cc" type="int"/>
       <preference id="mail.mdn.report.outside_domain" name="mail.mdn.report.outside_domain" type="int"/>
       <preference id="mail.mdn.report.other" name="mail.mdn.report.other" type="int"/>          
     </preferences>
   
--- a/mail/components/preferences/security.xul
+++ b/mail/components/preferences/security.xul
@@ -47,17 +47,17 @@
 <overlay id="SecurityPaneOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
            
   <prefpane id="paneSecurity" onpaneload="gSecurityPane.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/security.js"/>
 
     <stringbundle id="bundlePreferences" src="chrome://messenger/locale/preferences/preferences.properties"/>
 
-    <preferences>
+    <preferences id="securityPreferences">
       <preference id="mail.preferences.security.selectedTabIndex"
                   name="mail.preferences.security.selectedTabIndex" type="int"/>
       <preference id="mail.spam.manualMark" 
                   name="mail.spam.manualMark" 
                   type="bool"/>
       <preference id="mail.spam.manualMarkMode"
                   name="mail.spam.manualMarkMode"
                   type="int"/>
--- a/mail/components/preferences/sendoptions.xul
+++ b/mail/components/preferences/sendoptions.xul
@@ -56,17 +56,17 @@
             style="height: 33em;"
             title="&dialog.title;">
 
   <prefpane id="SendOptionsDialogPane" onpaneload="gSendOptionsDialog.init();">
     <script type="application/x-javascript" src="chrome://messenger/content/preferences/sendoptions.js"/>
 
     <stringbundle id="bundlePreferences" src="chrome://messenger/locale/preferences/preferences.properties"/>
 
-    <preferences>
+    <preferences id="SendOptionsPreferences">
       <preference id="mail.default_html_action"      name="mail.default_html_action" type="int"/>
       <preference id="mailnews.html_domains"         name="mailnews.html_domains" type="string"/>
       <preference id="mailnews.plaintext_domains"    name="mailnews.plaintext_domains"    type="string"/>
     </preferences>
     
     <groupbox>
       <caption label="&sendMail.title;"/>