browser/components/preferences/advanced.xul

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <?xml version="1.0"?>
     3 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     4 # This Source Code Form is subject to the terms of the Mozilla Public
     5 # License, v. 2.0. If a copy of the MPL was not distributed with this
     6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     8 <!DOCTYPE overlay [
     9 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    10 %brandDTD;
    11 <!ENTITY % advancedDTD SYSTEM "chrome://browser/locale/preferences/advanced.dtd">
    12 %advancedDTD;
    13 <!ENTITY % privacyDTD SYSTEM "chrome://browser/locale/preferences/privacy.dtd">
    14 %privacyDTD;
    15 ]>
    17 <overlay id="AdvancedPaneOverlay"
    18          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    20   <prefpane id="paneAdvanced" onpaneload="gAdvancedPane.init();">
    22     <preferences id="advancedPreferences">
    23       <preference id="browser.preferences.advanced.selectedTabIndex"
    24                   name="browser.preferences.advanced.selectedTabIndex"
    25                   type="int"/>
    27       <!--XXX button prefs -->
    29       <!-- General tab -->
    30       <preference id="accessibility.browsewithcaret"   name="accessibility.browsewithcaret"   type="bool"/>
    31       <preference id="accessibility.typeaheadfind"     name="accessibility.typeaheadfind"     type="bool"/>
    32       <preference id="accessibility.blockautorefresh"  name="accessibility.blockautorefresh"  type="bool"/>
    34       <preference id="general.autoScroll"              name="general.autoScroll"              type="bool"/>
    35       <preference id="general.smoothScroll"            name="general.smoothScroll"            type="bool"/>
    36       <preference id="layers.acceleration.disabled"    name="layers.acceleration.disabled"    type="bool"   inverted="true"
    37                   onchange="gAdvancedPane.updateHardwareAcceleration()"/>
    38 #ifdef XP_WIN
    39       <preference id="gfx.direct2d.disabled"           name="gfx.direct2d.disabled"           type="bool"   inverted="true"/>
    40 #endif
    41       <preference id="layout.spellcheckDefault"        name="layout.spellcheckDefault"        type="int"/>
    43 #ifdef HAVE_SHELL_SERVICE
    44       <preference id="browser.shell.checkDefaultBrowser"
    45                   name="browser.shell.checkDefaultBrowser"
    46                   type="bool"/>
    48       <preference id="pref.general.disable_button.default_browser"
    49                   name="pref.general.disable_button.default_browser"
    50                   type="bool"/>
    51 #endif
    53       <!-- Data Choices tab -->
    55 #ifdef MOZ_TELEMETRY_REPORTING
    56       <preference id="toolkit.telemetry.enabled"
    57                   name="toolkit.telemetry.enabled"
    58                   type="bool"/>
    59 #endif
    61       <!-- Network tab -->
    62       <preference id="browser.cache.disk.capacity"     name="browser.cache.disk.capacity"     type="int"/>
    63       <preference id="browser.offline-apps.notify"     name="browser.offline-apps.notify"     type="bool"/>
    65       <preference id="browser.cache.disk.smart_size.enabled"
    66                   name="browser.cache.disk.smart_size.enabled"
    67                   inverted="true"
    68                   type="bool"/>
    70      <!-- Update tab -->
    71 #ifdef MOZ_UPDATER
    72       <preference id="app.update.enabled"              name="app.update.enabled"              type="bool"/>
    73       <preference id="app.update.auto"                 name="app.update.auto"                 type="bool"/>
    74 #ifdef XP_WIN
    75 #ifdef MOZ_METRO
    76       <preference id="app.update.metro.enabled"        name="app.update.metro.enabled"        type="bool"/>
    77 #endif
    78 #endif
    79       <preference id="app.update.mode"                 name="app.update.mode"                 type="int"/>
    81       <preference id="app.update.disable_button.showUpdateHistory"
    82                   name="app.update.disable_button.showUpdateHistory"
    83                   type="bool"/>
    85 #ifdef MOZ_MAINTENANCE_SERVICE
    86       <preference id="app.update.service.enabled"
    87                   name="app.update.service.enabled"
    88                   type="bool"/>
    89 #endif
    90 #endif
    92       <preference id="browser.search.update"           name="browser.search.update"           type="bool"/>
    94       <!-- Encryption tab -->
    95       <preference id="security.default_personal_cert"  name="security.default_personal_cert"  type="string"/>
    97       <preference id="security.disable_button.openCertManager"
    98                   name="security.disable_button.openCertManager"
    99                   type="bool"/>
   100       <preference id="security.disable_button.openDeviceManager"
   101                   name="security.disable_button.openDeviceManager"
   102                   type="bool"/>
   103     </preferences>
   105 #ifdef HAVE_SHELL_SERVICE
   106     <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
   107     <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
   108 #endif
   109     <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
   111     <script type="application/javascript" src="chrome://browser/content/preferences/advanced.js"/>
   113     <tabbox id="advancedPrefs" flex="1"
   114             onselect="gAdvancedPane.tabSelectionChanged();">
   116       <tabs id="tabsElement">
   117         <tab id="generalTab" label="&generalTab.label;" helpTopic="prefs-advanced-general"/>
   118 #ifdef MOZ_DATA_REPORTING
   119         <tab id="dataChoicesTab" label="&dataChoicesTab.label;" helpTopic="prefs-advanced-data-choices"/>
   120 #endif
   121         <tab id="networkTab" label="&networkTab.label;" helpTopic="prefs-advanced-network"/>
   122         <tab id="updateTab" label="&updateTab.label;"  helpTopic="prefs-advanced-update"/>
   123         <tab id="encryptionTab" label="&certificateTab.label;" helpTopic="prefs-advanced-encryption"/>
   124       </tabs>
   126       <tabpanels flex="1">
   128         <!-- General -->
   129         <tabpanel id="generalPanel" orient="vertical">
   131           <!-- Accessibility -->
   132           <groupbox id="accessibilityGroup" align="start">
   133             <caption label="&accessibility.label;"/>
   135             <checkbox id="useCursorNavigation"
   136                       label="&useCursorNavigation.label;"
   137                       accesskey="&useCursorNavigation.accesskey;"
   138                       preference="accessibility.browsewithcaret"/>
   139             <checkbox id="searchStartTyping"
   140                       label="&searchStartTyping.label;"
   141                       accesskey="&searchStartTyping.accesskey;"
   142                       preference="accessibility.typeaheadfind"/>
   143             <checkbox id="blockAutoRefresh"
   144                       label="&blockAutoRefresh.label;"
   145                       accesskey="&blockAutoRefresh.accesskey;"
   146                       preference="accessibility.blockautorefresh"/>
   147           </groupbox>
   149           <!-- Browsing -->
   150           <groupbox id="browsingGroup" align="start">
   151             <caption label="&browsing.label;"/>
   153             <checkbox id="useAutoScroll"
   154                       label="&useAutoScroll.label;"
   155                       accesskey="&useAutoScroll.accesskey;"
   156                       preference="general.autoScroll"/>
   157             <checkbox id="useSmoothScrolling"
   158                       label="&useSmoothScrolling.label;"
   159                       accesskey="&useSmoothScrolling.accesskey;"
   160                       preference="general.smoothScroll"/>
   161             <checkbox id="allowHWAccel"
   162                       label="&allowHWAccel.label;"
   163                       accesskey="&allowHWAccel.accesskey;"
   164                       preference="layers.acceleration.disabled"/>
   165             <checkbox id="checkSpelling"
   166                       label="&checkSpelling.label;"
   167                       accesskey="&checkSpelling.accesskey;"
   168                       onsyncfrompreference="return gAdvancedPane.readCheckSpelling();"
   169                       onsynctopreference="return gAdvancedPane.writeCheckSpelling();"
   170                       preference="layout.spellcheckDefault"/>
   171           </groupbox>
   173 #ifdef HAVE_SHELL_SERVICE
   174           <!-- System Defaults -->
   175           <groupbox id="systemDefaultsGroup" orient="vertical">
   176             <caption label="&systemDefaults.label;"/>
   178             <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
   179                       label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"
   180                       flex="1"/>
   181             <hbox class="indent">
   182               <deck id="setDefaultPane">
   183                 <button id="setDefaultButton"
   184                         label="&setDefault.label;" accesskey="&setDefault.accesskey;"
   185                         oncommand="gAdvancedPane.setDefaultBrowser();"
   186                         preference="pref.general.disable_button.default_browser"/>
   187                 <description>&isDefault.label;</description>
   188               </deck>
   189             </hbox>
   190           </groupbox>
   191 #endif
   192         </tabpanel>
   194 #ifdef MOZ_DATA_REPORTING
   195         <!-- Data Choices -->
   196         <tabpanel id="dataChoicesPanel" orient="vertical">
   197 #ifdef MOZ_TELEMETRY_REPORTING
   198           <groupbox>
   199             <caption label="&telemetrySection.label;"/>
   200             <description>&telemetryDesc.label;</description>
   201             <hbox>
   202               <checkbox id="submitTelemetryBox"
   203                         preference="toolkit.telemetry.enabled"
   204                         label="&enableTelemetry.label;"
   205                         accesskey="&enableTelemetry.accesskey;"/>
   206               <spacer flex="1"/>
   207               <label id="telemetryLearnMore"
   208                      class="text-link"
   209                      value="&telemetryLearnMore.label;"
   210                      onclick="gAdvancedPane.openTextLink(event)"/>
   211             </hbox>
   212           </groupbox>
   213 #endif
   214 #ifdef MOZ_SERVICES_HEALTHREPORT
   215           <groupbox>
   216             <caption label="&healthReportSection.label;"/>
   217             <description>&healthReportDesc.label;</description>
   218             <hbox>
   219               <checkbox id="submitHealthReportBox"
   220                         oncommand="gAdvancedPane.updateSubmitHealthReport();"
   221                         label="&enableHealthReport.label;"
   222                         accesskey="&enableHealthReport.accesskey;"/>
   223               <spacer flex="1"/>
   224               <label id="FHRLearnMore"
   225                      class="text-link"
   226                      value="&healthReportLearnMore.label;"
   227                      onclick="gAdvancedPane.openTextLink(event)"/>
   228             </hbox>
   229           </groupbox>
   230 #endif
   231 #ifdef MOZ_CRASHREPORTER
   232           <groupbox>
   233             <caption label="&crashReporterSection.label;"/>
   234             <description>&crashReporterDesc.label;</description>
   235             <hbox>
   236               <checkbox id="submitCrashesBox"
   237                         oncommand="gAdvancedPane.updateSubmitCrashes();"
   238                         label="&enableCrashReporter.label;"
   239                         accesskey="&enableCrashReporter.accesskey;"/>
   241               <spacer flex="1"/>
   242               <label id="crashReporterLearnMore"
   243                      class="text-link"
   244                      value="&crashReporterLearnMore.label;"
   245                      onclick="gAdvancedPane.openTextLink(event)"/>
   246             </hbox>
   247           </groupbox>
   248 #endif
   249         </tabpanel>
   250 #endif
   251         <!-- Network -->
   252         <tabpanel id="networkPanel" orient="vertical">
   254           <!-- Connection -->
   255           <groupbox id="connectionGroup">
   256             <caption label="&connection.label;"/>
   258             <hbox align="center">
   259               <description flex="1" control="connectionSettings">&connectionDesc.label;</description>
   260               <button id="connectionSettings" icon="network" label="&connectionSettings.label;"
   261                       accesskey="&connectionSettings.accesskey;"
   262                       oncommand="gAdvancedPane.showConnections();"/>
   263             </hbox>
   264           </groupbox>
   266           <!-- Cache -->
   267           <groupbox id="cacheGroup">
   268             <caption label="&httpCache.label;"/>
   270             <hbox align="center">
   271               <label id="actualDiskCacheSize" flex="1"/>
   272               <button id="clearCacheButton" icon="clear"
   273                       label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"
   274                       oncommand="gAdvancedPane.clearCache();"/>
   275             </hbox>
   276             <checkbox preference="browser.cache.disk.smart_size.enabled"
   277                       id="allowSmartSize" flex="1"
   278                       onsyncfrompreference="return gAdvancedPane.readSmartSizeEnabled();"
   279                       label="&overrideSmartCacheSize.label;"
   280                       accesskey="&overrideSmartCacheSize.accesskey;"/>
   281             <hbox align="center" class="indent">
   282               <label id="useCacheBefore" control="cacheSize"
   283                      accesskey="&limitCacheSizeBefore.accesskey;"
   284                      value="&limitCacheSizeBefore.label;"/>
   285               <textbox id="cacheSize" type="number" size="4" max="1024"
   286                        preference="browser.cache.disk.capacity"
   287                        onsyncfrompreference="return gAdvancedPane.readCacheSize();"
   288                        onsynctopreference="return gAdvancedPane.writeCacheSize();"
   289                        aria-labelledby="useCacheBefore cacheSize useCacheAfter"/>
   290               <label id="useCacheAfter" flex="1">&limitCacheSizeAfter.label;</label>
   291             </hbox>
   292           </groupbox>
   294           <!-- Offline apps -->
   295           <groupbox id="offlineGroup">
   296             <caption label="&offlineStorage2.label;"/>
   298             <hbox align="center">
   299               <label id="actualAppCacheSize" flex="1"/>
   300               <button id="clearOfflineAppCacheButton" icon="clear"
   301                       label="&clearOfflineAppCacheNow.label;" accesskey="&clearOfflineAppCacheNow.accesskey;"
   302                       oncommand="gAdvancedPane.clearOfflineAppCache();"/>
   303             </hbox>
   304             <hbox align="center">
   305               <checkbox id="offlineNotify" flex="1"
   306                         label="&offlineNotify.label;" accesskey="&offlineNotify.accesskey;"
   307                         preference="browser.offline-apps.notify"
   308                         onsyncfrompreference="return gAdvancedPane.readOfflineNotify();"/>
   309               <button id="offlineNotifyExceptions"
   310                       label="&offlineNotifyExceptions.label;"
   311                       accesskey="&offlineNotifyExceptions.accesskey;"
   312                       oncommand="gAdvancedPane.showOfflineExceptions();"/>
   313             </hbox>
   314             <hbox>
   315               <vbox flex="1">
   316                 <label id="offlineAppsListLabel">&offlineAppsList2.label;</label>
   317                 <listbox id="offlineAppsList"
   318                          style="height: &offlineAppsList.height;;"
   319                          flex="1"
   320                          aria-labelledby="offlineAppsListLabel"
   321                          onselect="gAdvancedPane.offlineAppSelected(event);">
   322                 </listbox>
   323               </vbox>
   324               <vbox pack="end">
   325                 <button id="offlineAppsListRemove"
   326                         disabled="true"
   327                         label="&offlineAppsListRemove.label;"
   328                         accesskey="&offlineAppsListRemove.accesskey;"
   329                         oncommand="gAdvancedPane.removeOfflineApp();"/>
   330               </vbox>
   331             </hbox>
   332           </groupbox>
   333         </tabpanel>
   335         <!-- Update -->
   336         <tabpanel id="updatePanel" orient="vertical">
   337 #ifdef MOZ_UPDATER
   338           <groupbox id="updateApp">
   339             <caption label="&updateApp.label;"/>
   340             <radiogroup id="updateRadioGroup"
   341                         oncommand="gAdvancedPane.updateWritePrefs();">
   342 #ifdef XP_WIN
   343 #ifdef MOZ_METRO
   344               <radio id="autoMetro"
   345                      value="autoMetro"
   346                      label="&updateAutoMetro.label;"
   347                      accesskey="&updateAutoMetro.accesskey;"/>
   348               <hbox id="autoMetroIndent"
   349                     class="indent">
   350                 <label value="&updateAutoMetroWarn.label;"/>
   351               </hbox>
   352 #endif
   353 #endif
   354               <radio id="autoDesktop"
   355                      value="auto"
   356                      label="&updateAuto1.label;"
   357                      accesskey="&updateAuto1.accesskey;"/>
   358               <hbox class="indent">
   359                 <checkbox id="warnIncompatible"
   360                           label="&updateAutoAddonWarn.label;"
   361                           accesskey="&updateAutoAddonWarn.accesskey;"
   362                           preference="app.update.mode"
   363                           onsyncfrompreference="return gAdvancedPane.readAddonWarn();"
   364                           onsynctopreference="return gAdvancedPane.writeAddonWarn();"/>
   365               </hbox>
   366               <radio value="checkOnly"
   367                      label="&updateCheck.label;"
   368                      accesskey="&updateCheck.accesskey;"/>
   369               <radio value="manual"
   370                      label="&updateManual.label;"
   371                      accesskey="&updateManual.accesskey;"/>
   372             </radiogroup>
   374             <hbox>
   375               <button id="showUpdateHistory"
   376                       label="&updateHistory.label;"
   377                       accesskey="&updateHistory.accesskey;"
   378                       preference="app.update.disable_button.showUpdateHistory"
   379                       oncommand="gAdvancedPane.showUpdates();"/>
   380             </hbox>
   382 #ifdef MOZ_MAINTENANCE_SERVICE
   383             <checkbox id="useService"
   384                       label="&useService.label;"
   385                       accesskey="&useService.accesskey;"
   386                       preference="app.update.service.enabled"/>
   387 #endif
   388           </groupbox>
   389 #endif
   390           <groupbox id="updateOthers">
   391             <caption label="&updateOthers.label;"/>
   392             <checkbox id="enableSearchUpdate"
   393                       label="&enableSearchUpdate.label;"
   394                       accesskey="&enableSearchUpdate.accesskey;"
   395                       preference="browser.search.update"/>
   396           </groupbox>
   397         </tabpanel>
   399         <!-- Certificates -->
   400         <tabpanel id="encryptionPanel" orient="vertical">
   402             <description id="CertSelectionDesc" control="certSelection">&certSelection.description;</description>
   404             <!--
   405               The values on these radio buttons may look like l12y issues, but
   406               they're not - this preference uses *those strings* as its values.
   407               I KID YOU NOT.
   408             -->
   409             <radiogroup id="certSelection" orient="horizontal" preftype="string"
   410                         preference="security.default_personal_cert"
   411                         aria-labelledby="CertSelectionDesc">
   412               <radio label="&certs.auto;" accesskey="&certs.auto.accesskey;"
   413                      value="Select Automatically"/>
   414               <radio label="&certs.ask;" accesskey="&certs.ask.accesskey;"
   415                      value="Ask Every Time"/>
   416             </radiogroup>
   418             <separator/>
   420             <hbox>
   421               <button id="viewCertificatesButton"
   422                       label="&viewCerts.label;" accesskey="&viewCerts.accesskey;"
   423                       oncommand="gAdvancedPane.showCertificates();"
   424                       preference="security.disable_button.openCertManager"/>
   425               <button id="verificationButton"
   426                       label="&verify2.label;" accesskey="&verify2.accesskey;"
   427                       oncommand="gAdvancedPane.showOCSP();"/>
   428               <button id="viewSecurityDevicesButton"
   429                       label="&viewSecurityDevices.label;" accesskey="&viewSecurityDevices.accesskey;"
   430                       oncommand="gAdvancedPane.showSecurityDevices();"
   431                       preference="security.disable_button.openDeviceManager"/>
   432             </hbox>
   433         </tabpanel>
   435       </tabpanels>
   436     </tabbox>
   437   </prefpane>
   439 </overlay>

mercurial