StaticPrefList.yaml 194 KB
Newer Older
1
2
3
4
5
# 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/. */

# This file defines static prefs, i.e. those that are defined at startup and
6
# used entirely or mostly from C++ and/or Rust code.
7
#
8
9
10
11
# The file is separated into sections, where each section contains a group of
# prefs that all share the same first segment of their name -- all the "gfx.*"
# prefs are together, all the "network.*" prefs are together, etc. Sections
# must be kept in alphabetical order, but prefs within sections need not be.
12
13
14
15
16
17
18
19
20
21
22
23
#
# Basics
# ------
# Any pref defined in one of the files included here should *not* be defined
# in a data file such as all.js; that would just be useless duplication.
#
# (Except under unusual circumstances where the value defined here must be
# overridden, e.g. for some Thunderbird prefs. In those cases the default
# value from the data file will override the static default value defined
# here.)
#
# Please follow the existing prefs naming convention when considering adding a
24
25
# new pref, and don't create a new pref group unless it's appropriate and there
# are likely to be multiple prefs within that group. (If you do, you'll need to
26
# update the `pref_groups` variable in modules/libpref/moz.build.)
27
28
29
30
31
32
33
34
#
# Definitions
# -----------
# A pref definition looks like this:
#
#   - name: <pref-name>                    # mandatory
#     type: <cpp-type>                     # mandatory
#     value: <default-value>               # mandatory
35
#     mirror: <never | once | always>      # mandatory
36
#     do_not_use_directly: <true | false>  # optional
37
#     include: <header-file>               # optional
38
#     rust: <true | false>                 # optional
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# - `name` is the name of the pref, without double-quotes, as it appears
#   in about:config. It is used in most libpref API functions (from both C++
#   and JS code).
#
# - `type` is one of `bool`, `int32_t`, `uint32_t`, `float`, an atomic version
#   of one of those, or `String`. Note that float prefs are stored internally
#   as strings. The C++ preprocessor doesn't like template syntax in a macro
#   argument, so use the typedefs defined in StaticPrefsBase.h; for example,
#   use `RelaxedAtomicBool` instead of `Atomic<bool, Relaxed>`.
#
# - `value` is the default value. Its type should be appropriate for
#   <cpp-type>, otherwise the generated code will fail to compile. A complex
#   C++ numeric expressions like `60 * 60` (which the YAML parser cannot treat
#   as an integer or float) is treated as a string and passed through without
#   change, which is useful.
#
# - `mirror` indicates how the pref value is mirrored into a C++ variable.
#
58
#   * `never`: There is no C++ mirror variable. The pref value can only be
59
60
61
62
63
#     accessed via the standard libpref API functions.
#
#   * `once`: The pref value is mirrored into a variable at startup; the
#     mirror variable is left unchanged after that. (The exact point at which
#     all `once` mirror variables are set is when the first `once` mirror
64
65
66
#     variable is accessed, via its getter function.) This is mostly useful for
#     graphics prefs where we often don't want a new pref value to apply until
#     restart. Otherwise, this update policy is best avoided because its
67
68
#     behaviour can cause confusion and bugs.
#
69
#   * `always`: The mirror variable is always kept in sync with the pref value.
70
71
#     This is the most common choice.
#
72
73
74
#   When a mirror variable is present, a getter will be created that can access
#   it. Using the getter function to read the pref's value has the two
#   following advantages over the normal API functions.
75
76
77
#
#   * A direct variable access is faster than a hash table lookup.
#
78
79
80
#   * A mirror variable can be accessed off the main thread. If a pref *is*
#     accessed off the main thread, it should have an atomic type. Assertions
#     enforce this.
81
#
82
83
#   Note that Rust code must access the mirror variable directly, rather than
#   via the getter function.
84
#
85
# - `do_not_use_directly` indicates if `_DoNotUseDirectly` should be appended to
86
87
88
89
90
#   the name of the getter function. This is simply a naming convention
#   indicating that there is some other wrapper getter function that should be
#   used in preference to the normal static pref getter. Defaults to `false` if
#   not present. Cannot be used with a `never` mirror value, because there is
#   no getter function in that case.
91
#
92
93
94
95
# - `include` names a header file that must be included for the pref value to
#   compile correctly, e.g. because it refers to a code constant. System
#   headers should be surrounded with angle brackets, e.g. `<cmath>`.
#
96
97
98
99
# - `rust` indicates if the mirror variable is used by Rust code. If so, it
#   will be usable via the `static_prefs::pref!` macro, e.g.
#   `static_prefs::pref!("layout.css.font-display.enabled")`.
#
100
101
102
103
104
105
106
107
108
109
110
111
# The getter function's base name is the same as the pref's name, but with
# '.' or '-' chars converted to '_', to make a valid identifier. For example,
# the getter for `foo.bar_baz` is `foo_bar_baz()`. This is ugly but clear,
# and you can search for both the pref name and the getter using the regexp
# /foo.bar.baz/. Suffixes are added as follows:
#
# - If the `mirror` value is `once`, `_AtStartup` is appended, to indicate the
#   value was obtained at startup.
#
# - If the `do_not_use_directly` value is true, `_DoNotUseDirectly` is
#   appended.
#
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Preprocessor
# ------------
# Note finally that this file is preprocessed by preprocessor.py, not the C++
# preprocessor. As a result, the following things may be surprising.
#
# - YAML comments start with a '#', so putting a comment on the same line as a
#   preprocessor directive is dubious. E.g. avoid lines like `#define X 3 #
#   three` because the ` # three` will be part of `X`.
#
# - '@' use is required for substitutions to occur. E.g. with `#define FOO 1`,
#   `FOO` won't be replaced with `1` unless it has '@' chars around it.
#
# - Spaces aren't permitted between the leading '#' and the name of a
#   directive, e.g. `#ifdef XYZ` works but `# ifdef XYZ` does not.
126
127
128
129
130
#
# Please indent all prefs defined within #ifdef/#ifndef conditions. This
# improves readability, particular for conditional blocks that exceed a single
# screen. But note that the leading '-' in a definition must remain in the
# first column for it to be valid YAML.
131
132

