preferences.xhtml 10.4 KB
Newer Older
1
2
3
4
5
6
7
8
<?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/. -->

<?xml-stylesheet href="chrome://global/skin/global.css"?>

<?xml-stylesheet href="chrome://global/skin/in-content/common.css"?>
9
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
10
<?xml-stylesheet href="chrome://browser/content/preferences/dialogs/handlers.css"?>
11
<?xml-stylesheet href="chrome://browser/skin/preferences/applications.css"?>
12
13
14
<?xml-stylesheet href="chrome://browser/skin/preferences/search.css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/containers.css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/privacy.css"?>
15
<?xml-stylesheet href="chrome://browser/content/securitylevel/securityLevelPreferences.css"?>
16
<?xml-stylesheet href="chrome://browser/content/torpreferences/torPreferences.css"?>
17

18
19
20
21
<!DOCTYPE html [
<!ENTITY % aboutTorDTD SYSTEM "chrome://torbutton/locale/aboutTor.dtd">
  %aboutTorDTD;
]>
22

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

28
29
30
31
32
33
34
<head>
  <!-- @CSP: The 'oncommand' handler for 'focusSearch1' can not easily be rewritten (see Bug 371900)
       hence we are allowing the inline handler in the script-src directive using the hash
       sha512-X8+p/CqXeMdssOoFOf5RV+RpkvnN9pukQ20acGc7LqMgfYLW+lR0WAYT66OtSTpFHE/Qgx/ZCBs2RMc4QrA8FQ==
       Additionally we should remove 'unsafe-inline' from style-src, see Bug 1579160 -->
  <meta http-equiv="Content-Security-Policy" content="default-src chrome:; script-src chrome: 'sha512-X8+p/CqXeMdssOoFOf5RV+RpkvnN9pukQ20acGc7LqMgfYLW+lR0WAYT66OtSTpFHE/Qgx/ZCBs2RMc4QrA8FQ=='; img-src chrome: moz-icon: https: data:; style-src chrome: data: 'unsafe-inline'; object-src 'none'" />

35
36
  <title data-l10n-id="pref-page-title"></title>

37
  <link rel="localization" href="branding/tor-browser-brand.ftl"/>
38
39
40
41
42
  <link rel="localization" href="browser/branding/brandings.ftl"/>
  <link rel="localization" href="browser/branding/sync-brand.ftl"/>
  <link rel="localization" href="browser/preferences/preferences.ftl"/>
  <!-- Used by fontbuilder.js -->
  <link rel="localization" href="browser/preferences/fonts.ftl"/>
43
  <link rel="localization" href="toolkit/featuregates/features.ftl"/>
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

  <!-- Links below are only used for search-l10n-ids into subdialogs -->
  <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/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/aboutDialog.ftl"/>
  <link rel="localization" href="browser/sanitize.ftl"/>
  <link rel="localization" href="toolkit/updates/history.ftl"/>
  <link rel="localization" href="security/certificates/deviceManager.ftl"/>
  <link rel="localization" href="security/certificates/certManager.ftl"/>

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

62
63
  <script src="chrome://browser/content/utilityOverlay.js"/>
  <script src="chrome://global/content/preferencesBindings.js"/>
64
65
66
  <script src="chrome://browser/content/preferences/preferences.js"/>
  <script src="chrome://browser/content/preferences/extensionControlled.js"/>
  <script src="chrome://browser/content/preferences/findInPage.js"/>
67
68
</head>

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

72
73
74
75
  <stringbundle id="pkiBundle"
                src="chrome://pippki/locale/pippki.properties"/>
  <stringbundle id="browserBundle"
                src="chrome://browser/locale/browser.properties"/>
76

77
  <stack id="preferences-stack" flex="1">
78
79
  <hbox flex="1">

80
81
82
83
84
85
86
    <vbox class="navigation">
      <!-- category list -->
      <richlistbox id="categories">
        <richlistitem id="category-general"
                      class="category"
                      value="paneGeneral"
                      helpTopic="prefs-main"
87
88
                      data-l10n-id="category-general"
                      data-l10n-attrs="tooltiptext"
89
90
                      align="center">
          <image class="category-icon"/>
91
          <label class="category-name" flex="1" data-l10n-id="pane-general-title"></label>
92
93
        </richlistitem>

94
95
96
97
98
99
        <richlistitem id="category-home"
                      class="category"
                      value="paneHome"
                      helpTopic="prefs-home"
                      data-l10n-id="category-home"
                      data-l10n-attrs="tooltiptext"
100
                      align="center">
101
102
103
104
          <image class="category-icon"/>
          <label class="category-name" flex="1" data-l10n-id="pane-home-title"></label>
        </richlistitem>

105
106
107
108
        <richlistitem id="category-search"
                      class="category"
                      value="paneSearch"
                      helpTopic="prefs-search"
109
110
                      data-l10n-id="category-search"
                      data-l10n-attrs="tooltiptext"
