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