#ifdef RELEASE_OR_BETA
133
#define IS_NOT_RELEASE_OR_BETA false
134
#else
135
#define IS_NOT_RELEASE_OR_BETA true
136
137
#endif

138
#ifdef NIGHTLY_BUILD
139
140
#define IS_NIGHTLY_BUILD      true
#define IS_NOT_NIGHTLY_BUILD  false
141
#else
142
143
#define IS_NIGHTLY_BUILD      false
#define IS_NOT_NIGHTLY_BUILD  true
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#endif

#ifdef MOZILLA_OFFICIAL
#define IS_NOT_MOZILLA_OFFICIAL false
#else
#define IS_NOT_MOZILLA_OFFICIAL true
#endif

#ifdef EARLY_BETA_OR_EARLIER
#define IS_EARLY_BETA_OR_EARLIER true
#else
#define IS_EARLY_BETA_OR_EARLIER false
#endif

#ifdef ANDROID
#define IS_ANDROID true
160
#define IS_NOT_ANDROID false
161
162
#else
#define IS_ANDROID false
163
#define IS_NOT_ANDROID true
164
165
#endif

166
167
168
169
170
171
172
173
174
175
176
177
178
179
#---------------------------------------------------------------------------
# Prefs starting with "accessibility."
#---------------------------------------------------------------------------

- name: accessibility.monoaudio.enable
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: accessibility.browsewithcaret
  type: RelaxedAtomicBool
  value: false
  mirror: always

180
181
182
183
184
- name: accessibility.AOM.enabled
  type: bool
  value: false
  mirror: always

185
186
187
188
189
190
191
192
193
194
195
196
197
#ifdef ANDROID
  #---------------------------------------------------------------------------
  # Prefs starting with "android."
  #---------------------------------------------------------------------------

  # On Android, we want an opaque background to be visible under the page,
  # so layout should not force a default background.
-   name: android.widget_paints_background
    type: bool
    value: true
    mirror: always
#endif

198
199
200
201
202
203
204
205
206
207
208
209
#---------------------------------------------------------------------------
# Prefs starting with "apz."
# The apz prefs are explained in AsyncPanZoomController.cpp
#---------------------------------------------------------------------------

- name: apz.allow_double_tap_zooming
  type: RelaxedAtomicBool
  value: true
  mirror: always

- name: apz.allow_immediate_handoff
  type: RelaxedAtomicBool
210
  value: false
211
212
213
214
  mirror: always

