summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/preferences.xhtml
blob: eee227822a772bec128d6adbe4f6aca90ed810f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?xml version="1.0"?>
<!-- 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/. -->

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:html="http://www.w3.org/1999/xhtml"
        role="document"
        id="preferences-root">

<head>
  <!-- @CSP: We should remove 'unsafe-inline' from style-src, see Bug 1579160 -->
  <meta http-equiv="Content-Security-Policy" content="default-src chrome:; img-src chrome: moz-icon: https: blob: data:; style-src chrome: data: 'unsafe-inline'; object-src 'none'" />

  <title data-l10n-id="settings-page-title"></title>

  <meta name="color-scheme" content="light dark" />
  <link rel="stylesheet" href="chrome://global/skin/global.css" />

  <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" />
  <link
    rel="stylesheet"
    href="chrome://browser/skin/preferences/preferences.css"
  />
  <link
    rel="stylesheet"
    href="chrome://browser/skin/preferences/translations.css"
  />
  <link
    rel="stylesheet"
    href="chrome://browser/content/preferences/dialogs/handlers.css"
  />
  <link
    rel="stylesheet"
    href="chrome://browser/skin/preferences/applications.css"
  />
  <link rel="stylesheet" href="chrome://browser/skin/preferences/search.css" />
  <link
    rel="stylesheet"
    href="chrome://browser/skin/preferences/containers.css"
  />
  <link rel="stylesheet" href="chrome://browser/skin/preferences/privacy.css" />

  <link rel="localization" href="branding/brand.ftl"/>
  <link rel="localization" href="browser/browser.ftl"/>
    <!-- Used by fontbuilder.js -->
  <link rel="localization" href="browser/preferences/fonts.ftl"/>
  <link rel="localization" href="browser/preferences/moreFromMozilla.ftl"/>
  <link rel="localization" href="browser/preferences/preferences.ftl"/>
  <link rel="localization" href="toolkit/branding/accounts.ftl"/>
  <link rel="localization" href="toolkit/branding/brandings.ftl"/>
  <link rel="localization" href="toolkit/featuregates/features.ftl"/>

  <!-- Links below are only used for search-l10n-ids into subdialogs -->
  <link rel="localization" href="browser/aboutDialog.ftl"/>
  <link rel="localization" href="browser/preferences/addEngine.ftl"/>
  <link rel="localization" href="browser/preferences/blocklists.ftl"/>
  <link rel="localization" href="browser/preferences/clearSiteData.ftl"/>
  <link rel="localization" href="browser/preferences/colors.ftl"/>
  <link rel="localization" href="browser/preferences/connection.ftl"/>
  <link rel="localization" href="browser/preferences/formAutofill.ftl"/>
  <link rel="localization" href="browser/preferences/languages.ftl"/>
  <link rel="localization" href="browser/preferences/permissions.ftl"/>
  <link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
  <link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
  <link rel="localization" href="browser/sanitize.ftl"/>
  <link rel="localization" href="browser/translations.ftl"/>
  <link rel="localization" href="preview/translations.ftl"/>
  <link rel="localization" href="preview/enUS-searchFeatures.ftl"/>
  <link rel="localization" href="security/certificates/certManager.ftl"/>
  <link rel="localization" href="security/certificates/deviceManager.ftl"/>
  <link rel="localization" href="toolkit/updates/history.ftl"/>

  <link rel="shortcut icon" href="chrome://global/skin/icons/settings.svg"/>

  <script src="chrome://browser/content/utilityOverlay.js"/>
  <script src="chrome://global/content/preferencesBindings.js"/>
  <script src="chrome://browser/content/preferences/preferences.js"/>
  <script src="chrome://browser/content/preferences/extensionControlled.js"/>
  <script src="chrome://browser/content/preferences/findInPage.js"/>
  <script type="module" src="chrome://global/content/elements/moz-support-link.mjs"/>
  <script src="chrome://browser/content/migration/migration-wizard.mjs" type="module"></script>
  <script type="module" src="chrome://global/content/elements/moz-toggle.mjs"/>
  <script type="module" src="chrome://global/content/elements/moz-message-bar.mjs" />
  <script type="module" src="chrome://global/content/elements/moz-label.mjs"/>
</head>

