tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

main.inc.xhtml (21914B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 <!-- General panel -->
      6 
      7 <script src="chrome://browser/content/preferences/main.js"/>
      8 <script src="chrome://browser/content/preferences/translations.js"/>
      9 
     10 #ifdef MOZ_UPDATER
     11  <script src="chrome://browser/content/aboutDialog-appUpdater.js"/>
     12 #endif
     13 
     14 <script src="chrome://mozapps/content/preferences/fontbuilder.js"/>
     15 
     16 <html:template id="template-paneGeneral">
     17 <hbox id="generalCategory"
     18      class="subcategory"
     19      hidden="true"
     20      data-category="paneGeneral">
     21  <html:h1 data-l10n-id="pane-general-title"/>
     22 </hbox>
     23 
     24 <!-- Startup -->
     25 <groupbox id="startupGroup"
     26          data-category="paneGeneral"
     27          hidden="true">
     28  <label><html:h2 data-l10n-id="startup-header"/></label>
     29 
     30  <vbox id="startupPageBox">
     31    <html:setting-group groupid="startup"/>
     32  </vbox>
     33 
     34 </groupbox>
     35 
     36 <!-- Data migration -->
     37 <html:setting-group groupid="importBrowserData" id="dataMigrationGroup" data-category="paneGeneral" hidden="true" />
     38 
     39 <!-- Profiles -->
     40 <groupbox id="profilesGroup" data-category="paneGeneral" hidden="true">
     41  <html:setting-group groupid="profiles" data-category="paneGeneral"></html:setting-group>
     42 </groupbox>
     43 
     44 <!-- Tab preferences -->
     45 <groupbox data-category="paneGeneral" hidden="true">
     46  <html:setting-group groupid="tabs"></html:setting-group>
     47 </groupbox>
     48 
     49 <!-- Browser layout -->
     50 <groupbox data-category="paneGeneral"
     51          data-subcategory="layout"
     52          hidden="true">
     53  <label><html:h2 data-l10n-id="browser-layout-header"/></label>
     54  <radiogroup id="browserLayoutRadioGroup" preference="sidebar.verticalTabs">
     55    <radio id="browserLayoutHorizontalTabs" data-l10n-id="browser-layout-horizontal-tabs" value="false"/>
     56    <description  class="indent" data-l10n-id="browser-layout-horizontal-tabs-desc"></description>
     57 
     58    <radio id="browserLayoutVerticalTabs" data-l10n-id="browser-layout-vertical-tabs" value="true" />
     59    <description class="indent" data-l10n-id="browser-layout-vertical-tabs-desc"></description>
     60  </radiogroup>
     61  <checkbox id="browserLayoutShowSidebar" data-l10n-id="browser-layout-show-sidebar"
     62            preference="sidebar.revamp"/>
     63  <description class="indent" data-l10n-id="browser-layout-show-sidebar-desc-limited"></description>
     64 </groupbox>
     65 
     66 <!-- Letterboxing -->
     67 #include ./letterboxing.inc.xhtml
     68 
     69 <hbox id="languageAndAppearanceCategory"
     70      class="subcategory"
     71      hidden="true"
     72      data-category="paneGeneral">
     73  <html:h1 data-l10n-id="language-and-appearance-header"/>
     74 </hbox>
     75 
     76 <!-- Website appearance -->
     77 <groupbox id="webAppearanceGroup" data-category="paneGeneral" hidden="true" data-hidden-from-search="true">
     78  <html:h2 data-l10n-id="preferences-web-appearance-header"/>
     79  <description class="description-deemphasized" data-l10n-id="preferences-web-appearance-description" />
     80  <html:setting-group groupid="appearance"></html:setting-group>
     81 </groupbox>
     82 
     83 <!-- Colors -->
     84 <html:setting-group id="contrastControlGroup" groupid="contrast" data-category="paneGeneral" hidden="true" />
     85 
     86 <!-- Fonts -->
     87 <groupbox id="fontsGroup" data-category="paneGeneral" hidden="true">
     88  <label><html:h2 data-l10n-id="preferences-fonts-header"/></label>
     89 
     90  <hbox id="fontSettings">
     91    <hbox align="center" flex="1">
     92      <label control="defaultFont" data-l10n-id="default-font"/>
     93      <menulist id="defaultFont" delayprefsave="true"/>
     94      <label id="defaultFontSizeLabel" control="defaultFontSize" data-l10n-id="default-font-size"></label>
     95      <menulist id="defaultFontSize" delayprefsave="true">
     96        <menupopup>
     97          <menuitem value="9" label="9"/>
     98          <menuitem value="10" label="10"/>
     99          <menuitem value="11" label="11"/>
    100          <menuitem value="12" label="12"/>
    101          <menuitem value="13" label="13"/>
    102          <menuitem value="14" label="14"/>
    103          <menuitem value="15" label="15"/>
    104          <menuitem value="16" label="16"/>
    105          <menuitem value="17" label="17"/>
    106          <menuitem value="18" label="18"/>
    107          <menuitem value="20" label="20"/>
    108          <menuitem value="22" label="22"/>
    109          <menuitem value="24" label="24"/>
    110          <menuitem value="26" label="26"/>
    111          <menuitem value="28" label="28"/>
    112          <menuitem value="30" label="30"/>
    113          <menuitem value="32" label="32"/>
    114          <menuitem value="34" label="34"/>
    115          <menuitem value="36" label="36"/>
    116          <menuitem value="40" label="40"/>
    117          <menuitem value="44" label="44"/>
    118          <menuitem value="48" label="48"/>
    119          <menuitem value="56" label="56"/>
    120          <menuitem value="64" label="64"/>
    121          <menuitem value="72" label="72"/>
    122        </menupopup>
    123      </menulist>
    124    </hbox>
    125 
    126    <button id="advancedFonts"
    127            is="highlightable-button"
    128            class="accessory-button"
    129            data-l10n-id="advanced-fonts"
    130            search-l10n-ids="
    131              fonts-window.title,
    132              fonts-langgroup-header,
    133              fonts-proportional-size,
    134              fonts-proportional-header,
    135              fonts-serif,
    136              fonts-sans-serif,
    137              fonts-monospace,
    138              fonts-langgroup-arabic.label,
    139              fonts-langgroup-armenian.label,
    140              fonts-langgroup-bengali.label,
    141              fonts-langgroup-simpl-chinese.label,
    142              fonts-langgroup-trad-chinese-hk.label,
    143              fonts-langgroup-trad-chinese.label,
    144              fonts-langgroup-cyrillic.label,
    145              fonts-langgroup-devanagari.label,
    146              fonts-langgroup-ethiopic.label,
    147              fonts-langgroup-georgian.label,
    148              fonts-langgroup-el.label,
    149              fonts-langgroup-gujarati.label,
    150              fonts-langgroup-gurmukhi.label,
    151              fonts-langgroup-japanese.label,
    152              fonts-langgroup-hebrew.label,
    153              fonts-langgroup-kannada.label,
    154              fonts-langgroup-khmer.label,
    155              fonts-langgroup-korean.label,
    156              fonts-langgroup-latin.label,
    157              fonts-langgroup-malayalam.label,
    158              fonts-langgroup-math.label,
    159              fonts-langgroup-odia.label,
    160              fonts-langgroup-sinhala.label,
    161              fonts-langgroup-tamil.label,
    162              fonts-langgroup-telugu.label,
    163              fonts-langgroup-thai.label,
    164              fonts-langgroup-tibetan.label,
    165              fonts-langgroup-canadian.label,
    166              fonts-langgroup-other.label,
    167              fonts-minsize,
    168              fonts-minsize-none.label,
    169              fonts-default-serif.label,
    170              fonts-default-sans-serif.label,
    171              fonts-allow-own.label,
    172            " />
    173  </hbox>
    174 </groupbox>
    175 
    176 <!-- Zoom -->
    177 <html:setting-group id="zoomGroup" groupid="zoom" data-category="paneGeneral" hidden="true" />
    178 
    179 <!-- Languages -->
    180 <groupbox id="languagesGroup" data-category="paneGeneral" hidden="true" data-subcategory="language">
    181  <label><html:h2 data-l10n-id="language-header"/></label>
    182 
    183  <vbox id="browserLanguagesBox" align="start" hidden="true">
    184    <description flex="1" controls="chooseBrowserLanguage" data-l10n-id="choose-browser-language-description"/>
    185    <hbox>
    186      <menulist id="primaryBrowserLocale">
    187        <menupopup/>
    188      </menulist>
    189      <button id="manageBrowserLanguagesButton"
    190              is="highlightable-button"
    191              class="accessory-button"
    192              data-l10n-id="manage-browser-languages-button"/>
    193    </hbox>
    194  </vbox>
    195  <hbox id="confirmBrowserLanguage" class="message-bar" align="center" hidden="true">
    196    <html:img class="message-bar-icon"/>
    197    <vbox class="message-bar-content-container" align="stretch" flex="1"/>
    198  </hbox>
    199 
    200  <hbox id="languagesBox" align="center">
    201    <!--
    202    <description flex="1" control="chooseLanguage" data-l10n-id="choose-language-description"/>
    203    <button id="chooseLanguage"
    204            is="highlightable-button"
    205            class="accessory-button"
    206            data-l10n-id="choose-button"
    207            search-l10n-ids="
    208              webpage-languages-window2.title,
    209              languages-description,
    210              languages-customize-moveup.label,
    211              languages-customize-movedown.label,
    212              languages-customize-remove.label,
    213              languages-customize-select-language.placeholder,
    214              languages-customize-add.label,
    215            " />
    216    -->
    217    <checkbox id="spoofEnglish"
    218              data-l10n-id="languages-customize-spoof-english"/>
    219  </hbox>
    220 
    221  <checkbox id="useSystemLocale" hidden="true"
    222            data-l10n-id="use-system-locale"
    223            data-l10n-args='{"localeName": "und"}'
    224            preference="intl.regional_prefs.use_os_locales"/>
    225 
    226  <!-- This Translations UI manages the prefs for the addon only.
    227       We were planning to remove this once ESR 115 went away, but it seems
    228       that it may live forever. I think it can be safely removed from a current
    229       version of Firefox, though, especially once the Settings Redesign is finalized. -->
    230  <hbox id="fxtranslationsBox" hidden="true" data-subcategory="fxtranslations">
    231    <description flex="1" control="fxtranslateButton" data-l10n-id="fx-translate-web-pages"/>
    232    <button id="fxtranslateButton"
    233            is="highlightable-button"
    234            class="accessory-button"
    235            data-l10n-id="translate-exceptions"/>
    236  </hbox>
    237 
    238  <checkbox id="checkSpelling"
    239          data-l10n-id="check-user-spelling"
    240          preference="layout.spellcheckDefault"/>
    241 
    242  <!-- This Translations UI is the pre-settings-redesign UI and should be removed
    243       when getting ready for the settings redesign to fully ship. -->
    244  <vbox id="translationsGroup" data-srd-groupid="translations" hidden="true" data-subcategory="translations">
    245    <label><html:h2 data-l10n-id="translations-manage-header"/></label>
    246    <hbox id="translations-manage-description" align="center">
    247      <description flex="1" data-l10n-id="translations-manage-intro-2"/>
    248      <button id="translations-manage-settings-button"
    249              is="highlightable-button"
    250              class="accessory-button"
    251              data-l10n-id="translations-manage-settings-button"/>
    252    </hbox>
    253    <vbox>
    254      <html:div id="translations-manage-install-list" tabindex="-1">
    255        <hbox class="translations-manage-language">
    256          <label data-l10n-id="translations-manage-download-description"></label>
    257          <button id="translations-manage-install-all"
    258                  data-l10n-id="translations-manage-language-download-all-button"></button>
    259          <button id="translations-manage-delete-all"
    260                  data-l10n-id="translations-manage-language-remove-all-button"></button>
    261        </hbox>
    262        <!-- The downloadable languages will be listed here. -->
    263      </html:div>
    264      <description id="translations-manage-error" hidden="true"></description>
    265    </vbox>
    266  </vbox>
    267 </groupbox>
    268 
    269 <!-- This Translations UI is compatible with the settings redesign -->
    270 <html:setting-group data-category="paneGeneral" groupid="translations" hidden="true"/>
    271 
    272 <!-- Files and Applications -->
    273 <hbox id="filesAndApplicationsCategory"
    274      class="subcategory"
    275      hidden="true"
    276      data-category="paneGeneral">
    277  <html:h1 data-l10n-id="files-and-applications-title"/>
    278 </hbox>
    279 
    280 <!--Downloads-->
    281 <groupbox id="downloadsGroup" data-category="paneGeneral" hidden="true">
    282  <html:setting-group groupid="downloads"/>
    283 </groupbox>
    284 
    285 <groupbox id="applicationsGroup" data-category="paneGeneral" hidden="true">
    286  <label><html:h2 data-l10n-id="applications-header"/></label>
    287  <description class="description-deemphasized" data-l10n-id="applications-description"/>
    288  <html:moz-input-search
    289      id="filter"
    290      data-l10n-id="applications-filter"
    291      data-l10n-attrs="placeholder"
    292      aria-controls="handlersView"/>
    293 
    294  <listheader id="handlersViewHeader">
    295    <treecol id="typeColumn" data-l10n-id="applications-type-column" value="type"
    296             persist="sortDirection"
    297             style="flex: 1 50%" sortDirection="ascending"/>
    298    <treecol id="actionColumn" data-l10n-id="applications-action-column" value="action"
    299             persist="sortDirection"
    300             style="flex: 1 50%"/>
    301  </listheader>
    302  <richlistbox id="handlersView"
    303               preference="pref.downloads.disable_button.edit_actions"/>
    304  <label id="handleNewFileTypesDesc"
    305         data-l10n-id="applications-handle-new-file-types-description"/>
    306  <radiogroup id="handleNewFileTypes"
    307              preference="browser.download.always_ask_before_handling_new_types">
    308    <radio id="saveForNewTypes"
    309           value="false"
    310           data-l10n-id="applications-save-for-new-types"/>
    311    <radio id="askBeforeHandling"
    312           value="true"
    313           data-l10n-id="applications-ask-before-handling"/>
    314  </radiogroup>
    315 </groupbox>
    316 
    317 
    318 <!-- DRM Content -->
    319 <groupbox id="drmGroup" data-category="paneGeneral" data-subcategory="drm" hidden="true">
    320  <label class="section-heading">
    321    <html:h2 data-l10n-id="drm-content-header"/>
    322  </label>
    323  <html:setting-group groupid="drm" />
    324 </groupbox>
    325 
    326 <hbox id="updatesCategory"
    327      class="subcategory"
    328      hidden="true"
    329      data-category="paneGeneral">
    330  <html:h1 data-l10n-id="update-application-title"/>
    331 </hbox>
    332 
    333 <!-- Update -->
    334 <groupbox id="updateApp" data-category="paneGeneral" hidden="true">
    335  <label class="search-header" hidden="true"><html:h2 data-l10n-id="update-application-title"/></label>
    336 
    337  <description class="description-deemphasized" data-l10n-id="update-application-description"/>
    338  <hbox align="center">
    339    <vbox flex="1">
    340      <html:span id="updateAppInfo">
    341        <html:a id="releasenotes" target="_blank" data-l10n-name="learn-more" class="learnMore text-link" hidden="true"/>
    342      </html:span>
    343      <description id="distribution" class="text-blurb" hidden="true"/>
    344      <description id="distributionId" class="text-blurb" hidden="true"/>
    345    </vbox>
    346 #ifdef MOZ_UPDATER
    347    <button id="showUpdateHistory"
    348            is="highlightable-button"
    349            class="accessory-button"
    350            data-l10n-id="update-history"
    351            preference="app.update.disable_button.showUpdateHistory"
    352            search-l10n-ids="
    353              history-title,
    354              history-intro
    355            "/>
    356 #endif
    357  </hbox>
    358 #ifdef MOZ_UPDATER
    359  <vbox id="updateBox">
    360    <deck id="updateDeck" orient="vertical">
    361      <hbox id="checkForUpdates" align="start">
    362        <spacer flex="1"/>
    363        <button id="checkForUpdatesButton"
    364                is="highlightable-button"
    365                data-l10n-id="update-checkForUpdatesButton"/>
    366      </hbox>
    367      <hbox id="downloadAndInstall" align="start">
    368        <spacer flex="1"/>
    369        <button id="downloadAndInstallButton"
    370                is="highlightable-button"/>
    371                <!-- label and accesskey will be filled by JS -->
    372      </hbox>
    373      <hbox id="apply" align="start">
    374        <spacer flex="1"/>
    375        <button id="updateButton"
    376                is="highlightable-button"
    377                data-l10n-id="update-updateButton"/>
    378      </hbox>
    379      <hbox id="checkingForUpdates" align="start">
    380        <html:img class="update-throbber"/>
    381        <label data-l10n-id="update-checkingForUpdates"/>
    382        <button data-l10n-id="update-checkForUpdatesButton"
    383                is="highlightable-button"
    384                disabled="true"/>
    385      </hbox>
    386      <description id="downloading" data-l10n-id="settings-update-downloading" data-l10n-args='{"transfer":""}'>
    387        <html:img class="update-throbber" data-l10n-name="icon"/>
    388        <label data-l10n-name="download-status"/>
    389      </description>
    390      <hbox id="applying" align="start">
    391        <html:img class="update-throbber"/>
    392        <label data-l10n-id="update-applying"/>
    393      </hbox>
    394      <hbox id="downloadFailed" align="start">
    395        <label data-l10n-id="update-failed-main">
    396          <html:a id="failedLink" target="_blank" class="learnMore text-link" data-l10n-name="failed-link-main"></html:a>
    397        </label>
    398        <button id="checkForUpdatesButton2"
    399                data-l10n-id="update-checkForUpdatesButton"
    400                is="highlightable-button"/>
    401      </hbox>
    402      <hbox id="policyDisabled" align="start">
    403        <label data-l10n-id="update-policy-disabled"/>
    404        <button data-l10n-id="update-checkForUpdatesButton"
    405                is="highlightable-button"
    406                disabled="true"/>
    407      </hbox>
    408      <hbox id="noUpdatesFound" align="start">
    409        <label class="face-smile" data-l10n-id="update-noUpdatesFound"/>
    410        <button id="checkForUpdatesButton3"
    411                data-l10n-id="update-checkForUpdatesButton"
    412                is="highlightable-button"/>
    413      </hbox>
    414      <hbox id="checkingFailed" align="start">
    415        <label class="face-sad" data-l10n-id="aboutdialog-update-checking-failed"/>
    416        <button id="checkForUpdatesButton4"
    417                data-l10n-id="update-checkForUpdatesButton"
    418                is="highlightable-button"/>
    419      </hbox>
    420      <hbox id="otherInstanceHandlingUpdates" align="start">
    421        <label data-l10n-id="update-otherInstanceHandlingUpdates"/>
    422        <button data-l10n-id="update-checkForUpdatesButton"
    423                is="highlightable-button"
    424                disabled="true"/>
    425      </hbox>
    426      <hbox id="manualUpdate" align="start">
    427        <description class="face-sad" data-l10n-id="settings-update-manual-with-link" data-l10n-args='{"displayUrl":""}'>
    428          <html:a class="manualLink" data-l10n-name="manual-link" target="_blank"/>
    429        </description>
    430        <button data-l10n-id="update-checkForUpdatesButton"
    431                is="highlightable-button"
    432                disabled="true"/>
    433      </hbox>
    434      <hbox id="unsupportedSystem" align="start">
    435        <description flex="1" data-l10n-id="update-unsupported">
    436          <label id="unsupportedLink" class="learnMore" data-l10n-name="unsupported-link" is="text-link"></label>
    437        </description>
    438        <button data-l10n-id="update-checkForUpdatesButton"
    439                is="highlightable-button"
    440                disabled="true"/>
    441      </hbox>
    442      <hbox id="restarting" align="start">
    443        <html:img class="update-throbber"/>
    444        <label data-l10n-id="update-restarting"/>
    445        <button data-l10n-id="update-updateButton"
    446                is="highlightable-button"
    447                disabled="true"/>
    448      </hbox>
    449      <hbox id="internalError" align="start">
    450        <description class="face-sad" flex="1" data-l10n-id="update-internal-error2" data-l10n-args='{"displayUrl":""}'>
    451          <label class="manualLink" data-l10n-name="manual-link" is="text-link"/>
    452        </description>
    453        <button data-l10n-id="update-checkForUpdatesButton"
    454                is="highlightable-button"
    455                disabled="true"/>
    456      </hbox>
    457    </deck>
    458  </vbox>
    459 #endif
    460 
    461 #ifdef MOZ_UPDATER
    462  <label id="updateAllowDescription" data-l10n-id="update-application-allow-description"></label>
    463  <vbox id="updateSettingsContainer" class="info-box-container">
    464    <radiogroup id="updateRadioGroup">
    465      <radio id="autoDesktop"
    466             value="true"
    467             data-l10n-id="update-application-auto"/>
    468 #ifdef MOZ_UPDATE_AGENT
    469      <checkbox id="backgroundUpdate"
    470                class="indent"
    471                hidden="true"
    472                data-l10n-id="update-application-background-enabled"/>
    473 #endif
    474      <radio id="manualDesktop"
    475             value="false"
    476             data-l10n-id="update-application-check-choose"/>
    477    </radiogroup>
    478    <hbox id="updateSettingCrossUserWarningDesc" hidden="true">
    479      <hbox class="info-icon-container">
    480        <html:img class="info-icon"/>
    481      </hbox>
    482      <description id="updateSettingCrossUserWarning"
    483                   flex="1"
    484                   data-l10n-id="update-application-warning-cross-user-setting">
    485      </description>
    486    </hbox>
    487  </vbox>
    488 #ifdef NIGHTLY_BUILD
    489  <checkbox id="showUpdatePrompts"
    490            data-l10n-id="update-application-suppress-prompts"
    491            preference="app.update.suppressPrompts"/>
    492 #endif
    493 #endif
    494 </groupbox>
    495 
    496 <!-- Support -->
    497 <html:setting-group groupid="support" data-category="paneGeneral" hidden="true" />
    498 
    499 <hbox id="performanceCategory"
    500      class="subcategory"
    501      hidden="true"
    502      data-category="paneGeneral">
    503  <html:h1 data-l10n-id="performance-title"/>
    504 </hbox>
    505 
    506 <!-- Performance -->
    507 <groupbox id="performanceGroup" data-category="paneGeneral" hidden="true">
    508  <label class="search-header section-heading" hidden="true"><html:h2 data-l10n-id="performance-title"/></label>
    509  <html:setting-group groupid="performance" />
    510 </groupbox>
    511 
    512 <hbox id="browsingCategory"
    513      class="subcategory"
    514      hidden="true"
    515      data-category="paneGeneral">
    516  <html:h1 data-l10n-id="browsing-title"/>
    517 </hbox>
    518 
    519 <!-- Browsing -->
    520 <groupbox id="browsingGroup" data-category="paneGeneral" hidden="true">
    521  <label class="search-header section-heading" hidden="true"><html:h2 data-l10n-id="browsing-title"/></label>
    522 
    523  <html:setting-group groupid="browsing"/>
    524 </groupbox>
    525 
    526 <hbox id="networkProxyCategory"
    527      class="subcategory"
    528      hidden="true"
    529      data-hidden-from-search="true"
    530      data-category="paneGeneral">
    531  <html:h1 data-l10n-id="network-settings-title"/>
    532 </hbox>
    533 
    534 <!-- Network Settings-->
    535 <groupbox id="connectionGroup" data-category="paneGeneral" data-hidden-from-search="true" hidden="true">
    536  <label class="search-header" hidden="true"><html:h2 data-l10n-id="network-settings-title"/></label>
    537  <description flex="1" control="connectionSettings" data-subcategory="netsettings"
    538    class="section-description">
    539    <html:span id="connectionSettingsDescription"/>
    540    <html:a is="moz-support-link"
    541          data-l10n-id="network-proxy-connection-learn-more"
    542          support-page="prefs-connection-settings"
    543    />
    544  </description>
    545  <html:setting-group groupid="networkProxy" />
    546 </groupbox>
    547 </html:template>