- name: apz.allow_zooming
  type: RelaxedAtomicBool
215
  value: @IS_ANDROID@
216
217
218
219
  mirror: always

- name: apz.android.chrome_fling_physics.enabled
  type: RelaxedAtomicBool
220
  value: true
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
  mirror: always

- name: apz.android.chrome_fling_physics.friction
  type: AtomicFloat
  value: 0.015f
  mirror: always

- name: apz.android.chrome_fling_physics.inflexion
  type: AtomicFloat
  value: 0.35f
  mirror: always

- name: apz.android.chrome_fling_physics.stop_threshold
  type: AtomicFloat
  value: 0.1f
  mirror: always

- name: apz.autoscroll.enabled
  type: RelaxedAtomicBool
240
  value: true
241
242
243
244
245
246
  mirror: always

- name: apz.axis_lock.breakout_angle
  type: AtomicFloat
  value: float(M_PI / 8.0)    # 22.5 degrees
  mirror: always
247
  include: <cmath>
248
249
250
251
252
253
254
255
256
257

- name: apz.axis_lock.breakout_threshold
  type: AtomicFloat
  value: 1.0f / 32.0f
  mirror: always

- name: apz.axis_lock.direct_pan_angle
  type: AtomicFloat
  value: float(M_PI / 3.0)    # 60 degrees
  mirror: always
258
  include: <cmath>
259
260
261
262
263

- name: apz.axis_lock.lock_angle
  type: AtomicFloat
  value: float(M_PI / 6.0)    # 30 degrees
  mirror: always
264
  include: <cmath>
265

266
267
268
269
# Whether to lock touch scrolling to one axis at a time.
# 0 = FREE (No locking at all)
# 1 = STANDARD (Once locked, remain locked until scrolling ends)
# 2 = STICKY (Allow lock to be broken, with hysteresis)
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
- name: apz.axis_lock.mode
  type: RelaxedAtomicInt32
  value: 0
  mirror: always

- name: apz.content_response_timeout
  type: RelaxedAtomicInt32
  value: 400
  mirror: always

- name: apz.danger_zone_x
  type: RelaxedAtomicInt32
  value: 50
  mirror: always

- name: apz.danger_zone_y
  type: RelaxedAtomicInt32
  value: 100
  mirror: always

- name: apz.disable_for_scroll_linked_effects
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.displayport_expiry_ms
  type: RelaxedAtomicUint32
  value: 15000
  mirror: always

- name: apz.drag.enabled
  type: RelaxedAtomicBool
302
  value: true
303
304
305
306
  mirror: always

- name: apz.drag.initial.enabled
  type: RelaxedAtomicBool
307
  value: true
308
309
310
311
  mirror: always

- name: apz.drag.touch.enabled
  type: RelaxedAtomicBool
312
  value: true
313
314
315
316
  mirror: always

- name: apz.enlarge_displayport_when_clipped
  type: RelaxedAtomicBool
317
  value: @IS_ANDROID@
318
319
  mirror: always

320
# Test only.
321
322
323
324
325
- name: apz.fixed-margin-override.enabled
  type: RelaxedAtomicBool
  value: false
  mirror: always

326
# Test only.
327
328
329
330
331
- name: apz.fixed-margin-override.bottom
  type: RelaxedAtomicInt32
  value: 0
  mirror: always

332
# Test only.
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
- name: apz.fixed-margin-override.top
  type: RelaxedAtomicInt32
  value: 0
  mirror: always

- name: apz.fling_accel_base_mult
  type: AtomicFloat
  value: 1.0f
  mirror: always

- name: apz.fling_accel_interval_ms
  type: RelaxedAtomicInt32
  value: 500
  mirror: always

- name: apz.fling_accel_supplemental_mult
  type: AtomicFloat
  value: 1.0f
  mirror: always

- name: apz.fling_accel_min_velocity
  type: AtomicFloat
  value: 1.5f
  mirror: always

- name: apz.fling_curve_function_x1
  type: float
  value: 0.0f
  mirror: once

- name: apz.fling_curve_function_x2
  type: float
  value: 1.0f
  mirror: once

- name: apz.fling_curve_function_y1
  type: float
  value: 0.0f
  mirror: once

- name: apz.fling_curve_function_y2
  type: float
  value: 1.0f
  mirror: once