111
112
                      align="center">
          <image class="category-icon"/>
113
          <label class="category-name" flex="1" data-l10n-id="pane-search-title"></label>
114
115
        </richlistitem>

116
117
        <!-- hidden with CSS; this is only here to allow the containers pane to
             be switched to using the URL or the "Settings..." button. -->
118
119
120
        <richlistitem id="category-containers"
                      class="category"
                      value="paneContainers"
121
                      helpTopic="prefs-containers"/>
122
123
124
125
126

        <richlistitem id="category-privacy"
                      class="category"
                      value="panePrivacy"
                      helpTopic="prefs-privacy"
127
128
                      data-l10n-id="category-privacy"
                      data-l10n-attrs="tooltiptext"
129
130
                      align="center">
          <image class="category-icon"/>
131
          <label class="category-name" flex="1" data-l10n-id="pane-privacy-title"></label>
132
133
134
135
        </richlistitem>

        <richlistitem id="category-sync"
                      class="category"
136
                      hidden="true"
137
138
                      value="paneSync"
                      helpTopic="prefs-weave"
139
                      data-l10n-id="category-sync2"
140
                      data-l10n-attrs="tooltiptext"
141
142
                      align="center">
          <image class="category-icon"/>
143
          <label class="category-name" flex="1" data-l10n-id="pane-sync-title2"></label>
144
        </richlistitem>
145
146
147
148
149
150
151
152
153
154
155
156

        <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>
157
158
159

#include ../torpreferences/content/torCategory.inc.xhtml

160
161
162
163
      </richlistbox>

      <spacer flex="1"/>

164
      <hbox class="sidebar-footer-button" pack="center">
165
        <label id="addonsButton" is="text-link">
166
          <hbox align="center">
167
168
169
170
171
172
173
            <image class="sidebar-footer-icon addons-icon"/>
            <label class="sidebar-footer-label" flex="1" data-l10n-id="addons-button-label"></label>
          </hbox>
        </label>
      </hbox>

      <hbox class="sidebar-footer-button help-button" pack="center">
174
        <label id="helpButton" is="text-link">
175
176
177
          <hbox align="center">
            <image class="sidebar-footer-icon help-icon"/>
            <label class="sidebar-footer-label" flex="1" data-l10n-id="help-button-label"></label>
178
          </hbox>
179
180
181
        </label>
      </hbox>
    </vbox>
182
183

    <keyset>
184
185
      <!-- If you change the code within the oncommand handler of 'focusSearch1' you have to update the current hash of
           sha512-X8+p/CqXeMdssOoFOf5RV+RpkvnN9pukQ20acGc7LqMgfYLW+lR0WAYT66OtSTpFHE/Qgx/ZCBs2RMc4QrA8FQ== within the CSP above. -->
186
      <key data-l10n-id="focus-search" key="" modifiers="accel" id="focusSearch1" oncommand="gSearchResultsPane.searchInput.focus();"/>
187
188
    </keyset>

189
190
    <vbox class="main-content" flex="1" align="start">
      <vbox class="pane-container">
191
        <hbox class="sticky-container" pack="end" align="start">
192
          <hbox id="policies-container" align="stretch" flex="1" hidden="true">
193
            <hbox align="center">
194
195
196
              <image class="info-icon"></image>
            </hbox>
            <hbox align="center" flex="1">
197
198
199
200
201
202
              <label class="policies-label"
                     flex="1"
                     href="about:policies"
                     useoriginprincipal="true"
                     is="text-link"
                     data-l10n-id="managed-notice"/>
203
204
            </hbox>
          </hbox>
205
206
          <search-textbox
            id="searchInput"
207
            data-l10n-id="search-input-box"
208
            data-l10n-attrs="placeholder, style"
209
            hidden="true"/>
210
        </hbox>
211
        <vbox id="mainPrefPane">
212
213
214
215
216
217
218
#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 sync.inc.xhtml
219
#include experimental.inc.xhtml
220
#include ../torpreferences/content/torPane.xhtml
221
        </vbox>
222
      </vbox>
223
224
225
    </vbox>
  </hbox>

226
227
  <stack id="dialogStack" hidden="true"/>
  <vbox id="dialogTemplate" class="dialogOverlay" align="center" pack="center" topmost="true" hidden="true">
228
229
230
231
232
233
    <vbox class="dialogBox"
          pack="end"
          role="dialog"
          aria-labelledby="dialogTitle">
      <hbox class="dialogTitleBar" align="center">
        <label class="dialogTitle" flex="1"/>
234
        <button class="dialogClose close-icon"
235
                data-l10n-id="close-button"/>
236
      </hbox>
237
238
239
      <browser class="dialogFrame"
               autoscroll="false"
               disablehistory="true"/>
240
    </vbox>
241
  </vbox>
242
  </stack>
243
244
</html:body>
</html>