browser/components/preferences/in-content/advanced.xul
author Zack Herrick <herrickz@msu.edu>
Tue, 14 Mar 2017 16:01:40 -0400
changeset 501549 0b484075d2ed5c6c1ab93fbd8670d15c3ae57b0d
parent 466571 8366261e646062914779a92ba77d2cd6e9e92632
permissions -rwxr-xr-x
Bug 1335907 - Pref Reorg. Rebased on top of central (8d967436d696) and killswitch (bug 1343682). MozReview-Commit-ID: 1sx0Wj15yM7

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

<!-- Advanced panel -->

<script type="application/javascript"
        src="chrome://browser/content/preferences/in-content/advanced.js"/>

<preferences id="advancedPreferences" hidden="true" data-category="paneAdvanced">
  <preference id="browser.preferences.advanced.selectedTabIndex"
              name="browser.preferences.advanced.selectedTabIndex"
              type="int"/>

  <!-- Data Choices tab -->
#ifdef MOZ_CRASHREPORTER
  <preference id="browser.crashReports.unsubmittedCheck.autoSubmit"
              name="browser.crashReports.unsubmittedCheck.autoSubmit"
              type="bool"/>
#endif

 <!-- Update tab-->
#ifdef MOZ_UPDATER
  <preference id="app.update.enabled"
              name="app.update.enabled"
              type="bool"/>
  <preference id="app.update.auto"
              name="app.update.auto"
              type="bool"/>

  <preference id="app.update.disable_button.showUpdateHistory"
              name="app.update.disable_button.showUpdateHistory"
              type="bool"/>

#ifdef MOZ_MAINTENANCE_SERVICE
  <preference id="app.update.service.enabled"
              name="app.update.service.enabled"
              type="bool"/>
#endif
#endif

  <preference id="browser.search.update"
              name="browser.search.update"
              type="bool"/>
</preferences>

#ifdef HAVE_SHELL_SERVICE
  <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
  <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
#endif

<hbox id="header-advanced"
      class="header"
      hidden="true"
      data-category="paneAdvanced">
  <label class="header-name" flex="1">&paneUpdates.title;</label>
  <html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
</hbox>

    <!-- Update-->

#ifdef MOZ_UPDATER
      <groupbox id="updateApp" align="start" data-category="paneAdvanced" hidden="true">
        <caption><label>&updateApplication.label;</label></caption>
        <radiogroup id="updateRadioGroup" align="start">
          <radio id="autoDesktop"
                 value="auto"
                 label="&updateAuto1.label;"
                 accesskey="&updateAuto1.accesskey;"/>
          <radio value="checkOnly"
                label="&updateCheckChoose.label;"
                accesskey="&updateCheckChoose.accesskey;"/>
          <radio value="manual"
                label="&updateManual.label;"
                accesskey="&updateManual.accesskey;"/>
        </radiogroup>
        <separator class="thin"/>
        <hbox>
          <button id="showUpdateHistory"
                  label="&updateHistory.label;"
                  accesskey="&updateHistory.accesskey;"
                  preference="app.update.disable_button.showUpdateHistory"/>
        </hbox>

#ifdef MOZ_MAINTENANCE_SERVICE
        <checkbox id="useService"
                  label="&useService.label;"
                  accesskey="&useService.accesskey;"
                  preference="app.update.service.enabled"/>
#endif
      </groupbox>
#endif
      <groupbox id="updateOthers" align="start" data-category="paneAdvanced" hidden="true">
        <caption><label>&autoUpdateOthers.label;</label></caption>
        <checkbox id="enableSearchUpdate"
                  label="&enableSearchUpdate.label;"
                  accesskey="&enableSearchUpdate.accesskey;"
                  preference="browser.search.update"/>
      </groupbox>

<!-- Data Choices -->
#ifdef MOZ_TELEMETRY_REPORTING
      <groupbox id="historyGroup" data-category="paneAdvanced" hidden="true">
      <caption><label>&reports.label;</label></caption>
        <vbox>
          <caption>
          <checkbox id="submitHealthReportBox" label="&enableHealthReport.label;"
                    accesskey="&enableHealthReport.accesskey;"/>
        </caption>
          <hbox class="indent">
            <label>&healthReportDesc.label;</label>
            <label id="FHRLearnMore"
                   class="learnMore text-link">&healthReportLearnMore.label;</label>
          </hbox>
          <hbox class="indent">
            <groupbox flex="1">
              <caption>
                <checkbox id="submitTelemetryBox" preference="toolkit.telemetry.enabled"
                          label="&enableTelemetryData.label;"
                          accesskey="&enableTelemetryData.accesskey;"/>
              </caption>
              <hbox class="indent">
                <label id="telemetryDataDesc">&telemetryDesc.label;</label>
                <label id="telemetryLearnMore"
                       class="learnMore text-link">&telemetryLearnMore.label;</label>
              </hbox>
            </groupbox>
          </hbox>
        </vbox>
      </groupbox>
#endif

#ifdef MOZ_DATA_REPORTING
#ifdef MOZ_CRASHREPORTER
      <groupbox data-category="paneAdvanced" hidden="true">
        <caption>
          <checkbox id="automaticallySubmitCrashesBox"
                    preference="browser.crashReports.unsubmittedCheck.autoSubmit"
                    label="&alwaysSubmitCrashReports.label;"
                    accesskey="&alwaysSubmitCrashReports.accesskey;"/>
        </caption>
        <hbox class="indent">
          <label>&crashReporterDesc2.label;</label>
          <label id="crashReporterLearnMore"
                 class="learnMore text-link">&crashReporterLearnMore.label;</label>
        </hbox>
      </groupbox>

#endif
#endif