- name: apz.fling_curve_threshold_inches_per_ms
  type: AtomicFloat
  value: -1.0f
  mirror: always

- name: apz.fling_friction
  type: AtomicFloat
  value: 0.002f
  mirror: always

- name: apz.fling_min_velocity_threshold
  type: AtomicFloat
  value: 0.5f
  mirror: always

- name: apz.fling_stop_on_tap_threshold
  type: AtomicFloat
  value: 0.05f
  mirror: always

- name: apz.fling_stopped_threshold
  type: AtomicFloat
  value: 0.01f
  mirror: always

- name: apz.frame_delay.enabled
  type: RelaxedAtomicBool
405
  value: true
406
407
408
  mirror: always

#ifdef MOZ_WIDGET_GTK
409
410
411
412
-   name: apz.gtk.kinetic_scroll.enabled
    type: RelaxedAtomicBool
    value: true
    mirror: always
413
414
#endif

415
416
- name: apz.keyboard.enabled
  type: bool
417
  value: @IS_NOT_ANDROID@
418
419
420
421
  mirror: once

- name: apz.keyboard.passive-listeners
  type: RelaxedAtomicBool
422
  value: @IS_NOT_ANDROID@
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
  mirror: always

- name: apz.max_tap_time
  type: RelaxedAtomicInt32
  value: 300
  mirror: always

- name: apz.max_velocity_inches_per_ms
  type: AtomicFloat
  value: -1.0f
  mirror: always

- name: apz.max_velocity_queue_size
  type: uint32_t
  value: 5
  mirror: once

- name: apz.min_skate_speed
  type: AtomicFloat
  value: 1.0f
  mirror: always

- name: apz.minimap.enabled
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.one_touch_pinch.enabled
  type: RelaxedAtomicBool
  value: true
  mirror: always

- name: apz.overscroll.enabled
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.overscroll.min_pan_distance_ratio
  type: AtomicFloat
  value: 1.0f
  mirror: always

- name: apz.overscroll.stop_distance_threshold
  type: AtomicFloat
  value: 5.0f
  mirror: always

- name: apz.paint_skipping.enabled
  type: RelaxedAtomicBool
  value: true
  mirror: always

- name: apz.peek_messages.enabled
  type: RelaxedAtomicBool
  value: true
  mirror: always

480
# Fetch displayport updates early from the message queue.
481
482
483
484
485
486
487
- name: apz.pinch_lock.mode
  type: RelaxedAtomicInt32
  value: 1
  mirror: always

- name: apz.pinch_lock.scroll_lock_threshold
  type: AtomicFloat
488
  value: 1.0f / 32.0f   # 1/32 inches
489
490
491
492
  mirror: always

- name: apz.pinch_lock.span_breakout_threshold
  type: AtomicFloat
493
  value: 1.0f / 32.0f   # 1/32 inches
494
495
496
497
  mirror: always

- name: apz.pinch_lock.span_lock_threshold
  type: AtomicFloat
498
  value: 1.0f / 32.0f   # 1/32 inches
499
500
501
502
503
504
505
506
507
508
509
510
  mirror: always

- name: apz.pinch_lock.buffer_max_age
  type: int32_t
  value: 50   # milliseconds
  mirror: once

- name: apz.popups.enabled
  type: RelaxedAtomicBool
  value: false
  mirror: always

511
# Whether to print the APZC tree for debugging.
512
513
514
515
516
517
518
- name: apz.printtree
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.record_checkerboarding
  type: RelaxedAtomicBool
519
  value: @IS_NIGHTLY_BUILD@
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
  mirror: always

- name: apz.second_tap_tolerance
  type: AtomicFloat
  value: 0.5f
  mirror: always

- name: apz.test.fails_with_native_injection
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.test.logging_enabled
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: apz.touch_move_tolerance
  type: AtomicFloat
  value: 0.1f
  mirror: always

- name: apz.touch_start_tolerance
  type: AtomicFloat
544
  value: 0.1f
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
  mirror: always

- name: apz.velocity_bias
  type: AtomicFloat
  value: 0.0f
  mirror: always

- name: apz.velocity_relevance_time_ms
  type: RelaxedAtomicUint32
  value: 150
  mirror: always

- name: apz.x_skate_highmem_adjust
  type: AtomicFloat
  value: 0.0f
  mirror: always