<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
           id="preferences-body">

  <stringbundle id="pkiBundle"
                src="chrome://pippki/locale/pippki.properties"/>
  <stringbundle id="browserBundle"
                src="chrome://browser/locale/browser.properties"/>

  <stack id="preferences-stack" flex="1">
  <hbox flex="1">

    <vbox class="navigation">
      <!-- category list -->
      <richlistbox id="categories" data-l10n-id="category-list" data-l10n-attrs="aria-label">
        <richlistitem id="category-general"
                      class="category"
                      value="paneGeneral"
                      helpTopic="prefs-main"
                      data-l10n-id="category-general"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-general-title"></label>
        </richlistitem>

        <richlistitem id="category-home"
                      class="category"
                      value="paneHome"
                      helpTopic="prefs-home"
                      data-l10n-id="category-home"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-home-title"></label>
        </richlistitem>

        <richlistitem id="category-search"
                      class="category"
                      value="paneSearch"
                      helpTopic="prefs-search"
                      data-l10n-id="category-search"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-search-title"></label>
        </richlistitem>

        <richlistitem id="category-privacy"
                      class="category"
                      value="panePrivacy"
                      helpTopic="prefs-privacy"
                      data-l10n-id="category-privacy"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-privacy-title"></label>
        </richlistitem>

        <richlistitem id="category-sync"
                      class="category"
                      hidden="true"
                      value="paneSync"
                      helpTopic="prefs-weave"
                      data-l10n-id="category-sync3"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-sync-title3"></label>
        </richlistitem>

        <richlistitem id="category-experimental"
                      class="category"
                      hidden="true"
                      value="paneExperimental"
                      helpTopic="prefs-experimental"
                      data-l10n-id="category-experimental"
                      data-l10n-attrs="tooltiptext"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-experimental-title"></label>
        </richlistitem>
        <richlistitem id="category-more-from-mozilla"
                      class="category"
                      hidden="true"
                      data-l10n-id="more-from-moz-category"
                      data-l10n-attrs="tooltiptext"
                      value="paneMoreFromMozilla"
                      align="center">
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="more-from-moz-title"></label>
        </richlistitem>

        <!-- The following <richlistitem> elements are hidden from the list of items via the hidden-category class.
            The intent is that they act as sub-pages, accessible from the UI of one of the main pages, but are
            not listed as primary pages themselves via the selector.
            These elements need to be hidden with CSS, rather than the "hidden" property, otherwise their
            functionality will be disabled.
            In the future, we may want to determine a way to support sub-pages in a first-class fashion, rather
            than creating them as hidden primary pages like this. For now, any further pages of this kind should
            be added in this fashion. -->
        <richlistitem
                      class="category hidden-category"
                      value="paneContainers"
                      helpTopic="prefs-containers"/>

        <richlistitem
                      class="category hidden-category"
                      value="paneTranslations"
                      helpTopic="prefs-translations"/>

      </richlistbox>

      <spacer flex="1"/>

      <vbox class="sidebar-footer-list">
        <html:a id="addonsButton" class="sidebar-footer-link" href="about:addons">
          <image class="sidebar-footer-icon addons-icon"/>
          <label class="sidebar-footer-label" flex="1" data-l10n-id="addons-button-label"></label>
        </html:a>
        <html:a id="helpButton" class="sidebar-footer-link" target="_blank"
                is="moz-support-link" support-page="preferences">
          <image class="sidebar-footer-icon help-icon"/>
          <label class="sidebar-footer-label" flex="1" data-l10n-id="help-button-label"></label>
        </html:a>
      </vbox>
    </vbox>

    <keyset>
      <key data-l10n-id="focus-search" key="" modifiers="accel" id="focusSearch1"/>
    </keyset>

    <vbox class="main-content" flex="1" align="start">
      <vbox class="pane-container">
        <hbox class="sticky-container">
          <hbox class="sticky-inner-container" pack="end" align="start">
            <hbox id="policies-container" class="info-box-container smaller-font-size" flex="1" hidden="true">
              <hbox class="info-icon-container">
                <html:img class="info-icon"></html:img>
              </hbox>
              <hbox align="center" flex="1">
                <html:a href="about:policies" target="_blank" data-l10n-id="managed-notice"/>
              </hbox>
            </hbox>
            <search-textbox
              id="searchInput"
              data-l10n-id="search-input-box2"
              data-l10n-attrs="placeholder, style"
              hidden="true"/>
          </hbox>
        </hbox>
        <vbox id="mainPrefPane">
#include searchResults.inc.xhtml
#include main.inc.xhtml
#include home.inc.xhtml
#include search.inc.xhtml
#include privacy.inc.xhtml
#include containers.inc.xhtml
#include translations.inc.xhtml
#include sync.inc.xhtml
#include experimental.inc.xhtml
#include moreFromMozilla.inc.xhtml
        </vbox>
      </vbox>
    </vbox>
  </hbox>

  <stack id="dialogStack" hidden="true"/>
  <vbox id="dialogTemplate" class="dialogOverlay" align="center" pack="center" topmost="true" hidden="true">
    <vbox class="dialogBox"
          pack="end"
          role="dialog"
          aria-labelledby="dialogTitle">
      <hbox class="dialogTitleBar" align="center">
        <label class="dialogTitle" flex="1"/>
        <button class="dialogClose close-icon"
                data-l10n-id="close-button"/>
      </hbox>
      <browser class="dialogFrame"
               autoscroll="false"
               disablehistory="true"/>
    </vbox>
  </vbox>
  </stack>

  <html:dialog id="migrationWizardDialog"></html:dialog>
</html:body>
</html>