- name: apz.x_skate_size_multiplier
  type: AtomicFloat
564
  value: 1.25f
565
566
567
568
  mirror: always

- name: apz.x_stationary_size_multiplier
  type: AtomicFloat
569
  value: 1.5f
570
571
572
573
574
575
576
577
578
  mirror: always

- name: apz.y_skate_highmem_adjust
  type: AtomicFloat
  value: 0.0f
  mirror: always

- name: apz.y_skate_size_multiplier
  type: AtomicFloat
579
580
581
582
583
#if defined(MOZ_WIDGET_ANDROID)
  value: 1.5f
#else
  value: 3.5f
#endif
584
585
586
587
  mirror: always

- name: apz.y_stationary_size_multiplier
  type: AtomicFloat
588
589
590
#if defined(MOZ_WIDGET_ANDROID)
  value: 1.5f
#else
591
  value: 3.5f
592
#endif
593
594
595
596
597
598
599
600
601
602
603
604
605
606
  mirror: always

- name: apz.zoom_animation_duration_ms
  type: RelaxedAtomicInt32
  value: 250
  mirror: always

- name: apz.scale_repaint_delay_ms
  type: RelaxedAtomicInt32
  value: 500
  mirror: always

- name: apz.relative-update.enabled
  type: RelaxedAtomicBool
607
  value: true
608
609
610
611
612
613
614
615
616
617
618
619
  mirror: always

#---------------------------------------------------------------------------
# Prefs starting with "beacon."
#---------------------------------------------------------------------------

# Is support for Navigator.sendBeacon enabled?
- name: beacon.enabled
  type: bool
  value: true
  mirror: always

620
621
622
623
624
625
626
627
628
629
630
631
#---------------------------------------------------------------------------
# Prefs starting with "bidi."
#---------------------------------------------------------------------------

# Whether delete and backspace should immediately delete characters not
# visually adjacent to the caret, or adjust the visual position of the caret
# on the first keypress and delete the character on a second keypress
- name: bidi.edit.delete_immediately
  type: bool
  value: true
  mirror: always

632
633
634
635
636
637
#---------------------------------------------------------------------------
# Prefs starting with "browser."
#---------------------------------------------------------------------------

- name: browser.active_color
  type: String
638
  value: "#EE0000"
639
640
641
  mirror: never
- name: browser.anchor_color
  type: String
642
  value: "#0000EE"
643
644
645
646
647
648
649
650
651
652
653
654
  mirror: never

# See http://dev.w3.org/html5/spec/forms.html#attr-fe-autofocus
- name: browser.autofocus
  type: bool
  value: true
  mirror: always

- name: browser.cache.offline.enable
  type: bool
  value: true
  mirror: always
655

656
657
658
659
660
661
662
663
664
- name: browser.cache.offline.storage.enable
  type: bool
#ifdef EARLY_BETA_OR_EARLIER
  value: false
#else
  value: true
#endif
  mirror: always

665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
- name: browser.cache.disk.enable
  type: RelaxedAtomicBool
  value: true
  mirror: always

- name: browser.cache.memory.enable
  type: RelaxedAtomicBool
  value: true
  mirror: always

# Limit of recent metadata we keep in memory for faster access, in KB.
- name: browser.cache.disk.metadata_memory_limit
  type: RelaxedAtomicUint32
  value: 250   # 0.25 MB
  mirror: always

# Does the user want smart-sizing?
- name: browser.cache.disk.smart_size.enabled
  type: RelaxedAtomicBool
  value: true
  mirror: always

687
688
689
690
691
692
# Enable/Disable Origin based cache isolation
- name: browser.cache.cache_isolation
  type: RelaxedAtomicBool
  value: false
  mirror: always

693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes.
- name: browser.cache.memory.capacity
  type: RelaxedAtomicInt32
#ifdef ANDROID
  value: 1024
#else
  value: -1
#endif
  mirror: always

# When smartsizing is disabled we could potentially fill all disk space by
# cache data when the disk capacity is not set correctly. To avoid that we
# check the free space every time we write some data to the cache. The free
# space is checked against two limits. Once the soft limit is reached we start
# evicting the least useful entries, when we reach the hard limit writing to
# the entry fails.
- name: browser.cache.disk.free_space_soft_limit
  type: RelaxedAtomicUint32
  value: 5 * 1024   # 5MB
  mirror: always

- name: browser.cache.disk.free_space_hard_limit
  type: RelaxedAtomicUint32
  value: 1024    # 1MB
  mirror: always

# The number of chunks we preload ahead of read. One chunk currently has
# 256kB.
- name: browser.cache.disk.preload_chunk_count
  type: RelaxedAtomicUint32
  value: 4    # 1 MB of read ahead
  mirror: always

# Max-size (in KB) for entries in disk cache. Set to -1 for no limit.
# (Note: entries bigger than 1/8 of disk-cache are never cached)
- name: browser.cache.disk.max_entry_size
  type: RelaxedAtomicUint32
  value: 50 * 1024    # 50 MB
  mirror: always

# Max-size (in KB) for entries in memory cache. Set to -1 for no limit.
# (Note: entries bigger than than 90% of the mem-cache are never cached.)
- name: browser.cache.memory.max_entry_size
  type: RelaxedAtomicInt32
  value: 5 * 1024
  mirror: always

# Memory limit (in kB) for new cache data not yet written to disk. Writes to
# the cache are buffered and written to disk on background with low priority.
# With a slow persistent storage these buffers may grow when data is coming
# fast from the network. When the amount of unwritten data is exceeded, new
# writes will simply fail. We have two buckets, one for important data
# (priority) like html, css, fonts and js, and one for other data like images,
# video, etc.
# Note: 0 means no limit.
- name: browser.cache.disk.max_chunks_memory_usage
  type: RelaxedAtomicUint32
  value: 40 * 1024
  mirror: always
- name: browser.cache.disk.max_priority_chunks_memory_usage
  type: RelaxedAtomicUint32
  value: 40 * 1024
  mirror: always

# Number of seconds the cache spends writing pending data and closing files
# after shutdown has been signalled. Past that time data is not written and
# files are left open for the OS to clean up.
- name: browser.cache.max_shutdown_io_lag
  type: RelaxedAtomicUint32
  value: 2
  mirror: always

- name: browser.contentblocking.database.enabled
  type: bool
  value: false
  mirror: always

# How many recent block/unblock actions per origins we remember in the
# Content Blocking log for each top-level window.
- name: browser.contentblocking.originlog.length
  type: uint32_t
  value: 32
  mirror: always

- name: browser.display.background_color
  type: String
779
  value: "#FFFFFF"
780
781
782
783
784
785
  mirror: never

# 0 = default: always, except in high contrast mode
# 1 = always
# 2 = never
- name: browser.display.document_color_use
786
  type: RelaxedAtomicUint32
787
788
  value: 0
  mirror: always
789
  rust: true
790

791
792
793
794
795
796
797
798
799
800
801
802
# This pref dictates whether or not backplates and background images
# are to be drawn, when in high-contrast mode:
#   false: do not draw backplates or render background images
#   true: render background images and draw backplates
# This condition is only considered when high-contrast mode is enabled
# in Firefox, ie. when the user has:
#   (1) mUseAccessibilityMode set to true (Widows high-contrast mode is on)
#       AND browser.display.document_color_use set to 0
#       (only with high-contrast themes) OR
#   (2) browser.display.document_color_use set to 2 (always)
- name: browser.display.permit_backplate
  type: RelaxedAtomicBool
803
  value: @IS_EARLY_BETA_OR_EARLIER@
804
805
806
  mirror: always
  rust: true

807
808
809
810
811
812
813
814
815
816
817
818
- name: browser.display.focus_ring_on_anything
  type: bool
  value: false
  mirror: always

- name: browser.display.focus_ring_width
  type: uint32_t
  value: 1
  mirror: always

- name: browser.display.focus_background_color
  type: String
819
  value: "#117722"
820
821
  mirror: never

822
823
# Focus ring border style.
# 0 = solid border, 1 = dotted border
824
825
826
827
828
829
830
- name: browser.display.focus_ring_style
  type: uint32_t
  value: 1
  mirror: always

- name: browser.display.focus_text_color
  type: String
831
  value: "#ffffff"
832
833
834
  mirror: never
- name: browser.display.foreground_color
  type: String
835
  value: "#000000"
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
  mirror: never

- name: browser.display.show_focus_rings
  type: bool
# Focus rings are not shown on Mac or Android by default.
#if defined(XP_MACOSX) || defined(ANDROID)
  value: false
#else
  value: true
#endif
  mirror: always

# In theory: 0 = never, 1 = quick, 2 = always, though we always just use it as
# a bool!
- name: browser.display.use_document_fonts
  type: RelaxedAtomicInt32
  value: 1
  mirror: always
854
  rust: true
855
856
857
858
859
860
861
862

- name: browser.display.use_focus_colors
  type: bool
  value: false
  mirror: always

- name: browser.display.use_system_colors
  type: bool
863
  value: false
864
865
866
867
  mirror: always

- name: browser.dom.window.dump.enabled
  type: RelaxedAtomicBool
868
  value: @IS_NOT_MOZILLA_OFFICIAL@
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
  mirror: always

# Fix up common scheme typos?
- name: browser.fixup.typo.scheme
  type: bool
  value: true
  mirror: always

- name: browser.fixup.dns_first_for_single_words
  type: bool
  value: false
  mirror: always

# Render animations and videos as a solid color
- name: browser.measurement.render_anims_and_video_solid
  type: RelaxedAtomicBool
  value: false
  mirror: always

# Blocked plugin content
- name: browser.safebrowsing.blockedURIs.enabled
  type: bool
  value: true
  mirror: always

# Malware protection
- name: browser.safebrowsing.malware.enabled
  type: bool
  value: true
  mirror: always

# Password protection
- name: browser.safebrowsing.passwords.enabled
  type: bool
  value: false
  mirror: always

# Phishing protection
- name: browser.safebrowsing.phishing.enabled
  type: bool
  value: true
  mirror: always

# Maximum size for an array to store the safebrowsing prefixset.
- name: browser.safebrowsing.prefixset_max_array_size
  type: RelaxedAtomicUint32
  value: 512*1024
  mirror: always

# ContentSessionStore prefs
# Maximum number of bytes of DOMSessionStorage data we collect per origin.
- name: browser.sessionstore.dom_storage_limit
  type: uint32_t
  value: 2048
  mirror: always

925
926
927
928
929
930
# If set, use DocumentChannel with nsDocShell in place of HttpChannel.
- name: browser.tabs.documentchannel
  type: bool
  value: false
  mirror: always

931
932
933
934
935
- name: browser.tabs.remote.desktopbehavior
  type: bool
  value: false
  mirror: always

936
937
938
939
940
- name: browser.tabs.remote.force-paint
  type: bool
  value: true
  mirror: always

941
# When this pref is enabled document loads with a mismatched
942
943
# Cross-Origin-Embedder-Policy header will fail to load
- name: browser.tabs.remote.useCrossOriginEmbedderPolicy
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
  type: bool
  value: false
  mirror: always

# When this pref is enabled top level loads with a mismatched
# Cross-Origin-Opener-Policy header will be loaded in a separate process.
- name: browser.tabs.remote.useCrossOriginOpenerPolicy
  type: bool
  value: false
  mirror: always

# When this pref is enabled, the browser will check no-cors responses that
# have the Cross-Origin-Resource-Policy header and will fail the request if
# the origin of the resource's loading document doesn't match the origin
# (or base domain) of the loaded resource.
- name: browser.tabs.remote.useCORP
  type: bool
  value: false
  mirror: always

- name: browser.ui.scroll-toolbar-threshold
  type: RelaxedAtomicInt32
  value: 10
  mirror: always

- name: browser.ui.zoom.force-user-scalable
  type: RelaxedAtomicBool
  value: false
  mirror: always

- name: browser.underline_anchors
  type: bool
  value: true
  mirror: always

- name: browser.viewport.desktopWidth
  type: RelaxedAtomicInt32
  value: 980
  mirror: always

- name: browser.visited_color
  type: String
986
  value: "#551A8B"
987
988
989
990
991
992
993
994
995
996
997
998
  mirror: never

# Enable xul error pages.
- name: browser.xul.error_pages.enabled
  type: bool
  value: true
  mirror: always

#---------------------------------------------------------------------------
# Prefs starting with "canvas."
#---------------------------------------------------------------------------

999
1000
# Limit for the canvas image cache. 0 means unlimited.
- name: canvas.image.cache.limit
For faster browsing, not all history is shown. View entire blame