Debian Codegraph @

modules/libpref/init/StaticPrefList.yaml

raw
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 # 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 # The file is separated into sections, where each section contains a group of
9 # prefs that all share the same first segment of their name -- all the "gfx.*"
10 # prefs are together, all the "network.*" prefs are together, etc. Sections
11 # must be kept in alphabetical order, but prefs within sections need not be.
12 #
13 # Basics
14 # ------
15 # Any pref defined in one of the files included here should *not* be defined
16 # in a data file such as all.js; that would just be useless duplication.
17 #
18 # (Except under unusual circumstances where the value defined here must be
19 # overridden, e.g. for some Thunderbird prefs. In those cases the default
20 # value from the data file will override the static default value defined
21 # here.)
22 #
23 # Please follow the existing prefs naming convention when considering adding a
24 # new pref, and don't create a new pref group unless it's appropriate and there
25 # 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 # Definitions
29 # -----------
30 # A pref definition looks like this:
31 #
32 # - name: <pref-name> # mandatory
33 # type: <cpp-type> # mandatory
34 # 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 # set_spidermonkey_pref: <false | startup | always> # optional
40 #
41 # - `name` is the name of the pref, without double-quotes, as it appears
42 # in about:config. It is used in most libpref API functions (from both C++
43 # and JS code).
44 #
45 # - `type` is one of `bool`, `int32_t`, `uint32_t`, `float`, an atomic version
46 # of one of those, `String` or `DataMutexString`. Note that float prefs are
47 # stored internally as strings. The C++ preprocessor doesn't like template
48 # syntax in a macro argument, so use the typedefs defined in
49 # StaticPrefsBase.h; for example, use `RelaxedAtomicBool` instead of
50 # `Atomic<bool, Relaxed>`.
51 #
52 # - `value` is the default value. Its type should be appropriate for
53 # <cpp-type>, otherwise the generated code will fail to compile. A complex
54 # C++ numeric expressions like `60 * 60` (which the YAML parser cannot treat
55 # as an integer or float) is treated as a string and passed through without
56 # change, which is useful.
57 #
58 # - `mirror` indicates how the pref value is mirrored into a C++ variable.
59 #
60 # * `never`: There is no C++ mirror variable. The pref value can only be
61 # accessed via the standard libpref API functions.
62 #
63 # * `once`: The pref value is mirrored into a variable at startup; the
64 # mirror variable is left unchanged after that. (The exact point at which
65 # all `once` mirror variables are set is when the first `once` mirror
66 # variable is accessed, via its getter function.) This is mostly useful for
67 # graphics prefs where we often don't want a new pref value to apply until
68 # restart. Otherwise, this update policy is best avoided because its
69 # behaviour can cause confusion and bugs.
70 #
71 # * `always`: The mirror variable is always kept in sync with the pref value.
72 # This is the most common choice.
73 #
74 # When a mirror variable is present, a getter will be created that can access
75 # it. Using the getter function to read the pref's value has the two
76 # following advantages over the normal API functions.
77 #
78 # * A direct variable access is faster than a hash table lookup.
79 #
80 # * A mirror variable can be accessed off the main thread. If a pref *is*
81 # accessed off the main thread, it should have an atomic type. Assertions
82 # enforce this.
83 #
84 # Note that Rust code must access the mirror variable directly, rather than
85 # via the getter function.
86 #
87 # - `do_not_use_directly` indicates if `_DoNotUseDirectly` should be appended to
88 # the name of the getter function. This is simply a naming convention
89 # indicating that there is some other wrapper getter function that should be
90 # used in preference to the normal static pref getter. Defaults to `false` if
91 # not present. Cannot be used with a `never` mirror value, because there is
92 # no getter function in that case.
93 #
94 # - `include` names a header file that must be included for the pref value to
95 # compile correctly, e.g. because it refers to a code constant. System
96 # headers should be surrounded with angle brackets, e.g. `<cmath>`.
97 #
98 # - `rust` indicates if the mirror variable is used by Rust code. If so, it
99 # will be usable via the `static_prefs::pref!` macro, e.g.
100 # `static_prefs::pref!("layout.css.cross-fade.enabled")`.
101 #
102 # - `set_spidermonkey_pref` indicates whether SpiderMonkey boilerplate code
103 # should be generated for this pref. If this is set to 'startup', the
104 # pref on the SpiderMonkey side is only set during process startup. If set to
105 # 'always', the SpiderMonkey pref value is also updated when this pref is
106 # changed at runtime.
107 # This option is only valid for javascript.options.* prefs.
108 #
109 # The getter function's base name is the same as the pref's name, but with
110 # '.' or '-' chars converted to '_', to make a valid identifier. For example,
111 # the getter for `foo.bar_baz` is `foo_bar_baz()`. This is ugly but clear,
112 # and you can search for both the pref name and the getter using the regexp
113 # /foo.bar.baz/. Suffixes are added as follows:
114 #
115 # - If the `mirror` value is `once`, `_AtStartup` is appended, to indicate the
116 # value was obtained at startup.
117 #
118 # - If the `do_not_use_directly` value is true, `_DoNotUseDirectly` is
119 # appended.
120 #
121 # Preprocessor
122 # ------------
123 # Note finally that this file is preprocessed by preprocessor.py, not the C++
124 # preprocessor. As a result, the following things may be surprising.
125 #
126 # - YAML comments start with a '#', so putting a comment on the same line as a
127 # preprocessor directive is dubious. E.g. avoid lines like `#define X 3 #
128 # three` because the ` # three` will be part of `X`.
129 #
130 # - '@' use is required for substitutions to occur. E.g. with `#define FOO 1`,
131 # `FOO` won't be replaced with `1` unless it has '@' chars around it.
132 #
133 # - Spaces aren't permitted between the leading '#' and the name of a
134 # directive, e.g. `#ifdef XYZ` works but `# ifdef XYZ` does not.
135 #
136 # Please indent all prefs defined within #ifdef/#ifndef conditions. This
137 # improves readability, particular for conditional blocks that exceed a single
138 # screen. But note that the leading '-' in a definition must remain in the
139 # first column for it to be valid YAML.
140
141 #ifdef RELEASE_OR_BETA
142 #define IS_NOT_RELEASE_OR_BETA false
143 #else
144 #define IS_NOT_RELEASE_OR_BETA true
145 #endif
146
147 #ifdef NIGHTLY_BUILD
148 #define IS_NIGHTLY_BUILD true
149 #define IS_NOT_NIGHTLY_BUILD false
150 #else
151 #define IS_NIGHTLY_BUILD false
152 #define IS_NOT_NIGHTLY_BUILD true
153 #endif
154
155 #if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION)
156 #define IS_NIGHTLY_OR_DEV_EDITION true
157 #else
158 #define IS_NIGHTLY_OR_DEV_EDITION false
159 #endif
160
161 #ifdef MOZILLA_OFFICIAL
162 #define IS_NOT_MOZILLA_OFFICIAL false
163 #else
164 #define IS_NOT_MOZILLA_OFFICIAL true
165 #endif
166
167 #ifdef EARLY_BETA_OR_EARLIER
168 #define IS_EARLY_BETA_OR_EARLIER true
169 #define IS_NOT_EARLY_BETA_OR_EARLIER false
170 #else
171 #define IS_EARLY_BETA_OR_EARLIER false
172 #define IS_NOT_EARLY_BETA_OR_EARLIER true
173 #endif
174
175 #if defined(MOZ_DEV_EDITION) || defined(EARLY_BETA_OR_EARLIER)
176 #define IS_DEV_EDITION_OR_EARLY_BETA_OR_EARLIER true
177 #else
178 #define IS_DEV_EDITION_OR_EARLY_BETA_OR_EARLIER false
179 #endif
180
181 #ifdef ANDROID
182 #define IS_ANDROID true
183 #define IS_NOT_ANDROID false
184 #else
185 #define IS_ANDROID false
186 #define IS_NOT_ANDROID true
187 #endif
188
189 #ifdef XP_WIN
190 #define IS_XP_WIN true
191 #define IS_NOT_XP_WIN false
192 #else
193 #define IS_XP_WIN false
194 #define IS_NOT_XP_WIN true
195 #endif
196
197 #ifdef XP_MACOSX
198 #define IS_XP_MACOSX true
199 #define IS_NOT_XP_MACOSX false
200 #else
201 #define IS_XP_MACOSX false
202 #define IS_NOT_XP_MACOSX true
203 #endif
204
205 #ifdef XP_IOS
206 #define IS_IOS true
207 #define IS_NOT_IOS false
208 #else
209 #define IS_IOS false
210 #define IS_NOT_IOS true
211 #endif
212
213 #if defined(ANDROID) || defined(XP_IOS)
214 #define IS_MOBILE true
215 #define IS_NOT_MOBILE false
216 #else
217 #define IS_MOBILE false
218 #define IS_NOT_MOBILE true
219 #endif
220
221 #---------------------------------------------------------------------------
222 # Prefs starting with "accessibility."
223 #---------------------------------------------------------------------------
224
225 # Tab focus model bit field:
226 # 1 focuses text controls, 2 focuses other form elements, 4 adds links.
227 # Most users will want 1, 3, or 7. On macOS we expose a checkbox to alter
228 # between 7 and 3.
229 - name: accessibility.tabfocus
230 type: int32_t
231 value: 7
232 mirror: always
233
234 # Only on mac tabfocus is expected to handle UI widgets as well as web content.
235 # FIXME(emilio): This is weird now that we have a lot of HTML in our pages.
236 - name: accessibility.tabfocus_applies_to_xul
237 type: bool
238 value: @IS_XP_MACOSX@
239 mirror: always
240
241 - name: accessibility.accesskeycausesactivation
242 type: bool
243 value: true
244 mirror: always
245
246 - name: accessibility.monoaudio.enable
247 type: RelaxedAtomicBool
248 value: false
249 mirror: always
250
251 - name: accessibility.browsewithcaret
252 type: RelaxedAtomicBool
253 value: false
254 mirror: always
255
256 - name: accessibility.AOM.enabled
257 type: bool
258 value: false
259 mirror: always
260
261 - name: accessibility.ARIAElementReflection.enabled
262 type: bool
263 value: true
264 mirror: always
265
266 # Whether to enable all accessibility cache domains on startup.
267 # * false: enable domains as needed
268 # * true: enable all domains regardless of need (cache everything)
269 - name: accessibility.enable_all_cache_domains
270 type: bool
271 value: false
272 mirror: once
273
274 # Whether form controls and images should be focusable with mouse, in content
275 # documents.
276 #
277 # This matches historical macOS / Safari behavior.
278 #
279 # * 0: never
280 # * 1: always
281 # * 2: on content documents
282 - name: accessibility.mouse_focuses_formcontrol
283 type: int32_t
284 #ifdef XP_MACOSX
285 value: 2
286 #else
287 value: 1
288 #endif
289 mirror: always
290
291 # Whether to enable support for the UI Automation API on Windows. Values:
292 # * 0: Never.
293 # * 1: Always.
294 # * 2: Enable unless incompatible accessibility clients are detected.
295 - name: accessibility.uia.enable
296 type: uint32_t
297 #ifdef NIGHTLY_BUILD
298 value: 2
299 #else
300 value: 0
301 #endif
302 mirror: always
303 do_not_use_directly: true
304
305 # Whether to avoid accessibility activation on Windows shortly after clipboard
306 # copy.
307 #
308 # Possible values are:
309 # * 0: never
310 # * 1: always
311 # * 2 (or others): when needed
312 - name: accessibility.windows.suppress-after-clipboard-copy
313 type: uint32_t
314 value: 2
315 mirror: always
316
317 # Whether to avoid accessibility activation on Windows shortly after max button
318 # hit-test for the "snap layout" feature.
319 #
320 # Possible values are:
321 # * 0: never
322 # * 1: always
323 # * 2 (or others): when needed
324 - name: accessibility.windows.suppress-for-snap-layout
325 type: uint32_t
326 value: 2
327 mirror: always
328
329 #---------------------------------------------------------------------------
330 # Prefs starting with "alerts."
331 #---------------------------------------------------------------------------
332
333 # Whether to use platform-specific backends for showing desktop notifications.
334 # If no such backend is available, or if the pref is false, then XUL
335 # notifications are used.
336 - name: alerts.useSystemBackend
337 type: bool
338 value: true
339 mirror: always
340
341 #if defined(XP_WIN)
342 # On Windows, a COM Surrogate notification server receives notification events
343 # and can relaunch the application after it has been closed.
344 - name: alerts.useSystemBackend.windows.notificationserver.enabled
345 type: bool
346 value: true
347 mirror: never
348 #endif
349
350 #ifdef ANDROID
351 #---------------------------------------------------------------------------
352 # Prefs starting with "android."
353 #---------------------------------------------------------------------------
354
355 # On Android, we want an opaque background to be visible under the page,
356 # so layout should not force a default background.
357 - name: android.widget_paints_background
358 type: RelaxedAtomicBool
359 value: true
360 mirror: always
361
362 - name: android.touch_resampling.enabled
363 type: RelaxedAtomicBool
364 value: false
365 mirror: always
366
367 #endif
368
369 #---------------------------------------------------------------------------
370 # Prefs starting with "apz."
371 # The apz prefs are explained in AsyncPanZoomController.cpp
372 #---------------------------------------------------------------------------
373
374 # amount we zoom in for a double tap gesture if we couldn't find any content
375 # based rect to zoom to
376 - name: apz.doubletapzoom.defaultzoomin
377 type: AtomicFloat
378 value: 1.2f
379 mirror: always
380
381 - name: apz.scrollbarbuttonrepeat.enabled
382 type: RelaxedAtomicBool
383 value: true
384 mirror: always
385
386 # After a user has executed a pan gesture, we may receive momentum phase pan
387 # gestures from the OS. This specifies how long we should wait following the
388 # pan end gesture for possible momentum phase pan gestures before sending the
389 # TransformEnd notification.
390 - name: apz.scrollend-event.content.delay_ms
391 type: RelaxedAtomicInt32
392 value: 100
393 mirror: always
394
395 - name: apz.wr.activate_all_scroll_frames
396 type: RelaxedAtomicBool
397 value: false
398 mirror: always
399
400 - name: apz.wr.activate_all_scroll_frames_when_fission
401 type: RelaxedAtomicBool
402 value: true
403 mirror: always
404
405 - name: apz.prefer_jank_minimal_displayports
406 type: RelaxedAtomicBool
407 value: true
408 mirror: always
409
410 - name: apz.allow_double_tap_zooming
411 type: RelaxedAtomicBool
412 value: true
413 mirror: always
414
415 - name: apz.mac.enable_double_tap_zoom_touchpad_gesture
416 type: RelaxedAtomicBool
417 value: true
418 mirror: always
419
420 - name: apz.allow_immediate_handoff
421 type: RelaxedAtomicBool
422 value: false
423 mirror: always
424
425 - name: apz.allow_zooming
426 type: RelaxedAtomicBool
427 value: true
428 mirror: always
429
430 - name: apz.max_zoom
431 type: AtomicFloat
432 value: 10.0f
433 mirror: always
434
435 - name: apz.min_zoom
436 type: AtomicFloat
437 value: 0.25f
438 mirror: always
439
440 - name: apz.allow_zooming_out
441 type: RelaxedAtomicBool
442 value: false
443 mirror: always
444
445 - name: apz.android.chrome_fling_physics.friction
446 type: AtomicFloat
447 value: 0.015f
448 mirror: always
449
450 - name: apz.android.chrome_fling_physics.inflexion
451 type: AtomicFloat
452 value: 0.35f
453 mirror: always
454
455 - name: apz.android.chrome_fling_physics.stop_threshold
456 type: AtomicFloat
457 value: 0.1f
458 mirror: always
459
460 - name: apz.autoscroll.enabled
461 type: RelaxedAtomicBool
462 value: true
463 mirror: always
464
465 - name: apz.axis_lock.breakout_angle
466 type: AtomicFloat
467 value: float(M_PI / 8.0) # 22.5 degrees
468 mirror: always
469 include: <cmath>
470
471 - name: apz.axis_lock.breakout_threshold
472 type: AtomicFloat
473 value: 1.0f / 32.0f
474 mirror: always
475
476 - name: apz.axis_lock.direct_pan_angle
477 type: AtomicFloat
478 value: float(M_PI / 3.0) # 60 degrees
479 mirror: always
480 include: <cmath>
481
482 - name: apz.axis_lock.lock_angle
483 type: AtomicFloat
484 value: float(M_PI / 6.0) # 30 degrees
485 mirror: always
486 include: <cmath>
487
488 # Whether to lock touch scrolling to one axis at a time. When a new
489 # axis lock mode is added, the APZCAxisLockCompatTester GTest shoud
490 # be updated to include the lock mode value.
491 # 0 = FREE (No locking at all)
492 # 1 = STANDARD (Once locked, remain locked until scrolling ends)
493 # 2 = STICKY (Allow lock to be broken, with hysteresis)
494 # 3 = DOMINANT_AXIS (Only allow movement on one axis at a time, only
495 # applies to touchpad scrolling)
496 - name: apz.axis_lock.mode
497 type: RelaxedAtomicInt32
498 #if defined(XP_MACOSX)
499 value: 3
500 #else
501 value: 2
502 #endif
503 mirror: always
504
505 - name: apz.content_response_timeout
506 type: RelaxedAtomicInt32
507 value: 400
508 mirror: always
509
510 - name: apz.danger_zone_x
511 type: RelaxedAtomicInt32
512 value: 50
513 mirror: always
514
515 - name: apz.danger_zone_y
516 type: RelaxedAtomicInt32
517 value: 100
518 mirror: always
519
520 - name: apz.disable_for_scroll_linked_effects
521 type: RelaxedAtomicBool
522 value: false
523 mirror: always
524
525 - name: apz.displayport_expiry_ms
526 type: RelaxedAtomicUint32
527 value: 15000
528 mirror: always
529
530 - name: apz.drag.enabled
531 type: RelaxedAtomicBool
532 value: true
533 mirror: always
534
535 - name: apz.drag.touch.enabled
536 type: RelaxedAtomicBool
537 value: true
538 mirror: always
539
540 - name: apz.enlarge_displayport_when_clipped
541 type: RelaxedAtomicBool
542 value: @IS_ANDROID@
543 mirror: always
544
545 # Test only.
546 - name: apz.fixed-margin-override.enabled
547 type: RelaxedAtomicBool
548 value: false
549 mirror: always
550
551 # Test only.
552 - name: apz.fixed-margin-override.bottom
553 type: RelaxedAtomicInt32
554 value: 0
555 mirror: always
556
557 # Test only.
558 - name: apz.fixed-margin-override.top
559 type: RelaxedAtomicInt32
560 value: 0
561 mirror: always
562
563 - name: apz.fling_accel_base_mult
564 type: AtomicFloat
565 value: 1.0f
566 mirror: always
567
568 - name: apz.fling_accel_supplemental_mult
569 type: AtomicFloat
570 value: 1.0f
571 mirror: always
572
573 - name: apz.fling_accel_min_fling_velocity
574 type: AtomicFloat
575 value: 1.5f
576 mirror: always
577
578 - name: apz.fling_accel_min_pan_velocity
579 type: AtomicFloat
580 value: 0.8f
581 mirror: always
582
583 - name: apz.fling_accel_max_pause_interval_ms
584 type: RelaxedAtomicInt32
585 value: 50
586 mirror: always
587
588 - name: apz.fling_curve_function_x1
589 type: float
590 value: 0.0f
591 mirror: once
592
593 - name: apz.fling_curve_function_x2
594 type: float
595 value: 1.0f
596 mirror: once
597
598 - name: apz.fling_curve_function_y1
599 type: float
600 value: 0.0f
601 mirror: once
602
603 - name: apz.fling_curve_function_y2
604 type: float
605 value: 1.0f
606 mirror: once
607
608 - name: apz.fling_curve_threshold_inches_per_ms
609 type: AtomicFloat
610 value: -1.0f
611 mirror: always
612
613 - name: apz.fling_friction
614 type: AtomicFloat
615 value: 0.002f
616 mirror: always
617
618 - name: apz.fling_min_velocity_threshold
619 type: AtomicFloat
620 value: 0.5f
621 mirror: always
622
623 - name: apz.fling_stop_on_tap_threshold
624 type: AtomicFloat
625 value: 0.05f
626 mirror: always
627
628 - name: apz.fling_stopped_threshold
629 type: AtomicFloat
630 value: 0.01f
631 mirror: always
632
633 - name: apz.touch_acceleration_factor_x
634 type: float
635 value: 1.0f
636 mirror: always
637
638 - name: apz.touch_acceleration_factor_y
639 type: float
640 value: 1.0f
641 mirror: always
642
643 #ifdef MOZ_WIDGET_GTK
644 - name: apz.gtk.kinetic_scroll.enabled
645 type: RelaxedAtomicBool
646 value: true
647 mirror: always
648
649 - name: apz.gtk.pangesture.enabled
650 type: RelaxedAtomicBool
651 value: true
652 mirror: always
653
654 # Mode to use when receiving pan gesture input.
655 #
656 # * 0: Auto mode (uses the default behavior, subject to change).
657 # * 1: Page mode: Uses gtk deltas as a percentage of the page size to scroll. This mode matches:
658 #
659 # https://gitlab.gnome.org/GNOME/gtk/blob/c734c7e9188b56f56c3a504abee05fa40c5475ac/gtk/gtkrange.c#L3063-3074
660 #
661 # * 2: Pixel mode: Uses gtk deltas as a fixed pixel multiplier. This mode matches e.g. GNOME web.
662 #
663 # https://webkit-search.igalia.com/webkit/rev/215039ef09d6bfd6e088175bfe30788d95b9705d/Source/WebKit/Shared/gtk/WebEventFactory.cpp#265-296
664 # (multiplied then by pixelsPerLineStep which in GNOME-web is 40).
665 - name: apz.gtk.pangesture.delta_mode
666 type: uint32_t
667 value: 0
668 mirror: always
669
670 - name: apz.gtk.pangesture.page_delta_mode_multiplier
671 type: float
672 value: 1.0f
673 mirror: always
674
675 - name: apz.gtk.pangesture.pixel_delta_mode_multiplier
676 type: float
677 value: 40.0f
678 mirror: always
679
680 - name: apz.gtk.touchpad_pinch.enabled
681 type: RelaxedAtomicBool
682 value: true
683 mirror: always
684
685 - name: apz.gtk.touchpad_pinch.three_fingers.enabled
686 type: RelaxedAtomicBool
687 value: false
688 mirror: always
689
690 - name: apz.gtk.touchpad_hold.enabled
691 type: RelaxedAtomicBool
692 value: true
693 mirror: always
694 #endif
695
696 - name: apz.keyboard.enabled
697 type: bool
698 value: @IS_NOT_MOBILE@
699 mirror: once
700
701 - name: apz.keyboard.passive-listeners
702 type: RelaxedAtomicBool
703 value: @IS_NOT_MOBILE@
704 mirror: always
705
706 - name: apz.keyboard.focus-optimization
707 type: bool
708 value: false
709 mirror: always
710
711 - name: apz.max_tap_time
712 type: RelaxedAtomicInt32
713 value: 300
714 mirror: always
715
716 - name: apz.max_velocity_inches_per_ms
717 type: AtomicFloat
718 value: -1.0f
719 mirror: always
720
721 - name: apz.max_velocity_queue_size
722 type: uint32_t
723 value: 5
724 mirror: once
725
726 - name: apz.min_skate_speed
727 type: AtomicFloat
728 value: 1.0f
729 mirror: always
730
731 - name: apz.minimap.enabled
732 type: RelaxedAtomicBool
733 value: false
734 mirror: always
735
736 - name: apz.mousemove_hittest_optimization.enabled
737 type: RelaxedAtomicBool
738 value: true
739 mirror: always
740
741 - name: apz.one_touch_pinch.enabled
742 type: RelaxedAtomicBool
743 value: @IS_ANDROID@
744 mirror: always
745
746 - name: apz.overscroll.enabled
747 type: RelaxedAtomicBool
748 value: true
749 mirror: always
750
751 # The "test async scroll offset" (used via reftest-async-scroll
752 # or nsIDOMWindowUtils.setAsyncScrollOffset()) can be used to
753 # trigger overscroll. Used for tests only.
754 - name: apz.overscroll.test_async_scroll_offset.enabled
755 type: RelaxedAtomicBool
756 value: false
757 mirror: always
758
759 - name: apz.overscroll.min_pan_distance_ratio
760 type: AtomicFloat
761 value: 1.0f
762 mirror: always
763
764 - name: apz.overscroll.stop_distance_threshold
765 type: AtomicFloat
766 value: 5.0f
767 mirror: always
768
769 - name: apz.overscroll.spring_stiffness
770 type: AtomicFloat
771 value: 200
772 mirror: always
773
774 - name: apz.overscroll.damping
775 type: AtomicFloat
776 value: 1.1
777 mirror: always
778
779 - name: apz.overscroll.max_velocity
780 type: AtomicFloat
781 value: 10
782 mirror: always
783
784 - name: apz.paint_skipping.enabled
785 type: RelaxedAtomicBool
786 value: true
787 mirror: always
788
789 # Fetch displayport updates early from the message queue.
790 - name: apz.pinch_lock.mode
791 type: RelaxedAtomicInt32
792 value: 2
793 mirror: always
794
795 - name: apz.pinch_lock.scroll_lock_threshold
796 type: AtomicFloat
797 value: 1.0f / 16.0f # 1/16 inches
798 mirror: always
799
800 - name: apz.pinch_lock.span_breakout_threshold
801 type: AtomicFloat
802 value: 1.0f / 32.0f # 1/32 inches
803 mirror: always
804
805 - name: apz.pinch_lock.span_lock_threshold
806 type: AtomicFloat
807 value: 1.0f / 32.0f # 1/32 inches
808 mirror: always
809
810 - name: apz.pinch_lock.buffer_max_age
811 type: int32_t
812 value: 80 # milliseconds
813 mirror: once
814
815 - name: apz.popups.enabled
816 type: RelaxedAtomicBool
817 value: true
818 mirror: always
819
820 - name: apz.popups_without_remote.enabled
821 type: RelaxedAtomicBool
822 value: true
823 mirror: always
824
825 # Whether to print the APZC tree for debugging.
826 - name: apz.printtree
827 type: RelaxedAtomicBool
828 value: false
829 mirror: always
830
831 - name: apz.record_checkerboarding
832 type: RelaxedAtomicBool
833 value: @IS_NIGHTLY_BUILD@
834 mirror: always
835
836 - name: apz.second_tap_tolerance
837 type: AtomicFloat
838 value: 0.5f
839 mirror: always
840
841 # If this is true, APZ fully recalculates the scroll thumb size and
842 # position in the compositor. This leads to the size and position
843 # being more accurate in scenarios such as async zooming.
844 - name: apz.scrollthumb.recalc
845 type: RelaxedAtomicBool
846 value: true
847 mirror: always
848
849 - name: apz.test.fails_with_native_injection
850 type: RelaxedAtomicBool
851 value: false
852 mirror: always
853
854 - name: apz.test.logging_enabled
855 type: RelaxedAtomicBool
856 value: false
857 mirror: always
858
859 - name: apz.touch_move_tolerance
860 type: AtomicFloat
861 value: 0.1f
862 mirror: always
863
864 - name: apz.touch_scroll.buffer_max_age
865 type: int32_t
866 value: 200 # milliseconds
867 mirror: once
868
869 - name: apz.touch_start_tolerance
870 type: AtomicFloat
871 value: 0.1f
872 mirror: always
873
874 - name: apz.velocity_bias
875 type: AtomicFloat
876 value: 0.0f
877 mirror: always
878
879 - name: apz.velocity_relevance_time_ms
880 type: RelaxedAtomicUint32
881 value: 100
882 mirror: always
883
884 - name: apz.windows.force_disable_direct_manipulation
885 type: RelaxedAtomicBool
886 value: false
887 mirror: always
888
889 - name: apz.windows.use_direct_manipulation
890 type: RelaxedAtomicBool
891 value: true
892 mirror: always
893
894 - name: apz.windows.check_for_pan_gesture_conversion
895 type: RelaxedAtomicBool
896 value: true
897 mirror: always
898
899 - name: apz.x_skate_highmem_adjust
900 type: AtomicFloat
901 value: 0.0f
902 mirror: always
903
904 - name: apz.x_skate_size_multiplier
905 type: AtomicFloat
906 value: 1.25f
907 mirror: always
908
909 - name: apz.x_stationary_size_multiplier
910 type: AtomicFloat
911 value: 1.5f
912 mirror: always
913
914 - name: apz.y_skate_highmem_adjust
915 type: AtomicFloat
916 value: 0.0f
917 mirror: always
918
919 - name: apz.y_skate_size_multiplier
920 type: AtomicFloat
921 #if defined(MOZ_WIDGET_ANDROID)
922 value: 1.5f
923 #else
924 value: 3.5f
925 #endif
926 mirror: always
927
928 - name: apz.y_stationary_size_multiplier
929 type: AtomicFloat
930 #if defined(MOZ_WIDGET_ANDROID)
931 value: 1.5f
932 #else
933 value: 3.5f
934 #endif
935 mirror: always
936
937 - name: apz.zoom_animation_duration_ms
938 type: RelaxedAtomicInt32
939 #if defined(MOZ_WIDGET_ANDROID)
940 value: 250
941 #else
942 value: 350
943 #endif
944 mirror: always
945
946 - name: apz.scale_repaint_delay_ms
947 type: RelaxedAtomicInt32
948 value: 500
949 mirror: always
950
951 # Whether to use rounded external scroll offsets.
952 - name: apz.rounded_external_scroll_offset
953 type: bool
954 value: false
955 mirror: always
956
957 #---------------------------------------------------------------------------
958 # Prefs starting with "beacon."
959 #---------------------------------------------------------------------------
960
961 # Is support for Navigator.sendBeacon enabled?
962 - name: beacon.enabled
963 type: bool
964 value: true
965 mirror: always
966
967 #---------------------------------------------------------------------------
968 # Prefs starting with "bidi."
969 #---------------------------------------------------------------------------
970
971 # Whether delete and backspace should immediately delete characters not
972 # visually adjacent to the caret, or adjust the visual position of the caret
973 # on the first keypress and delete the character on a second keypress
974 - name: bidi.edit.delete_immediately
975 type: bool
976 value: true
977 mirror: always
978
979 # Bidi caret movement style:
980 # 0 = logical
981 # 1 = visual
982 # 2 = visual, but logical during selection
983 - name: bidi.edit.caret_movement_style
984 type: int32_t
985 #if !defined(XP_LINUX) && defined(NIGHTLY_BUILD)
986 value: 1
987 #else
988 value: 2 # See Bug 1638240
989 #endif
990 mirror: always
991
992 # Bidi numeral style:
993 # 0 = nominalnumeralBidi *
994 # 1 = regularcontextnumeralBidi
995 # 2 = hindicontextnumeralBidi
996 # 3 = arabicnumeralBidi
997 # 4 = hindinumeralBidi
998 # 5 = persiancontextnumeralBidi
999 # 6 = persiannumeralBidi
1000 - name: bidi.numeral
1001 type: RelaxedAtomicUint32
1002 value: 0
1003 mirror: always
1004
1005 # Bidi text type
1006 # 1 = charsettexttypeBidi *
1007 # 2 = logicaltexttypeBidi
1008 # 3 = visualtexttypeBidi
1009 - name: bidi.texttype
1010 type: RelaxedAtomicUint32
1011 value: 1
1012 mirror: always
1013
1014 # Bidi direction
1015 # 1 = directionLTRBidi *
1016 # 2 = directionRTLBidi
1017 - name: bidi.direction
1018 type: RelaxedAtomicUint32
1019 value: 1
1020 mirror: always
1021
1022 # Setting this pref to |true| forces Bidi UI menu items and keyboard shortcuts
1023 # to be exposed, and enables the directional caret hook. By default, only
1024 # expose it for bidi-associated system locales.
1025 - name: bidi.browser.ui
1026 type: bool
1027 value: false
1028 mirror: always
1029
1030 #---------------------------------------------------------------------------
1031 # Prefs starting with "browser."
1032 #---------------------------------------------------------------------------
1033
1034 - name: browser.active_color
1035 type: String
1036 value: "#EE0000"
1037 mirror: never
1038
1039 - name: browser.active_color.dark
1040 type: String
1041 value: "#FF6666"
1042 mirror: never
1043
1044 - name: browser.anchor_color
1045 type: String
1046 value: "#0000EE"
1047 mirror: never
1048
1049 # If you change this, you probably also want to change
1050 # nsXPLookAndFeel::GenericDarkColor for Linktext.
1051 - name: browser.anchor_color.dark
1052 type: String
1053 value: "#00CADB"
1054 mirror: never
1055
1056 # See http://dev.w3.org/html5/spec/forms.html#attr-fe-autofocus
1057 - name: browser.autofocus
1058 type: bool
1059 value: true
1060 mirror: always
1061
1062 - name: browser.cache.disk.enable
1063 type: RelaxedAtomicBool
1064 value: true
1065 mirror: always
1066
1067 - name: browser.cache.memory.enable
1068 type: RelaxedAtomicBool
1069 value: true
1070 mirror: always
1071
1072 # Limit of recent metadata we keep in memory for faster access, in KB.
1073 - name: browser.cache.disk.metadata_memory_limit
1074 type: RelaxedAtomicUint32
1075 value: 1024 # 1 MB
1076 mirror: always
1077
1078 # Does the user want smart-sizing?
1079 - name: browser.cache.disk.smart_size.enabled
1080 type: RelaxedAtomicBool
1081 value: true
1082 mirror: always
1083
1084 # Disk cache capacity in kilobytes. It's used only when
1085 # browser.cache.disk.smart_size.enabled == false
1086 - name: browser.cache.disk.capacity
1087 type: RelaxedAtomicUint32
1088 value: 256000
1089 mirror: always
1090
1091 # -1 = determine dynamically, 0 = none, n = memory capacity in kilobytes.
1092 - name: browser.cache.memory.capacity
1093 type: RelaxedAtomicInt32
1094 value: -1
1095 mirror: always
1096
1097 # When smartsizing is disabled we could potentially fill all disk space by
1098 # cache data when the disk capacity is not set correctly. To avoid that we
1099 # check the free space every time we write some data to the cache. The free
1100 # space is checked against two limits. Once the soft limit is reached we start
1101 # evicting the least useful entries, when we reach the hard limit writing to
1102 # the entry fails.
1103 - name: browser.cache.disk.free_space_soft_limit
1104 type: RelaxedAtomicUint32
1105 value: 5 * 1024 # 5MB
1106 mirror: always
1107
1108 - name: browser.cache.disk.free_space_hard_limit
1109 type: RelaxedAtomicUint32
1110 value: 1024 # 1MB
1111 mirror: always
1112
1113 # The number of chunks we preload ahead of read. One chunk currently has
1114 # 256kB.
1115 - name: browser.cache.disk.preload_chunk_count
1116 type: RelaxedAtomicUint32
1117 value: 4 # 1 MB of read ahead
1118 mirror: always
1119
1120 # Max-size (in KB) for entries in disk cache. Set to -1 for no limit.
1121 # (Note: entries bigger than 1/8 of disk-cache are never cached)
1122 - name: browser.cache.disk.max_entry_size
1123 type: RelaxedAtomicUint32
1124 value: 50 * 1024 # 50 MB
1125 mirror: always
1126
1127 # Max-size (in KB) for entries in memory cache. Set to -1 for no limit.
1128 # (Note: entries bigger than than 90% of the mem-cache are never cached.)
1129 - name: browser.cache.memory.max_entry_size
1130 type: RelaxedAtomicInt32
1131 value: 5 * 1024
1132 mirror: always
1133
1134 # Memory limit (in kB) for new cache data not yet written to disk. Writes to
1135 # the cache are buffered and written to disk on background with low priority.
1136 # With a slow persistent storage these buffers may grow when data is coming
1137 # fast from the network. When the amount of unwritten data is exceeded, new
1138 # writes will simply fail. We have two buckets, one for important data
1139 # (priority) like html, css, fonts and js, and one for other data like images,
1140 # video, etc.
1141 # Note: 0 means no limit.
1142 - name: browser.cache.disk.max_chunks_memory_usage
1143 type: RelaxedAtomicUint32
1144 value: 40 * 1024
1145 mirror: always
1146 - name: browser.cache.disk.max_priority_chunks_memory_usage
1147 type: RelaxedAtomicUint32
1148 value: 40 * 1024
1149 mirror: always
1150
1151
1152 # Number of seconds the cache spends writing pending data and closing files
1153 # after shutdown has been signalled. Past that time data is not written and
1154 # files are left open for the OS to clean up.
1155 - name: browser.cache.max_shutdown_io_lag
1156 type: RelaxedAtomicUint32
1157 value: 2
1158 mirror: always
1159
1160 # After the max_shutdown_io_lag has passed, we will attempt to cancel
1161 # blocking IO (on windows). The CacheIOThread may pick up more blocking
1162 # tasks so we want to cancel those too. The main thread will be woken
1163 # up every shutdown_io_time_between_cancellations_ms to cancel the IO
1164 # on the other thread.
1165 - name: browser.cache.shutdown_io_time_between_cancellations_ms
1166 type: RelaxedAtomicUint32
1167 value: 5
1168 mirror: always
1169
1170 # A percentage limit for media content type in the disk cache. When some entries
1171 # need to be evicted and media is over the limit, it's evicted first.
1172 - name: browser.cache.disk.content_type_media_limit
1173 type: RelaxedAtomicInt32
1174 value: 50
1175 mirror: always
1176
1177 # How often to validate document in cache
1178 # 0 = once-per-session,
1179 # 1 = each-time,
1180 # 2 = never,
1181 # 3 = when-appropriate/automatically
1182 - name: browser.cache.check_doc_frequency
1183 type: RelaxedAtomicUint32
1184 value: 3
1185 mirror: always
1186
1187 # Compression level for cached JavaScript bytecode
1188 # 0 = do not compress,
1189 # 1 = minimal compression,
1190 # 9 = maximal compression
1191 - name: browser.cache.jsbc_compression_level
1192 type: RelaxedAtomicUint32
1193 value: 0
1194 mirror: always
1195
1196 # Whether tooltips are enabled.
1197 - name: browser.chrome.toolbar_tips
1198 type: bool
1199 value: true
1200 mirror: always
1201
1202 # Whether tooltips are hidden on keydown.
1203 # 0: never
1204 # 1: always
1205 # 2: only on non-modifier keys
1206 - name: browser.chrome.toolbar_tips.hide_on_keydown
1207 type: uint32_t
1208 #if defined(XP_WIN)
1209 value: 0
1210 #else
1211 value: 2
1212 #endif
1213 mirror: always
1214
1215 # DLP agent name, for display in the browser
1216 - name: browser.contentanalysis.agent_name
1217 type: String
1218 value: "A DLP agent"
1219 mirror: never
1220
1221 # (optional) The organization name that the DLP agent should have. If this is
1222 # non-empty and the DLP agent is not signed with this organization name,
1223 # Firefox will fail the connection.
1224 - name: browser.contentanalysis.client_signature
1225 type: String
1226 value: ""
1227 mirror: never
1228
1229 # Content analysis by external applications, e.g. data-loss prevention apps
1230 - name: browser.contentanalysis.enabled
1231 type: bool
1232 value: false
1233 mirror: always
1234
1235 # On Windows, whether to bring the foreground window to the front when printing
1236 # to avoid a DLP agent stealing focus and cancelling the print (bug 1980225)
1237 - name: browser.contentanalysis.print_set_foreground_window
1238 type: bool
1239 value: true
1240 mirror: always
1241
1242 # What content analysis should return if there is a problem communicating
1243 # with the agent. (see DefaultResponse enum in ContentAnalysis.h)
1244 # Make sure these stay in sync with the out-of-range check in Policies.sys.mjs.
1245 #
1246 # 0: Block all requests
1247 # 1: Warn on all requests (which lets the user decide)
1248 # 2: Allow all requests
1249 - name: browser.contentanalysis.default_result
1250 type: uint32_t
1251 value: 0
1252 mirror: always
1253
1254 # What content analysis should return if the agent takes too long to respond
1255 # to a request. (see DefaultResponse enum in ContentAnalysis.h)
1256 # Make sure these stay in sync with the out-of-range check in Policies.sys.mjs.
1257 #
1258 # 0: Block all requests
1259 # 1: Warn on all requests (which lets the user decide)
1260 # 2: Allow all requests
1261 - name: browser.contentanalysis.timeout_result
1262 type: uint32_t
1263 value: 0
1264 mirror: always
1265
1266 # Is the IPC pipe to the DLP tool specific to the user or to the system?
1267 - name: browser.contentanalysis.is_per_user
1268 type: bool
1269 value: true
1270 mirror: always
1271
1272 # Path name of pipe used to connect to a configured DLP agent.
1273 - name: browser.contentanalysis.pipe_path_name
1274 type: String
1275 value: "path_user"
1276 mirror: never
1277
1278 # Space-separated list of regexs that are compared to URLs of resources
1279 # being checked by content-analysis. Resources that match are not checked
1280 # and are always permitted.
1281 # By default this does not check any about: page except for about:blank
1282 # and about:srcdoc.
1283 - name: browser.contentanalysis.allow_url_regex_list
1284 type: String
1285 value: "^about:(?!blank|srcdoc).*"
1286 mirror: never
1287
1288 # Space-separated list of regexs that are compared to URLs of resources
1289 # being checked by content-analysis. Resources that match are not checked
1290 # and are always denied.
1291 - name: browser.contentanalysis.deny_url_regex_list
1292 type: String
1293 value: ""
1294 mirror: never
1295
1296 # Should CA ignore the system setting and use silent notifications?
1297 - name: browser.contentanalysis.silent_notifications
1298 type: bool
1299 value: false
1300 mirror: always
1301
1302 # Time (secs) after which content analysis operations are considered timed-out
1303 # A non-positive value indicates a timeout of 25ms, which is used for testing.
1304 - name: browser.contentanalysis.agent_timeout
1305 type: int32_t
1306 value: 300
1307 mirror: always
1308
1309 # Should Firefox show a notification or dialog when content analysis blocks
1310 # access?
1311 - name: browser.contentanalysis.show_blocked_result
1312 type: bool
1313 value: true
1314 mirror: always
1315
1316 # Should Firefox bypass content analysis for pastes and drags whose source
1317 # is the same tab?
1318 - name: browser.contentanalysis.bypass_for_same_tab_operations
1319 type: bool
1320 value: false
1321 mirror: always
1322
1323 # Max number of concurrent connections to the DLP agent. For stability
1324 # reasons, values exceeding 256 will be ignored.
1325 - name: browser.contentanalysis.max_connections
1326 type: uint32_t
1327 value: 32
1328 mirror: always
1329
1330 # Should Firefox use content analysis for clipboard operations?
1331 # Note that this has no effect unless browser.contentanalysis.enabled
1332 # is true.
1333 - name: browser.contentanalysis.interception_point.clipboard.enabled
1334 type: bool
1335 value: true
1336 mirror: always
1337
1338 # Should Firefox only analyze plain text contents of the clipboard?
1339 # If this is false, all formats on the clipboard will be analyzed.
1340 # Note that regardless of this setting, files on the clipboard
1341 # will be analyzed.
1342 - name: browser.contentanalysis.interception_point.clipboard.plain_text_only
1343 type: bool
1344 value: true
1345 mirror: always
1346
1347 # Should Firefox use content analysis for download operations?
1348 # Note that this has no effect unless browser.contentanalysis.enabled
1349 # is true.
1350 # This defaults to false so as to not break existing content analysis
1351 # configurations.
1352 - name: browser.contentanalysis.interception_point.download.enabled
1353 type: bool
1354 value: false
1355 mirror: always
1356
1357 # Should Firefox use content analysis for drag and drop operations?
1358 # Note that this has no effect unless browser.contentanalysis.enabled
1359 # is true.
1360 - name: browser.contentanalysis.interception_point.drag_and_drop.enabled
1361 type: bool
1362 value: true
1363 mirror: always
1364
1365 # Should Firefox only analyze plain text contents for drag and drop
1366 # operations?
1367 # If this is false, all formats that are part of the drag and drop
1368 # operation will be analyzed.
1369 # Note that regardless of this setting, files that are dragged and dropped
1370 # will be analyzed.
1371 - name: browser.contentanalysis.interception_point.drag_and_drop.plain_text_only
1372 type: bool
1373 value: true
1374 mirror: always
1375
1376 # Should Firefox use content analysis for file upload operations through
1377 # a file dialog?
1378 # Note that this has no effect unless browser.contentanalysis.enabled
1379 # is true.
1380 - name: browser.contentanalysis.interception_point.file_upload.enabled
1381 type: bool
1382 value: true
1383 mirror: always
1384
1385 # Should Firefox use content analysis for print operations?
1386 # Note that this has no effect unless browser.contentanalysis.enabled
1387 # is true.
1388 - name: browser.contentanalysis.interception_point.print.enabled
1389 type: bool
1390 value: true
1391 mirror: always
1392
1393 # Content blocking for Enhanced Tracking Protection
1394 - name: browser.contentblocking.database.enabled
1395 type: bool
1396 value: false
1397 mirror: always
1398
1399 # How many recent block/unblock actions per origins we remember in the
1400 # Content Blocking log for each top-level window.
1401 - name: browser.contentblocking.originlog.length
1402 type: uint32_t
1403 value: 32
1404 mirror: always
1405
1406 # Whether memorytesting is enabled when crash reporter client is launched
1407 - name: browser.crashReporter.memtest
1408 type: RelaxedAtomicBool
1409 value: true
1410 mirror: always
1411
1412 # Space-separated list of prioritized memory test kinds
1413 - name: browser.crashReporter.memtestKinds
1414 type: DataMutexString
1415 value: ""
1416 mirror: always
1417
1418 # Control whether we enable the feature of crash pull at all
1419 # Disabled by default for now until further notice
1420 - name: browser.crashReports.crashPull
1421 type: bool
1422 value: false
1423 mirror: always
1424
1425 # Should we prompt the user to send targetted crash report requested by devs?
1426 - name: browser.crashReports.requestedNeverShowAgain
1427 type: bool
1428 value: false
1429 mirror: always
1430
1431 # Min font device pixel size at which to turn on high quality.
1432 - name: browser.display.auto_quality_min_font_size
1433 type: RelaxedAtomicUint32
1434 value: 20
1435 mirror: always
1436
1437 - name: browser.display.background_color
1438 type: String
1439 value: "#FFFFFF"
1440 mirror: never
1441
1442 - name: browser.display.background_color.dark
1443 type: String
1444 value: "#1C1B22"
1445 mirror: never
1446
1447 # This preference is a bit confusing because we use the opposite
1448 # string value in the colors dialog to indicate to users how FF HCM
1449 # will behave.
1450 # With resect to document colors, these values mean:
1451 # 0 = "default" = always, except in high contrast mode
1452 # 1 = "always"
1453 # 2 = "never"
1454 #
1455 # On windows, we set this to 0, which means FF HCM will mirror OS HCM.
1456 # Everywhere else, we set this to 1, disabling FF HCM.
1457 - name: browser.display.document_color_use
1458 type: RelaxedAtomicUint32
1459 #if defined(XP_WIN)
1460 value: 0
1461 #else
1462 value: 1
1463 #endif
1464 mirror: always
1465 rust: true
1466
1467 # 0 = always native
1468 # 1 = never native
1469 # other = default
1470 - name: browser.display.windows.non_native_menus
1471 type: RelaxedAtomicUint32
1472 value: 2
1473 mirror: always
1474 rust: true
1475
1476 # This pref dictates whether or not backplates and background images
1477 # are to be drawn, when in high-contrast mode:
1478 # false: do not draw backplates or render background images
1479 # true: render background images and draw backplates
1480 # This condition is only considered when high-contrast mode is enabled
1481 # in Firefox, ie. when the user has:
1482 # (1) mUseAccessibilityMode set to true (Widows high-contrast mode is on)
1483 # AND browser.display.document_color_use set to 0
1484 # (only with high-contrast themes) OR
1485 # (2) browser.display.document_color_use set to 2 (always)
1486 - name: browser.display.permit_backplate
1487 type: RelaxedAtomicBool
1488 value: true
1489 mirror: always
1490 rust: true
1491
1492 # Whether we should suppress the background-image of the canvas (the root
1493 # frame) if we're in forced colors mode.
1494 #
1495 # This is important because some sites use background-image with a plain color
1496 # and it causes undesirable results in high-contrast mode.
1497 #
1498 # See bug 1614921 for example.
1499 - name: browser.display.suppress_canvas_background_image_on_forced_colors
1500 type: bool
1501 value: true
1502 mirror: always
1503
1504 - name: browser.display.foreground_color
1505 type: String
1506 value: "#000000"
1507 mirror: never
1508
1509 - name: browser.display.foreground_color.dark
1510 type: String
1511 value: "#FBFBFE"
1512 mirror: never
1513
1514 # Determines the behavior of OS zoom settings.
1515 #
1516 # 0: doesn't affect rendering at all
1517 # 1: affects full zoom (dpi, effectively).
1518 # 2: affects text zoom.
1519 #
1520 # Default is (1): Historical behavior on Linux, matches other browsers on
1521 # Windows, and generally creates more consistent rendering.
1522 - name: browser.display.os-zoom-behavior
1523 type: RelaxedAtomicInt32
1524 value: 1
1525 mirror: always
1526 rust: true
1527
1528 # Whether focus rings are always shown by default.
1529 #
1530 # This is the initial value of nsWindowRoot::mShowFocusRings, but it can be
1531 # overridden by system preferences.
1532 - name: browser.display.show_focus_rings
1533 type: bool
1534 value: false
1535 mirror: always
1536
1537 # Enable showing image placeholders while image is loading or when image is broken.
1538 - name: browser.display.show_image_placeholders
1539 type: bool
1540 value: true
1541 mirror: always
1542
1543 # Whether we should always enable focus rings after focus was moved by keyboard.
1544 #
1545 # This behavior matches both historical and GTK / Windows focus behavior.
1546 #
1547 # :focus-visible is intended to provide better heuristics than this.
1548 - name: browser.display.always_show_rings_after_key_focus
1549 type: bool
1550 value: false
1551 mirror: always
1552
1553 # In theory: 0 = never, 1 = quick, 2 = always, though we always just use it as
1554 # a bool!
1555 - name: browser.display.use_document_fonts
1556 type: RelaxedAtomicInt32
1557 value: 1
1558 mirror: always
1559 rust: true
1560
1561 # font-family names for which we'll override use_document_fonts=0, and always
1562 # use the specified font.
1563 # This is to support ligature-icon fonts, which render literal strings like
1564 # "arrow_drop_down" with an icon, even when use_document_fonts is disabled.
1565 # If an author provides & uses such a font, and we decline to use it, we'll end
1566 # up rendering these literal strings where the author intended an icon, which
1567 # can cause all sorts of overlapping/unreadable content.
1568 - name: browser.display.use_document_fonts.icon_font_allowlist
1569 type: String
1570 value: >-
1571 Material Icons,
1572 Material Icons Extended,
1573 Material Icons Outlined,
1574 Material Icons Round,
1575 Material Icons Sharp,
1576 Material Icons Two Tone,
1577 Google Material Icons,
1578 Google Material Icons Filled,
1579 Material Symbols Outlined,
1580 Material Symbols Round,
1581 Material Symbols Rounded,
1582 Material Symbols Sharp,
1583 Google Symbols,
1584 FontAwesome
1585 mirror: never
1586
1587 - name: browser.display.use_system_colors
1588 type: RelaxedAtomicBool
1589 #ifdef XP_WIN
1590 value: true
1591 #else
1592 value: false
1593 #endif
1594 mirror: always
1595
1596 - name: browser.dom.window.dump.enabled
1597 type: RelaxedAtomicBool
1598 value: @IS_NOT_MOZILLA_OFFICIAL@
1599 mirror: always
1600
1601 # See bug 1738574
1602 - name: browser.download.start_downloads_in_tmp_dir
1603 type: bool
1604 value: false
1605 mirror: always
1606
1607 # See bug 1747343
1608 - name: browser.download.always_ask_before_handling_new_types
1609 type: bool
1610 value: false
1611 mirror: always
1612
1613 # See bug 1731668
1614 - name: browser.download.enable_spam_prevention
1615 type: bool
1616 value: false
1617 mirror: always
1618
1619 # See bug 1772569
1620 - name: browser.download.open_pdf_attachments_inline
1621 type: bool
1622 value: false
1623 mirror: always
1624
1625 # See bug 1811830
1626 - name: browser.download.force_save_internally_handled_attachments
1627 type: bool
1628 value: false
1629 mirror: always
1630
1631 - name: browser.download.sanitize_non_media_extensions
1632 type: bool
1633 value: true
1634 mirror: always
1635
1636 # Image document's automatic image sizing.
1637 - name: browser.enable_automatic_image_resizing
1638 type: bool
1639 value: true
1640 mirror: always
1641
1642 # Image document's click-to-resize.
1643 - name: browser.enable_click_image_resizing
1644 type: bool
1645 value: @IS_NOT_MOBILE@
1646 mirror: always
1647
1648 - name: browser.find.ignore_ruby_annotations
1649 type: bool
1650 value: true
1651 mirror: always
1652
1653 #if defined(XP_MACOSX)
1654 # Whether pressing Esc will exit fullscreen.
1655 - name: browser.fullscreen.exit_on_escape
1656 type: bool
1657 value: true
1658 mirror: always
1659 #endif
1660
1661 # The max url length we'll store in history.
1662 #
1663 # The default value is mostly a guess based on various facts:
1664 #
1665 # * IE didn't support urls longer than 2083 chars
1666 # * Sitemaps protocol used to support a maximum of 2048 chars
1667 # * Various SEO guides suggest to not go over 2000 chars
1668 # * Various apps/services are known to have issues over 2000 chars
1669 # * RFC 2616 - HTTP/1.1 suggests being cautious about depending
1670 # on URI lengths above 255 bytes
1671 #
1672 - name: browser.history.maxUrlLength
1673 type: uint32_t
1674 value: 2000
1675 mirror: always
1676
1677 # Max size of push/replaceState data parameter
1678 - name: browser.history.maxStateObjectSize
1679 type: int32_t
1680 value: 16777216
1681 mirror: always
1682
1683 # True to collect wireframes upon navigations / pushState
1684 - name: browser.history.collectWireframes
1685 type: bool
1686 value: false
1687 mirror: always
1688
1689 # If false, show internal error page for HTTP responses with error
1690 # codes (4xx, 5xx) and "Content-Length": 0 instead of blank page
1691 # See https://bugzilla.mozilla.org/show_bug.cgi?id=1325876#c32 for why this
1692 # is disabled on Android.
1693 - name: browser.http.blank_page_with_error_response.enabled
1694 type: bool
1695 #if !defined(ANDROID)
1696 value: false
1697 #else
1698 value: true
1699 #endif
1700 mirror: always
1701
1702 # The minimum area for a rect to be included in a wireframe, in CSS pixels.
1703 #
1704 # The current value of 50 is pretty arbitrary, and will be tuned as we refine
1705 # and test the wireframing capability.
1706 - name: browser.history.wireframeAreaThreshold
1707 type: uint32_t
1708 value: 50
1709 mirror: always
1710
1711 #if defined(XP_WIN) || defined(XP_LINUX)
1712 # Notify TabUnloader or send the memory pressure if the memory resource
1713 # notification is signaled AND the available commit space is lower than
1714 # this value.
1715 - name: browser.low_commit_space_threshold_mb
1716 type: RelaxedAtomicUint32
1717 value: 200
1718 mirror: always
1719 #endif
1720
1721 #ifdef XP_LINUX
1722 # On Linux we also check available memory in comparison to total memory,
1723 # and use this percent value (out of 100) to determine if we are in a
1724 # low memory scenario.
1725 - name: browser.low_commit_space_threshold_percent
1726 type: RelaxedAtomicUint32
1727 value: 5
1728 mirror: always
1729 #endif
1730
1731 # Render animations and videos as a solid color
1732 - name: browser.measurement.render_anims_and_video_solid
1733 type: RelaxedAtomicBool
1734 value: false
1735 mirror: always
1736
1737 - name: browser.navigation.requireUserInteraction
1738 type: bool
1739 value: true
1740 mirror: always
1741
1742 # Indicates if about:newtab shows content (enabled) or just blank.
1743 - name: browser.newtabpage.enabled
1744 type: bool
1745 value: true
1746 mirror: always
1747
1748 # Open PDFs in Edge with the --app flag if it is the default.
1749 - name: browser.pdf.launchDefaultEdgeAsApp
1750 type: bool
1751 value: true
1752 mirror: always
1753
1754 # Maximium delay between keystrokes that will be considered typing (milliseconds).
1755 - name: browser.places.interactions.typing_timeout_ms
1756 type: RelaxedAtomicUint32
1757 value: 3000
1758 mirror: always
1759
1760 # Maximum delay between scroll input events that will be considered a scrolling interaction (milliseconds).
1761 - name: browser.places.interactions.scrolling_timeout_ms
1762 type: RelaxedAtomicUint32
1763 value: 5000
1764 mirror: always
1765
1766 # Number of seconds till the sponsored session is timeout.
1767 - name: browser.places.sponsoredSession.timeoutSecs
1768 type: RelaxedAtomicUint32
1769 value: 3600
1770 mirror: always
1771
1772 # Whether to start the private browsing mode at application startup
1773 - name: browser.privatebrowsing.autostart
1774 type: bool
1775 value: false
1776 mirror: always
1777
1778 # Force usage of in-memory (rather than file on disk) media cache for video streaming when private browsing
1779 - name: browser.privatebrowsing.forceMediaMemoryCache
1780 type: bool
1781 value: false
1782 mirror: always
1783
1784 # Communicates the toolbar color to platform (for e.g., prefers-color-scheme).
1785 #
1786 # Returns whether the toolbar is dark (0), light (1), or system (2). The
1787 # theming code overrides it if appropriate.
1788 - name: browser.theme.toolbar-theme
1789 type: RelaxedAtomicUint32
1790 value: 2
1791 mirror: always
1792
1793 # Communicates the preferred content theme color to platform (for e.g.,
1794 # prefers-color-scheme).
1795 #
1796 # dark (0), light (1), system (2), or toolbar (3).
1797 #
1798 # Default to "toolbar", the theming code sets it appropriately.
1799 - name: browser.theme.content-theme
1800 type: RelaxedAtomicUint32
1801 value: 2
1802 mirror: always
1803 rust: true
1804
1805 # Whether the firefox titlebar respects the
1806 # -moz-windows-accent-color-in-titlebar setting on the tab strip.
1807 - name: browser.theme.windows.accent-color-in-tabs.enabled
1808 type: RelaxedAtomicBool
1809 value: false
1810 mirror: always
1811 rust: true
1812
1813 # Blocked plugin content
1814 - name: browser.safebrowsing.blockedURIs.enabled
1815 type: bool
1816 value: true
1817 mirror: always
1818
1819 # Malware protection
1820 - name: browser.safebrowsing.malware.enabled
1821 type: bool
1822 value: true
1823 mirror: always
1824
1825 # Phishing protection
1826 - name: browser.safebrowsing.phishing.enabled
1827 type: bool
1828 value: true
1829 mirror: always
1830
1831 # Maximum size for an array to store the safebrowsing prefixset.
1832 - name: browser.safebrowsing.prefixset_max_array_size
1833 type: RelaxedAtomicUint32
1834 value: 512*1024
1835 mirror: always
1836
1837 # Whether to only classify top-level channels for safe browsing.
1838 - name: browser.safebrowsing.only_top_level
1839 type: bool
1840 value: true
1841 mirror: always
1842
1843 # SessionStore prefs
1844 # Maximum number of bytes of DOMSessionStorage data we collect per origin.
1845 - name: browser.sessionstore.dom_storage_limit
1846 type: uint32_t
1847 value: 2048
1848 mirror: always
1849
1850 # Maximum number of characters of form field data per field we collect.
1851 - name: browser.sessionstore.dom_form_limit
1852 type: uint32_t
1853 value: 1024*1024*2
1854 mirror: always
1855
1856 # Maximum number of characters of form data we collect per origin.
1857 - name: browser.sessionstore.dom_form_max_limit
1858 type: uint32_t
1859 value: 1024*1024*50
1860 mirror: always
1861
1862 # Minimal interval between two save operations in milliseconds (while the user is active).
1863 - name: browser.sessionstore.interval
1864 type: RelaxedAtomicUint32
1865 value: 15000
1866 mirror: always
1867
1868 # Disable collection of data for session store using the native collector code,
1869 # instead use the older implementation that's not compatible with session
1870 # history in the parent (and thus Fission).
1871 - name: browser.sessionstore.disable_platform_collection
1872 type: bool
1873 #if defined(MOZ_THUNDERBIRD)
1874 value: true
1875 #else
1876 value: false
1877 #endif
1878 mirror: once
1879 do_not_use_directly: true
1880
1881 #if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION) || defined(DEBUG)
1882 - name: browser.startup.record
1883 type: bool
1884 value: false
1885 mirror: always
1886 #endif
1887
1888 # Causes SessionStore to ignore non-final update messages from
1889 # browser tabs that were not caused by a flush from the parent.
1890 # This is a testing flag and should not be used by end-users.
1891 - name: browser.sessionstore.debug.no_auto_updates
1892 type: RelaxedAtomicBool
1893 value: false
1894 mirror: always
1895
1896 # If set, when a link is opened to a new tab, do not switch to the new tab.
1897 #
1898 # This pref is used when the link is opened with "Open Link in New Tab",
1899 # middle-click, etc.
1900 #
1901 # See also browser.tabs.loadDivertedInBackground, which is used when the website
1902 # diverts the link into a new tab.
1903 - name: browser.tabs.loadInBackground
1904 type: bool
1905 value: true
1906 mirror: always
1907
1908 # Whether we should draw the tabs on top of the titlebar.
1909 #
1910 # no (0), yes (1), or default (2), which is true everywhere except Linux.
1911 - name: browser.tabs.inTitlebar
1912 type: int32_t
1913 value: 2
1914 mirror: always
1915
1916 # If set, use DocumentChannel to directly initiate loads entirely
1917 # from parent-process BrowsingContexts
1918 - name: browser.tabs.documentchannel.parent-controlled
1919 type: bool
1920 value: false
1921 mirror: always
1922
1923 # If set, middle clicking on a link opens the link in a new tab.
1924 - name: browser.tabs.opentabfor.middleclick
1925 type: bool
1926 value: true
1927 mirror: always
1928
1929 # Testing-only pref which makes data: URIs be loaded in a "web" content process
1930 # instead of within a process based on the URI's loader.
1931 - name: browser.tabs.remote.dataUriInDefaultWebProcess
1932 type: bool
1933 value: false
1934 mirror: always
1935
1936 # Testing-only pref to force system-triggered about:blank loads to not change
1937 # content processes. This is used for performance tests which load an
1938 # about:blank document between navigations for historical reasons to avoid
1939 # unnecessary process switches.
1940 - name: browser.tabs.remote.systemTriggeredAboutBlankAnywhere
1941 type: bool
1942 value: false
1943 mirror: always
1944
1945 # Testing-only pref to cause PBrowser creation for a specific BrowsingContext to
1946 # fail, to test the errored codepath.
1947 - name: browser.tabs.remote.testOnly.failPBrowserCreation.enabled
1948 type: bool
1949 value: false
1950 mirror: always
1951
1952 - name: browser.tabs.remote.force-paint
1953 type: bool
1954 value: true
1955 mirror: always
1956
1957 # When this pref is enabled document loads with a mismatched
1958 # Cross-Origin-Embedder-Policy header will fail to load
1959 - name: browser.tabs.remote.useCrossOriginEmbedderPolicy
1960 type: RelaxedAtomicBool
1961 value: true
1962 mirror: always
1963
1964 # This pref makes `credentialless` a valid value for
1965 # Cross-Origin-Embedder-Policy header
1966 - name: browser.tabs.remote.coep.credentialless
1967 type: RelaxedAtomicBool
1968 #if defined(ANDROID)
1969 value: @IS_NIGHTLY_BUILD@
1970 #else
1971 value: true
1972 #endif
1973 mirror: always
1974 do_not_use_directly: true
1975
1976 # When this pref is enabled top level loads with a mismatched
1977 # Cross-Origin-Opener-Policy header will be loaded in a separate process.
1978 - name: browser.tabs.remote.useCrossOriginOpenerPolicy
1979 type: RelaxedAtomicBool
1980 value: true
1981 mirror: always
1982
1983 # When this pref is enabled then we use a separate content process for
1984 # top-level load of file:// URIs
1985 - name: browser.tabs.remote.separateFileUriProcess
1986 type: RelaxedAtomicBool
1987 #if !defined(ANDROID)
1988 value: true
1989 #else
1990 value: false
1991 #endif
1992 mirror: always
1993
1994 # Pref to control whether we use a separate privileged content process
1995 # for certain mozilla webpages (which are listed in the pref
1996 # browser.tabs.remote.separatedMozillaDomains).
1997 - name: browser.tabs.remote.separatePrivilegedMozillaWebContentProcess
1998 type: bool
1999 value: false
2000 mirror: always
2001
2002 # Whether or not process selection for subframes will prefer re-using an
2003 # existing content process over creating a new one. Enabling this pref should
2004 # reduce the number of processes allocated for non-first-party domains if
2005 # dom.ipc.processCount.webIsolated > 1.
2006 - name: browser.tabs.remote.subframesPreferUsed
2007 type: bool
2008 value: true
2009 mirror: always
2010
2011 # When this pref is enabled, opaque response is only allowed to enter the
2012 # content process if it's a response for media (audio, image, video), CSS, or
2013 # JavaScript.
2014 - name: browser.opaqueResponseBlocking
2015 type: RelaxedAtomicBool
2016 #if defined(ANDROID)
2017 value: false
2018 #else
2019 value: true
2020 #endif
2021 mirror: always
2022
2023 # When this pref is enabled, the JS validator will be enabled for
2024 # ORB.
2025 - name: browser.opaqueResponseBlocking.javascriptValidator
2026 type: bool
2027 value: true
2028 mirror: always
2029
2030 # This pref controls how filtering of opaque responses for calls to `Window.fetch`.
2031 # (and similar) is performed in the parent process. This is intended to make sure
2032 # that data that would be filtered in a content process never actually reaches that
2033 # content process.
2034 # See https://fetch.spec.whatwg.org/#concept-filtered-response-opaque
2035 # 0) Don't filter in the parent process at all, and let content processes handle
2036 # opaque filtering. Regardless of if ORB is enabled or not. N.B. that if ORB
2037 # is enabled opaque responses will be blocked.
2038 # 1) If ORB is enabled, in the parent process, filter the responses that ORB allows.
2039 # N.B. any responses ORB doesn't allow will not send data to a content process
2040 # since they will return a NetworkError. If the request is allowed by ORB, the
2041 # internal response will be intact and sent to the content process as is.
2042 # 2) If ORB is enabled, in the parent process, filter the responses that ORB blocks,
2043 # when they were issued by `Window.fetch` (and similar).
2044 # 3) Filter all responses in the parent, regardless of if ORB is enabled or not.
2045 # This means that opaque responses coming from `Window.fetch` won't even be
2046 # considered for being blocked by ORB.
2047 - name: browser.opaqueResponseBlocking.filterFetchResponse
2048 type: uint32_t
2049 value: 2
2050 mirror: always
2051 do_not_use_directly: true
2052
2053 # This pref controls how exceptions to opaque response blocking for the media MIME types
2054 # `audio/*` and `video/*` are handled. This is because step 8 in the spec that performs
2055 # audio or video type pattern matching cannot handle certain MIME types (yet).
2056 # See https://whatpr.org/fetch/1442.html#orb-algorithm
2057 # 0) No exceptions
2058 # 1) Some exceptions, explicitly hard coded in `IsOpaqueSafeListedSpecBreakingMIMEType`
2059 # 2) Allow all MIME types beginning with `audio/*` or `video/*`.
2060 - name: browser.opaqueResponseBlocking.mediaExceptionsStrategy
2061 type: uint32_t
2062 value: 1
2063 mirror: always
2064 do_not_use_directly: true
2065
2066 # When true, zooming will be enabled on all sites, even ones that declare
2067 # user-scalable=no or use touch-action to disable pinch gestures.
2068 - name: browser.ui.zoom.force-user-scalable
2069 type: RelaxedAtomicBool
2070 value: false
2071 mirror: always
2072
2073 - name: browser.viewport.desktopWidth
2074 type: RelaxedAtomicInt32
2075 value: 980
2076 mirror: always
2077
2078 - name: browser.visited_color
2079 type: String
2080 value: "#551A8B"
2081 mirror: never
2082
2083 # If you change this, you probably also want to change
2084 # nsXPLookAndFeel::GenericDarkColor for Visitedtext.
2085 - name: browser.visited_color.dark
2086 type: String
2087 value: "#FFADFF"
2088 mirror: never
2089
2090 # When true, soft reloads (including location.reload())
2091 # will only froce validate the top level document, subresources will
2092 # be loaded normally as-if users normally navigated to the page.
2093 - name: browser.soft_reload.only_force_validate_top_level_document
2094 type: bool
2095 value: true
2096 mirror: always
2097
2098 # Whether or not to save and restore zoom levels on a per-site basis.
2099 - name: browser.zoom.siteSpecific
2100 type: bool
2101 value: @IS_NOT_ANDROID@
2102 mirror: always
2103
2104 # Whether we block opening pickers from background tabs.
2105 - name: browser.disable_pickers_background_tabs
2106 type: RelaxedAtomicBool
2107 value: true
2108 mirror: always
2109
2110 # Whether we block opening pickers from hidden extension pages in WebExtensions.
2111 # This includes background pages and devtools pages, but not background tabs.
2112 - name: browser.disable_pickers_in_hidden_extension_pages
2113 type: RelaxedAtomicBool
2114 value: @IS_NIGHTLY_BUILD@
2115 mirror: always
2116
2117 #---------------------------------------------------------------------------
2118 # Prefs starting with "channelclassifier."
2119 #---------------------------------------------------------------------------
2120
2121 - name: channelclassifier.allowlist_example
2122 type: bool
2123 value: false
2124 mirror: always
2125
2126 #---------------------------------------------------------------------------
2127 # Prefs starting with "clipboard."
2128 #---------------------------------------------------------------------------
2129
2130 # Clipboard behavior.
2131 - name: clipboard.autocopy
2132 type: bool
2133 #if !defined(ANDROID) && !defined(XP_MACOSX) && defined(XP_UNIX)
2134 value: true
2135 #else
2136 value: false
2137 #endif
2138 mirror: always
2139
2140 #ifdef XP_WIN
2141 # allow to copy clipboard data to Clipboard History/Cloud
2142 # (used on sensitive data in about:logins and Private Browsing)
2143 - name: clipboard.copyPrivateDataToClipboardCloudOrHistory
2144 type: bool
2145 value: false
2146 mirror: always
2147
2148 # Whether to put a file promise onto the clipboard when copying images on Windows
2149 - name: clipboard.imageAsFile.enabled
2150 type: bool
2151 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
2152 mirror: always
2153
2154 # On Windows, whether to add PNG before BMP (CF_DIB) in the list of supported
2155 # formats when copying an image to the clipboard.
2156 - name: clipboard.copy_image.as_png
2157 type: RelaxedAtomicBool
2158 value: true
2159 mirror: always
2160
2161 # On Windows, whether we encode an image as PNG (instead of the previous
2162 # default of BMP) when an application to which we are copying an image
2163 # requests that it be provided as a temporary file (CF_HDROP).
2164 - name: clipboard.copy_image_file.as_png
2165 type: RelaxedAtomicBool
2166 value: true
2167 mirror: always
2168 #endif
2169
2170 #---------------------------------------------------------------------------
2171 # Prefs starting with "consoleservice."
2172 #---------------------------------------------------------------------------
2173
2174 #if defined(ANDROID)
2175 # Disable sending console to logcat on release builds.
2176 - name: consoleservice.logcat
2177 type: RelaxedAtomicBool
2178 value: @IS_NOT_RELEASE_OR_BETA@
2179 mirror: always
2180 #endif
2181
2182 #---------------------------------------------------------------------------
2183 # Prefs starting with "content."
2184 #---------------------------------------------------------------------------
2185
2186 - name: content.cors.disable
2187 type: bool
2188 value: false
2189 mirror: always
2190
2191 # If true, we'll use the triggering principal rather than the loading principal
2192 # when doing CORS checks. Doing so is generally not correct, but we shipped
2193 # with this behavior for a long time, so we're leaving it preffable in case
2194 # it's needed for testing or if we discover some edge case that requires it.
2195 #
2196 # TODO(dholbert): Remove this pref after the 'false' default-value has
2197 # successfully shipped for a release or two.
2198 - name: content.cors.use_triggering_principal
2199 type: bool
2200 value: false
2201 mirror: always
2202
2203 # Back off timer notification after count.
2204 # -1 means never.
2205 - name: content.notify.backoffcount
2206 type: int32_t
2207 value: -1
2208 mirror: always
2209
2210 # Notification interval in microseconds.
2211 # The notification interval has a dramatic effect on how long it takes to
2212 # initially display content for slow connections. The current value
2213 # provides good incremental display of content without causing an increase
2214 # in page load time. If this value is set below 1/10 of a second it starts
2215 # to impact page load performance.
2216 # See bugzilla bug 72138 for more info.
2217 - name: content.notify.interval
2218 type: int32_t
2219 value: 120000
2220 mirror: always
2221
2222 # Do we notify based on time?
2223 - name: content.notify.ontimer
2224 type: bool
2225 value: true
2226 mirror: always
2227
2228 # How many times to deflect in interactive mode.
2229 - name: content.sink.interactive_deflect_count
2230 type: int32_t
2231 value: 0
2232 mirror: always
2233
2234 # How many times to deflect in perf mode.
2235 - name: content.sink.perf_deflect_count
2236 type: int32_t
2237 value: 200
2238 mirror: always
2239
2240 # Parse mode for handling pending events.
2241 # 0 = don't check for pending events
2242 # 1 = don't deflect if there are pending events
2243 # 2 = bail if there are pending events
2244 - name: content.sink.pending_event_mode
2245 type: int32_t
2246 #ifdef XP_WIN
2247 value: 1
2248 #else
2249 value: 0
2250 #endif
2251 mirror: always
2252
2253 # How often to probe for pending events. 1 = every token.
2254 - name: content.sink.event_probe_rate
2255 type: int32_t
2256 value: 1
2257 mirror: always
2258
2259 # How long to stay off the event loop in interactive mode (microseconds).
2260 - name: content.sink.interactive_parse_time
2261 type: int32_t
2262 value: 3000
2263 mirror: always
2264
2265 # How long to stay off the event loop in perf mode.
2266 - name: content.sink.perf_parse_time
2267 type: int32_t
2268 value: 30000
2269 mirror: always
2270
2271 # How long to be in interactive mode after an event.
2272 - name: content.sink.interactive_time
2273 type: uint32_t
2274 value: 750000
2275 mirror: always
2276
2277 # How long to stay in perf mode after initial loading.
2278 - name: content.sink.initial_perf_time
2279 type: uint32_t
2280 value: 2000000
2281 mirror: always
2282
2283 # Should we switch between perf-mode and interactive-mode?
2284 # 0 = Switch
2285 # 1 = Interactive mode
2286 # 2 = Perf mode
2287 - name: content.sink.enable_perf_mode
2288 type: int32_t
2289 value: 0
2290 mirror: always
2291
2292 #---------------------------------------------------------------------------
2293 # Prefs starting with "converter."
2294 #---------------------------------------------------------------------------
2295
2296 # Whether we include ruby annotation in the text despite whether it
2297 # is requested. This was true because we didn't explicitly strip out
2298 # annotations. Set false by default to provide a better behavior, but
2299 # we want to be able to pref-off it if user doesn't like it.
2300 - name: converter.html2txt.always_include_ruby
2301 type: bool
2302 value: false
2303 mirror: always
2304
2305 #---------------------------------------------------------------------------
2306 # Prefs starting with "cookiebanners."
2307 #---------------------------------------------------------------------------
2308
2309 # Controls the cookie banner handling mode in normal browsing.
2310 # 0: Disables all cookie banner handling.
2311 # 1: Reject-all if possible, otherwise do nothing.
2312 # 2: Reject-all if possible, otherwise accept-all.
2313 - name: cookiebanners.service.mode
2314 type: uint32_t
2315 value: 0
2316 mirror: always
2317
2318 # When set to true, cookie banners are detected and detection events are
2319 # dispatched, but they will not be handled. Requires the service to be enabled
2320 # for the desired mode via pref cookiebanners.service.mode*
2321 - name: cookiebanners.service.detectOnly
2322 type: bool
2323 value: false
2324 mirror: always
2325
2326 # Controls the cookie banner handling mode in private browsing. Same mode
2327 # options as the normal browsing pref above.
2328 - name: cookiebanners.service.mode.privateBrowsing
2329 type: uint32_t
2330 value: 0
2331 mirror: always
2332
2333 # Enables use of global CookieBannerRules, which apply to all sites. This is
2334 # used for click rules that can handle common Consent Management Providers
2335 # (CMP).
2336 # Enabling this (when the cookie handling feature is enabled) may negatively
2337 # impact site performance since it requires us to run rule-defined query
2338 # selectors for every page.
2339 - name: cookiebanners.service.enableGlobalRules
2340 type: bool
2341 value: true
2342 mirror: always
2343
2344 # Whether global rules are allowed to run in sub-frames. Running query selectors
2345 # in every sub-frame may negatively impact performance, but is required for some
2346 # CMPs.
2347 - name: cookiebanners.service.enableGlobalRules.subFrames
2348 type: bool
2349 value: true
2350 mirror: always
2351
2352 # Enables the cookie banner cookie injector. The cookie banner cookie injector
2353 # depends on the `cookiebanners.service.mode` pref above.
2354 - name: cookiebanners.cookieInjector.enabled
2355 type: bool
2356 value: true
2357 mirror: always
2358
2359 # By default, how many seconds in the future cookies should expire after they
2360 # have been injected. Defaults to 12 months. Individual cookie rules may
2361 # override this.
2362 - name: cookiebanners.cookieInjector.defaultExpiryRelative
2363 type: uint32_t
2364 value: 31536000
2365 mirror: always
2366
2367 # How many times per site and site load to check for cookie banners after which
2368 # the mechanism is considered on cooldown for the site in the current browsing
2369 # session. If the threshold is set to zero, banner clicking won't be considered
2370 # as being on cooldown regardless of how many times the site is loaded. The
2371 # maximum value for the retry is 255, any value over than that will be capped.
2372 - name: cookiebanners.bannerClicking.maxTriesPerSiteAndSession
2373 type: uint32_t
2374 value: 3
2375 mirror: always
2376
2377 #---------------------------------------------------------------------------
2378 # Prefs starting with "datareporting."
2379 #---------------------------------------------------------------------------
2380
2381 # Do note that the toggle on Fenix and Focus does NOT reflect to this pref.
2382 - name: datareporting.healthreport.uploadEnabled
2383 type: RelaxedAtomicBool
2384 value: false
2385 mirror: always
2386 rust: true
2387
2388 #---------------------------------------------------------------------------
2389 # Prefs starting with "device."
2390 #---------------------------------------------------------------------------
2391
2392 # Is support for the device sensors API enabled?
2393 - name: device.sensors.enabled
2394 type: bool
2395 value: true
2396 mirror: always
2397
2398 # KaiOS-only, see https://bugzilla.mozilla.org/show_bug.cgi?id=1699707#c10
2399 - name: device.sensors.ambientLight.enabled
2400 type: bool
2401 value: false
2402 mirror: always
2403
2404 - name: device.sensors.motion.enabled
2405 type: bool
2406 value: true
2407 mirror: always
2408
2409 - name: device.sensors.orientation.enabled
2410 type: bool
2411 value: true
2412 mirror: always
2413
2414 # KaiOS-only, see https://bugzilla.mozilla.org/show_bug.cgi?id=1699707#c10
2415 - name: device.sensors.proximity.enabled
2416 type: bool
2417 value: false
2418 mirror: always
2419
2420 - name: device.sensors.test.events
2421 type: bool
2422 value: false
2423 mirror: always
2424
2425 #---------------------------------------------------------------------------
2426 # Prefs starting with "devtools."
2427 #---------------------------------------------------------------------------
2428
2429 - name: devtools.console.stdout.chrome
2430 type: RelaxedAtomicBool
2431 value: @IS_NOT_MOZILLA_OFFICIAL@
2432 mirror: always
2433
2434 - name: devtools.console.stdout.content
2435 type: RelaxedAtomicBool
2436 value: false
2437 mirror: always
2438
2439 #---------------------------------------------------------------------------
2440 # Prefs starting with "docshell."
2441 #---------------------------------------------------------------------------
2442
2443 # Used to indicate whether session history listeners should be notified
2444 # about content viewer eviction. Used only for testing.
2445 - name: docshell.shistory.testing.bfevict
2446 type: bool
2447 value: false
2448 mirror: always
2449
2450 # If true, pages with an opener won't be bfcached.
2451 - name: docshell.shistory.bfcache.require_no_opener
2452 type: bool
2453 value: @IS_ANDROID@
2454 mirror: always
2455
2456 # If true, page with beforeunload or unload event listeners can be bfcached.
2457 - name: docshell.shistory.bfcache.allow_unload_listeners
2458 type: bool
2459 value: @IS_ANDROID@
2460 mirror: always
2461
2462 # If true, page with beforeunload event listeners can be bfcached.
2463 # This only works when sessionHistoryInParent is enabled.
2464 - name: docshell.shistory.bfcache.ship_allow_beforeunload_listeners
2465 type: bool
2466 value: true
2467 mirror: always
2468
2469 - name: docshell.shistory.sameDocumentNavigationOverridesLoadType
2470 type: bool
2471 value: @IS_NOT_NIGHTLY_BUILD@
2472 mirror: always
2473
2474 - name: docshell.shistory.sameDocumentNavigationOverridesLoadType.forceDisable
2475 type: String
2476 value: ""
2477 mirror: never
2478
2479 #---------------------------------------------------------------------------
2480 # Prefs starting with "dom."
2481 #---------------------------------------------------------------------------
2482
2483 # Allow cut/copy
2484 - name: dom.allow_cut_copy
2485 type: bool
2486 value: true
2487 mirror: always
2488
2489 # Checks if offscreen animation throttling is enabled.
2490 - name: dom.animations.offscreen-throttling
2491 type: bool
2492 value: true
2493 mirror: always
2494
2495 # Should CommitStyles use the end-point inclusive timing?
2496 - name: dom.animations.commit-styles-endpoint-inclusive
2497 type: bool
2498 value: @IS_NIGHTLY_BUILD@
2499 mirror: always
2500
2501 # Is support for Navigator.getBattery enabled?
2502 - name: dom.battery.enabled
2503 type: bool
2504 value: true
2505 mirror: always
2506
2507 # Block multiple external protocol URLs in iframes per single event.
2508 - name: dom.block_external_protocol_in_iframes
2509 type: bool
2510 value: true
2511 mirror: always
2512
2513 # Block sandboxed BrowsingContexts from navigating to external protocols.
2514 - name: dom.block_external_protocol_navigation_from_sandbox
2515 type: bool
2516 value: true
2517 mirror: always
2518
2519 # Block Insecure downloads from Secure Origins
2520 - name: dom.block_download_insecure
2521 type: bool
2522 value: true
2523 mirror: always
2524
2525 # The maximum number of popup that is allowed to be opened. Set to -1 for no
2526 # limit.
2527 - name: dom.popup_maximum
2528 type: int32_t
2529 value: -1
2530 mirror: always
2531
2532 # Enable CacheAPI in private browsing mode with encryption
2533 - name: dom.cache.privateBrowsing.enabled
2534 type: RelaxedAtomicBool
2535 value: true
2536 mirror: always
2537
2538 # Exposes window.caches and skips SecureContext check.
2539 # dom.serviceWorkers.testing.enabled also includes the same effect.
2540 - name: dom.caches.testing.enabled
2541 type: RelaxedAtomicBool
2542 value: false
2543 mirror: always
2544
2545 # A pref that is used to slow down database initialization for testing purposes.
2546 - name: dom.cache.databaseInitialization.pauseOnIOThreadMs
2547 type: RelaxedAtomicUint32
2548 value: 0
2549 mirror: always
2550
2551 # Disable capture attribute for input elements; only supported on GeckoView.
2552 - name: dom.capture.enabled
2553 type: bool
2554 value: false
2555 mirror: always
2556
2557 # HTML specification says the level should be 5
2558 # https://html.spec.whatwg.org/#timer-initialisation-steps
2559 - name: dom.clamp.timeout.nesting.level
2560 type: RelaxedAtomicUint32
2561 value: 5
2562 mirror: always
2563
2564 # Skip the security checks for document.cookie.
2565 - name: dom.cookie.testing.enabled
2566 type: RelaxedAtomicBool
2567 value: false
2568 mirror: always
2569
2570 # https://whatpr.org/html/10168/interaction.html#closewatcher
2571 - name: dom.closewatcher.enabled
2572 type: bool
2573 #if defined(ANDROID)
2574 value: false
2575 #else
2576 value: @IS_NIGHTLY_BUILD@
2577 #endif
2578 mirror: always
2579
2580 # https://github.com/whatwg/html/pull/10737
2581 - name: dom.dialog.light-dismiss.enabled
2582 type: bool
2583 value: @IS_NIGHTLY_BUILD@
2584 mirror: always
2585
2586 # Disable custom highlight API; implementation pending.
2587 - name: dom.customHighlightAPI.enabled
2588 type: RelaxedAtomicBool
2589 value: true
2590 mirror: always
2591 rust: true
2592
2593 # Allow control characters appear in composition string.
2594 # When this is false, control characters except
2595 # CHARACTER TABULATION (horizontal tab) are removed from
2596 # both composition string and data attribute of compositionupdate
2597 # and compositionend events.
2598 - name: dom.compositionevent.allow_control_characters
2599 type: bool
2600 value: false
2601 mirror: always
2602
2603 # Compression Streams (zstd) (CompressionStream/DecompressionStream)
2604 # Whether or not "zstd" is a supported format for these streams.
2605 - name: dom.compression_streams.zstd.enabled
2606 type: RelaxedAtomicBool
2607 value: false
2608 mirror: always
2609
2610 # Disable cookie-store API
2611 - name: dom.cookieStore.enabled
2612 type: RelaxedAtomicBool
2613 value: true
2614 mirror: always
2615
2616 # Disable cookie-store manager API
2617 - name: dom.cookieStore.manager.enabled
2618 type: RelaxedAtomicBool
2619 value: true
2620 mirror: always
2621
2622 # Disable extra cookie-store properties
2623 - name: dom.cookieStore.extra.enabled
2624 type: RelaxedAtomicBool
2625 value: @IS_NIGHTLY_BUILD@
2626 mirror: always
2627
2628 # Is support for CSSPseudoElement enabled?
2629 - name: dom.css_pseudo_element.enabled
2630 type: bool
2631 value: false
2632 mirror: always
2633
2634 # After how many seconds we allow external protocol URLs in iframe when not in
2635 # single events
2636 - name: dom.delay.block_external_protocol_in_iframes
2637 type: uint32_t
2638 value: 10 # in seconds
2639 mirror: always
2640
2641 # Whether the above pref has any effect at all.
2642 # Make sure cases like bug 1795380 work before trying to turn this off. See
2643 # bug 1680721 for some other context that might be relevant.
2644 - name: dom.delay.block_external_protocol_in_iframes.enabled
2645 type: bool
2646 value: true
2647 mirror: always
2648
2649 - name: dom.details_group.enabled
2650 type: bool
2651 value: true
2652 mirror: always
2653
2654 # Only propagate the open window click permission if the setTimeout() is equal
2655 # to or less than this value.
2656 - name: dom.disable_open_click_delay
2657 type: int32_t
2658 value: 1000
2659 mirror: always
2660
2661 - name: dom.disable_open_during_load
2662 type: bool
2663 value: false
2664 mirror: always
2665
2666 - name: dom.disable_beforeunload
2667 type: bool
2668 value: false
2669 mirror: always
2670
2671 - name: dom.require_user_interaction_for_beforeunload
2672 type: bool
2673 value: true
2674 mirror: always
2675
2676 # Enable/disable Gecko specific edit commands
2677 - name: dom.document.edit_command.contentReadOnly.enabled
2678 type: bool
2679 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
2680 mirror: always
2681
2682 - name: dom.document.edit_command.insertBrOnReturn.enabled
2683 type: bool
2684 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
2685 mirror: always
2686
2687 # Only intended for fuzzing purposes, this will break mozPrintCallback, etc.
2688 - name: dom.window_print.fuzzing.block_while_printing
2689 type: bool
2690 value: false
2691 mirror: always
2692
2693 # HTMLDialogElement.prototype.requestClose
2694 # See https://html.spec.whatwg.org/#dom-dialog-requestclose
2695 - name: dom.element.dialog.request_close.enabled
2696 type: bool
2697 value: true
2698 mirror: always
2699
2700 - name: dom.element.transform-getters.enabled
2701 type: bool
2702 value: false
2703 mirror: always
2704
2705 # Whether the blocking attribute implementation is enabled,
2706 # see https://html.spec.whatwg.org/#blocking-attributes
2707 - name: dom.element.blocking.enabled
2708 type: RelaxedAtomicBool
2709 value: false
2710 mirror: always
2711
2712 # Whether the invoketarget attribute implementation is enabled
2713 - name: dom.element.invokers.enabled
2714 type: bool
2715 value: false
2716 mirror: always
2717
2718 - name: dom.mouse_capture.enabled
2719 type: bool
2720 value: true
2721 mirror: always
2722
2723 # Is support for Performance.mozMemory enabled?
2724 - name: dom.enable_memory_stats
2725 type: bool
2726 value: false
2727 mirror: always
2728
2729 # Enable Performance API
2730 # Whether nonzero values can be returned from performance.timing.*
2731 - name: dom.enable_performance
2732 type: RelaxedAtomicBool
2733 value: true
2734 mirror: always
2735
2736 # Enable Performance Observer API
2737 - name: dom.enable_performance_observer
2738 type: RelaxedAtomicBool
2739 value: true
2740 mirror: always
2741
2742 # Whether resource timing will be gathered and returned by performance.GetEntries*
2743 - name: dom.enable_resource_timing
2744 type: bool
2745 value: true
2746 mirror: always
2747
2748 # Whether event timing will be gathered and returned by performance observer*
2749 - name: dom.enable_event_timing
2750 type: RelaxedAtomicBool
2751 value: true
2752 mirror: always
2753
2754 # Whether the LargestContentfulPaint API will be gathered and returned by performance observer*
2755 - name: dom.enable_largest_contentful_paint
2756 type: RelaxedAtomicBool
2757 value: true
2758 mirror: always
2759
2760 # Whether performance.GetEntries* will contain an entry for the active document
2761 - name: dom.enable_performance_navigation_timing
2762 type: bool
2763 value: true
2764 mirror: always
2765
2766 # Whether the scheduler interface will be exposed
2767 - name: dom.enable_web_task_scheduling
2768 type: RelaxedAtomicBool
2769 value: @IS_NIGHTLY_BUILD@
2770 mirror: always
2771
2772 # If this is true, it's allowed to fire "cut", "copy" and "paste" events.
2773 # Additionally, "input" events may expose clipboard content when inputType
2774 # is "insertFromPaste" or something.
2775 - name: dom.event.clipboardevents.enabled
2776 type: bool
2777 value: true
2778 mirror: always
2779
2780 # Whether Shift+Right click force-opens the context menu
2781 - name: dom.event.contextmenu.shift_suppresses_event
2782 type: bool
2783 value: true
2784 mirror: always
2785
2786 - name: dom.event.dragexit.enabled
2787 type: bool
2788 value: @IS_NOT_NIGHTLY_BUILD@
2789 mirror: always
2790
2791 # If this pref is set to true, typing a surrogate pair causes one `keypress`
2792 # event whose `charCode` stores the unicode code point over 0xFFFF. This is
2793 # compatible with Safari and Chrome in non-Windows platforms.
2794 # Otherwise, typing a surrogate pair causes two `keypress` events. This is
2795 # compatible with legacy web apps which does
2796 # `String.fromCharCode(event.charCode)`.
2797 - name: dom.event.keypress.dispatch_once_per_surrogate_pair
2798 type: bool
2799 value: false
2800 mirror: always
2801
2802 # This is meaningful only when `dispatch_once_per_surrogate_pair` is false.
2803 # If this pref is set to true, `.key` of the first `keypress` is set to the
2804 # high-surrogate and `.key` of the other is set to the low-surrogate.
2805 # Therefore, setting this exposing ill-formed UTF-16 string with `.key`.
2806 # (And also `InputEvent.data` if pressed in an editable element.)
2807 # Otherwise, `.key` of the first `keypress` is set to the surrogate pair, and
2808 # `.key` of the second `keypress` is set to the empty string.
2809 - name: dom.event.keypress.key.allow_lone_surrogate
2810 type: bool
2811 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
2812 mirror: always
2813
2814 # Make EventStateManager restore the last "mouseover" target when it's
2815 # reconnected immediately. The behavior is similar to Safari and old Chrome.
2816 - name: dom.event.mouse.boundary.restore_last_over_target_from_temporary_removal
2817 type: bool
2818 value: false
2819 mirror: always
2820
2821 # Whether the result of screenX, screenY, clientX, clientY, offsetX, offsetY,
2822 # x and y of trusted MouseEvent and subclasses may be fractional values.
2823 # Enabling this may cause backward compatibility issues.
2824 # Note that this pref is referred only when
2825 # `dom.event.pointer.fractional_coordinates.enabled` is `true`.
2826 - name: dom.event.mouse.fractional_coordinates.trusted.enabled
2827 type: bool
2828 value: false
2829 mirror: always
2830
2831 # Whether the result of screenX, screenY, clientX, clientY, offsetX, offsetY,
2832 # x and y of untrusted MouseEvent and subclasses may be fractional values.
2833 # I.e., this allows web apps to use fractional values with their own DOM events
2834 # which have MouseEvent interface. However, this might cause backward
2835 # compatibility issues if web apps initializes untrusted events with quotients.
2836 # Note that this pref is referred only when
2837 # `dom.event.pointer.fractional_coordinates.enabled` is `true`.
2838 - name: dom.event.mouse.fractional_coordinates.untrusted.enabled
2839 type: bool
2840 value: false
2841 mirror: always
2842
2843 # Whether pointer boundary events should be dispatched after the element is
2844 # changed by a layout change or something without pointer move.
2845 - name: dom.event.pointer.boundary.dispatch_when_layout_change
2846 type: bool
2847 value: true
2848 mirror: always
2849
2850 # Whether the result of screenX, screenY, clientX, clientY, offsetX, offsetY,
2851 # x and y of PointerEvent may be fractional values (except `click`, `auxclick`
2852 # and `contextmenu`)
2853 - name: dom.event.pointer.fractional_coordinates.enabled
2854 type: bool
2855 value: true
2856 mirror: always
2857
2858 # Whether pointerrawupdate event is enabled or disabled.
2859 - name: dom.event.pointer.rawupdate.enabled
2860 type: bool
2861 value: true
2862 mirror: always
2863
2864 # Whether wheel event target's should be grouped. When enabled, all wheel
2865 # events that occur in a given wheel transaction have the same event target.
2866 - name: dom.event.wheel-event-groups.enabled
2867 type: RelaxedAtomicBool
2868 value: true
2869 mirror: always
2870
2871 # Whether WheelEvent should return pixels instead of lines for
2872 # WheelEvent.deltaX/Y/Z, when deltaMode hasn't been checked.
2873 #
2874 # Other browsers don't use line deltas and websites forget to check for it, see
2875 # bug 1392460.
2876 - name: dom.event.wheel-deltaMode-lines.disabled
2877 type: bool
2878 value: true
2879 mirror: always
2880
2881 # Mostly for debugging. Whether we should do the same as
2882 # dom.event.wheel-deltaMode-lines.disabled, but unconditionally rather than
2883 # only when deltaMode hasn't been checked.
2884 - name: dom.event.wheel-deltaMode-lines.always-disabled
2885 type: bool
2886 value: false
2887 mirror: always
2888
2889 # A blocklist (list of domains) for the
2890 # dom.event.wheel-deltaMode-lines.disabled behavior, in case potential
2891 # unforeseen problems with it arrive.
2892 - name: dom.event.wheel-deltaMode-lines.always-enabled
2893 type: String
2894 value: ""
2895 mirror: never
2896
2897 #if defined(XP_MACOSX)
2898 # Whether to disable treating ctrl click as right click
2899 - name: dom.event.treat_ctrl_click_as_right_click.disabled
2900 type: bool
2901 value: @IS_NIGHTLY_BUILD@
2902 mirror: always
2903 #endif
2904
2905 # Whether .offset{X,Y} for events targeted at SVG nodes returns bounds relative
2906 # to the outer SVG.
2907 - name: dom.events.offset-in-svg-relative-to-svg-root
2908 type: bool
2909 value: true
2910 mirror: always
2911
2912 # Control whether clipboard.read(), clipboard.write() and ClipboardItem are exposed
2913 # to content.
2914 - name: dom.events.asyncClipboard.clipboardItem
2915 type: bool
2916 value: true
2917 mirror: always
2918
2919 # Skips checking permission and user activation when accessing the clipboard.
2920 # Should only be enabled in tests.
2921 # Access with Clipboard::IsTestingPrefEnabled().
2922 - name: dom.events.testing.asyncClipboard
2923 type: bool
2924 value: false
2925 mirror: always
2926 do_not_use_directly: true
2927
2928 # Control whether `navigator.clipboard.readText()` is exposed to content.
2929 - name: dom.events.asyncClipboard.readText
2930 type: bool
2931 value: true
2932 mirror: always
2933 do_not_use_directly: true
2934
2935 # This pref controls whether or not the `protected` dataTransfer state is
2936 # enabled. If the `protected` dataTransfer stae is disabled, then the
2937 # DataTransfer will be read-only whenever it should be protected, and will not
2938 # be disconnected after a drag event is completed.
2939 - name: dom.events.dataTransfer.protected.enabled
2940 type: bool
2941 value: false
2942 mirror: always
2943
2944 # Whether to hide normal files (i.e. non-images) in dataTransfer inside
2945 # the content process.
2946 - name: dom.events.dataTransfer.mozFile.enabled
2947 type: bool
2948 value: true
2949 mirror: always
2950
2951 - name: dom.events.dataTransfer.imageAsFile.enabled
2952 type: bool
2953 value: false
2954 mirror: always
2955
2956 # User interaction timer interval, in ms
2957 - name: dom.events.user_interaction_interval
2958 type: uint32_t
2959 value: 5000
2960 mirror: always
2961
2962 # Whether to try to compress touchmove events on IPC layer.
2963 - name: dom.events.compress.touchmove
2964 type: bool
2965 value: true
2966 mirror: always
2967
2968 # In addition to the above IPC layer compresison, allow touchmove
2969 # events to be further coalesced in the child side after they
2970 # are sent.
2971 - name: dom.events.coalesce.touchmove
2972 type: bool
2973 value: true
2974 mirror: always
2975
2976 # Allow mousemove events to be coalesced in the child side after they are sent.
2977 - name: dom.events.coalesce.mousemove
2978 type: bool
2979 value: true
2980 mirror: always
2981
2982 # Expose Window.TextEvent and make the builtin editors dispatch `textInput`
2983 # event as a default action of `beforeinput`.
2984 - name: dom.events.textevent.enabled
2985 type: bool
2986 value: true
2987 mirror: always
2988
2989 # Whether to dispatch `beforescriptexecute` and `afterscriptexecute` event.
2990 - name: dom.events.script_execute.enabled
2991 type: bool
2992 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
2993 mirror: always
2994
2995 # Whether to expose test interfaces of various sorts
2996 - name: dom.expose_test_interfaces
2997 type: bool
2998 value: false
2999 mirror: always
3000
3001 - name: dom.fetchKeepalive.enabled
3002 type: RelaxedAtomicBool
3003 value: true
3004 mirror: always
3005
3006 # The maximum number of pending fetch keepalive requests per browser instance
3007 - name: dom.fetchKeepalive.total_request_limit
3008 type: RelaxedAtomicUint32
3009 value: 2048
3010 mirror: always
3011
3012 # The maximum number of pending fetch keepalive requests per origin
3013 - name: dom.fetchKeepalive.request_limit_per_origin
3014 type: RelaxedAtomicUint32
3015 value: 256
3016 mirror: always
3017
3018 - name: dom.fetchObserver.enabled
3019 type: RelaxedAtomicBool
3020 value: false
3021 mirror: always
3022
3023 # Whether to set the incremental flag on the top level document's
3024 # priority header
3025 - name: dom.document_priority.incremental
3026 type: RelaxedAtomicBool
3027 value: true
3028 mirror: always
3029
3030 # Allow the content process to create a File from a path. This is allowed just
3031 # on parent process, on 'file' Content process, or for testing.
3032 - name: dom.file.createInChild
3033 type: RelaxedAtomicBool
3034 value: false
3035 mirror: always
3036
3037 # Support @autocomplete values for form autofill feature.
3038 - name: dom.forms.autocomplete.formautofill
3039 type: bool
3040 value: false
3041 mirror: always
3042
3043 # Is support for HTMLElement.autocorrect enabled?
3044 - name: dom.forms.autocorrect
3045 type: bool
3046 value: true
3047 mirror: always
3048
3049 # Only trusted submit event could trigger form submission.
3050 - name: dom.forms.submit.trusted_event_only
3051 type: bool
3052 value: false
3053 mirror: always
3054
3055 # This pref just controls whether we format the number with grouping separator
3056 # characters when the internal value is set or updated. It does not stop the
3057 # user from typing in a number and using grouping separators.
3058 - name: dom.forms.number.grouping
3059 type: bool
3060 value: false
3061 mirror: always
3062
3063 # The interval in milliseconds between two Escape key events where the second
3064 # key event will exit fullscreen, even if it is consumed.
3065 - name: dom.fullscreen.force_exit_on_multiple_escape_interval
3066 type: uint32_t
3067 value: 500
3068 mirror: always
3069
3070 # Whether the Gamepad API is enabled
3071 - name: dom.gamepad.enabled
3072 type: bool
3073 value: true
3074 mirror: always
3075
3076 # Is Gamepad Extension API enabled?
3077 - name: dom.gamepad.extensions.enabled
3078 type: bool
3079 value: true
3080 mirror: always
3081
3082 # Is LightIndicator API enabled in Gamepad Extension API?
3083 - name: dom.gamepad.extensions.lightindicator
3084 type: bool
3085 value: false
3086 mirror: always
3087
3088 # Is MultiTouch API enabled in Gamepad Extension API?
3089 - name: dom.gamepad.extensions.multitouch
3090 type: bool
3091 value: false
3092 mirror: always
3093
3094 # Is Gamepad vibrate haptic feedback function enabled?
3095 - name: dom.gamepad.haptic_feedback.enabled
3096 type: bool
3097 value: true
3098 mirror: always
3099
3100 - name: dom.gamepad.non_standard_events.enabled
3101 type: bool
3102 value: @IS_NOT_RELEASE_OR_BETA@
3103 mirror: always
3104
3105 - name: dom.gamepad.test.enabled
3106 type: RelaxedAtomicBool
3107 value: false
3108 mirror: always
3109
3110 # W3C draft ImageCapture API
3111 - name: dom.imagecapture.enabled
3112 type: bool
3113 value: false
3114 mirror: always
3115
3116 # The root margin for image lazy loading, defined as four (value, percentage)
3117 # pairs.
3118 - name: dom.image-lazy-loading.root-margin.top
3119 type: float
3120 value: 600
3121 mirror: always
3122
3123 - name: dom.image-lazy-loading.root-margin.top.percentage
3124 type: bool
3125 value: false
3126 mirror: always
3127
3128 - name: dom.image-lazy-loading.root-margin.bottom
3129 type: float
3130 value: 600
3131 mirror: always
3132
3133 - name: dom.image-lazy-loading.root-margin.bottom.percentage
3134 type: bool
3135 value: false
3136 mirror: always
3137
3138 - name: dom.image-lazy-loading.root-margin.left
3139 type: float
3140 value: 600
3141 mirror: always
3142
3143 - name: dom.image-lazy-loading.root-margin.left.percentage
3144 type: bool
3145 value: false
3146 mirror: always
3147
3148 - name: dom.image-lazy-loading.root-margin.right
3149 type: float
3150 value: 600
3151 mirror: always
3152
3153 - name: dom.image-lazy-loading.root-margin.right.percentage
3154 type: bool
3155 value: false
3156 mirror: always
3157
3158 # Enable indexedDB in private browsing mode with encryption
3159 - name: dom.indexedDB.privateBrowsing.enabled
3160 type: RelaxedAtomicBool
3161 value: true
3162 mirror: always
3163
3164 # A pref that is used to slow down connection idle maintenance for testing
3165 # purposes.
3166 - name: dom.indexedDB.connectionIdleMaintenance.pauseOnConnectionThreadMs
3167 type: RelaxedAtomicUint32
3168 value: 0
3169 mirror: always
3170
3171 # Whether or not indexedDB test mode is enabled.
3172 - name: dom.indexedDB.testing
3173 type: RelaxedAtomicBool
3174 value: false
3175 mirror: always
3176
3177 # Whether or not system IndexedDB access from a content process is allowed.
3178 - name: dom.indexedDB.testing.allowContentSystem
3179 type: RelaxedAtomicBool
3180 value: false
3181 mirror: always
3182
3183 # Whether or not indexedDB experimental features are enabled.
3184 - name: dom.indexedDB.experimental
3185 type: RelaxedAtomicBool
3186 value: false
3187 mirror: always
3188
3189 # Whether or not indexedDB preprocessing is enabled.
3190 - name: dom.indexedDB.preprocessing
3191 type: RelaxedAtomicBool
3192 value: false
3193 mirror: always
3194
3195 # A pref that is used to slow down database initialization for testing purposes.
3196 - name: dom.indexedDB.databaseInitialization.pauseOnIOThreadMs
3197 type: RelaxedAtomicUint32
3198 value: 0
3199 mirror: always
3200
3201 # How innerWidth / innerHeight return rounded or fractional sizes.
3202 #
3203 # 0 or others: Do not round at all.
3204 # 1: Round.
3205 # 2: Truncate.
3206 #
3207 # NOTE(emilio): Fractional sizes are not web-compatible, see the regressions
3208 # from bug 1676843, but we want to expose the fractional sizes (probably in
3209 # another API) one way or another, see [1], so we're keeping the code for the
3210 # time being.
3211 #
3212 # [1]: https://github.com/w3c/csswg-drafts/issues/5260
3213 - name: dom.innerSize.rounding
3214 type: uint32_t
3215 value: 1
3216 mirror: always
3217
3218 # Whether we conform to Input Events Level 1 or Input Events Level 2.
3219 # true: conforming to Level 1
3220 # false: conforming to Level 2
3221 - name: dom.input_events.conform_to_level_1
3222 type: bool
3223 value: true
3224 mirror: always
3225
3226 # Whether we allow BrowsingContextGroup to suspend input events
3227 - name: dom.input_events.canSuspendInBCG.enabled
3228 type: bool
3229 value: false
3230 mirror: always
3231
3232 # Whether dispatch a redundant `input` event before `compositionend`.
3233 # Its `.isComposing` is `true`, but it might be useful to store the latest
3234 # composition string before `compositionend` event listeners (although,
3235 # `.data` of `compositionend` event contains the value.
3236 - name: dom.input_events.dispatch_before_compositionend
3237 type: bool
3238 value: true
3239 mirror: always
3240
3241 # The minimum number of ticks after page navigation
3242 # that need to occur before user input events are allowed to be handled.
3243 - name: dom.input_events.security.minNumTicks
3244 type: uint32_t
3245 value: 3
3246 mirror: always
3247
3248 # The minimum elapsed time (in milliseconds) after page navigation
3249 # for user input events are allowed to be handled.
3250 - name: dom.input_events.security.minTimeElapsedInMS
3251 type: uint32_t
3252 value: 100
3253 mirror: always
3254
3255 # By default user input handling delay is disabled (mostly) for testing ,
3256 # this is used for forcefully enable it for certain tests.
3257 - name: dom.input_events.security.isUserInputHandlingDelayTest
3258 type: bool
3259 value: false
3260 mirror: always
3261
3262 # The maximum time (milliseconds) we reserve for handling input events in each
3263 # frame.
3264 - name: dom.input_event_queue.duration.max
3265 type: uint32_t
3266 value: 8
3267 mirror: always
3268
3269 - name: dom.interactive_widget_default_resizes_visual
3270 type: RelaxedAtomicBool
3271 value: true
3272 mirror: always
3273
3274 # How often to check for CPOW timeouts (ms). CPOWs are only timed
3275 # out by the hang monitor.
3276 - name: dom.ipc.cpow.timeout
3277 type: uint32_t
3278 value: 500
3279 mirror: always
3280
3281 #ifdef MOZ_ENABLE_FORKSERVER
3282 - name: dom.ipc.forkserver.enable
3283 type: bool
3284 #if defined(MOZ_CODE_COVERAGE) || defined(MOZ_ASAN) || defined(MOZ_TSAN) || defined(MOZ_MSAN) || defined(MOZ_UBSAN)
3285 value: false
3286 #else
3287 value: @IS_NIGHTLY_BUILD@
3288 #endif
3289 mirror: once
3290 #endif
3291
3292 #ifdef MOZ_WIDGET_GTK
3293 #
3294 # Avoid the use of GTK in content processes if possible, by running
3295 # them in headless mode, to conserve resources (e.g., connections to
3296 # the X server). See the usage in `ContentParent.cpp` for the full
3297 # definition of "if possible".
3298 #
3299 # This does not affect sandbox policies; content processes may still
3300 # dynamically connect to the display server for, e.g., WebGL.
3301 - name: dom.ipc.avoid-gtk
3302 type: bool
3303 value: true
3304 mirror: always
3305 #endif
3306
3307 # Whether or not to collect a paired minidump when force-killing a
3308 # content process.
3309 - name: dom.ipc.tabs.createKillHardCrashReports
3310 type: bool
3311 value: @IS_NOT_RELEASE_OR_BETA@
3312 mirror: once
3313
3314 # Enable e10s hang monitoring (slow script checking and plugin hang detection).
3315 - name: dom.ipc.processHangMonitor
3316 type: bool
3317 value: true
3318 mirror: once
3319
3320 # Whether we report such process hangs
3321 - name: dom.ipc.reportProcessHangs
3322 type: RelaxedAtomicBool
3323 # Don't report hangs in DEBUG builds. They're too slow and often a
3324 # debugger is attached.
3325 #ifdef DEBUG
3326 value: false
3327 #else
3328 value: true
3329 #endif
3330 mirror: always
3331
3332 # If true, disables non-required re-use of content processes. This can be used
3333 # in tests to force a new process to be used whenever a process selection
3334 # decision is made. Setting this pref can cause dom.ipc.processCount limits to
3335 # be exceeded.
3336 # WARNING: This will exceed even process limits for the extension or
3337 # privilegedAbout remote types, which may lead to unexpected breakage!
3338 # Should only be used for testing.
3339 - name: dom.ipc.disableContentProcessReuse
3340 type: bool
3341 value: false
3342 mirror: always
3343
3344 # If non-zero, a grace delay (in milliseconds) during which unused content
3345 # processes are kept available for re-use to avoid unnecessary process churn.
3346 - name: dom.ipc.processReuse.unusedGraceMs
3347 type: uint32_t
3348 value: 0
3349 mirror: always
3350
3351 # Process launch delay (in milliseconds).
3352 - name: dom.ipc.processPrelaunch.delayMs
3353 type: uint32_t
3354 # This number is fairly arbitrary ... the intention is to put off
3355 # launching another app process until the last one has finished
3356 # loading its content, to reduce CPU/memory/IO contention.
3357 value: 1000
3358 mirror: always
3359
3360 - name: dom.ipc.processPrelaunch.startupDelayMs
3361 type: uint32_t
3362 # delay starting content processes for a short time after browser start
3363 # to provide time for the UI to come up
3364 value: 1000
3365 mirror: always
3366
3367 # Process preallocation cache
3368 # Only used in fission; in e10s we use 1 always
3369 - name: dom.ipc.processPrelaunch.fission.number
3370 type: uint32_t
3371 value: 3
3372 mirror: always
3373
3374 # Limit preallocated processes below this memory size (in MB)
3375 - name: dom.ipc.processPrelaunch.lowmem_mb
3376 type: uint32_t
3377 value: 4096
3378 mirror: always
3379
3380 - name: dom.ipc.processPriorityManager.enabled
3381 type: bool
3382 value: true
3383 mirror: always
3384
3385 - name: dom.ipc.processPriorityManager.testMode
3386 type: bool
3387 value: false
3388 mirror: always
3389
3390 - name: dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS
3391 type: uint32_t
3392 #if defined(MOZ_WIDGET_ANDROID)
3393 value: 3000
3394 #else
3395 value: 0
3396 #endif
3397 mirror: always
3398
3399 - name: dom.ipc.processPriorityManager.backgroundGracePeriodMS
3400 type: uint32_t
3401 #if defined(MOZ_WIDGET_ANDROID)
3402 value: 3000
3403 #else
3404 value: 0
3405 #endif
3406 mirror: always
3407
3408 #ifdef XP_WIN
3409 - name: dom.ipc.processPriorityManager.backgroundUsesEcoQoS
3410 type: bool
3411 value: false
3412 mirror: always
3413 #endif
3414
3415 # Support for input type=month, type=week. By default, disabled.
3416 - name: dom.forms.datetime.others
3417 type: bool
3418 value: @IS_ANDROID@
3419 mirror: always
3420
3421 - name: dom.forms.always_allow_pointer_events.enabled
3422 type: bool
3423 value: true
3424 mirror: always
3425
3426 # Is support for key events and focus events on disabled elements enabled?
3427 - name: dom.forms.always_allow_key_and_focus_events.enabled
3428 type: bool
3429 value: true
3430 mirror: always
3431
3432 # Whether to disable only the descendants or the parent fieldset element too
3433 # Note that this still allows it to be selected by `:disable`.
3434 - name: dom.forms.fieldset_disable_only_descendants.enabled
3435 type: bool
3436 value: true
3437 mirror: always
3438
3439 # Does mousewheel-scrolling over a focused <input type="number"> or
3440 # <input type="range"> field cause the value to increase/decrease (rather
3441 # than scrolling the page)?
3442 - name: dom.input.number_and_range_modified_by_mousewheel
3443 type: RelaxedAtomicBool
3444 value: false
3445 mirror: always
3446
3447 # Whether to allow or disallow web apps to cancel `beforeinput` events caused
3448 # by MozEditableElement#setUserInput() which is used by autocomplete, autofill
3449 # and password manager.
3450 - name: dom.input_event.allow_to_cancel_set_user_input
3451 type: bool
3452 value: false
3453 mirror: always
3454
3455 # How long a content process can take before closing its IPC channel
3456 # after shutdown is initiated. If the process exceeds the timeout,
3457 # we fear the worst and kill it.
3458 - name: dom.ipc.tabs.shutdownTimeoutSecs
3459 type: RelaxedAtomicUint32
3460 #if !defined(DEBUG) && !defined(MOZ_ASAN) && !defined(MOZ_VALGRIND) && !defined(MOZ_TSAN)
3461 value: 20
3462 #else
3463 value: 0
3464 #endif
3465 mirror: always
3466
3467 # Whether a native event loop should be used in the content process.
3468 - name: dom.ipc.useNativeEventProcessing.content
3469 type: RelaxedAtomicBool
3470 #if defined(XP_WIN) || defined(XP_DARWIN)
3471 value: false
3472 #else
3473 value: true
3474 #endif
3475 mirror: always
3476
3477 # If this is true, TextEventDispatcher dispatches keydown and keyup events
3478 # even during composition (keypress events are never fired during composition
3479 # even if this is true).
3480 - name: dom.keyboardevent.dispatch_during_composition
3481 type: bool
3482 value: true
3483 mirror: always
3484
3485 # Enable/disable KeyboardEvent.initKeyEvent function
3486 - name: dom.keyboardevent.init_key_event.enabled
3487 type: bool
3488 value: false
3489 mirror: always
3490
3491 # Enable/disable KeyboardEvent.initKeyEvent function in addons even if it's
3492 # disabled.
3493 - name: dom.keyboardevent.init_key_event.enabled_in_addons
3494 type: bool
3495 value: @IS_NOT_NIGHTLY_BUILD@
3496 mirror: always
3497
3498 # If this is true, keypress events for non-printable keys are dispatched only
3499 # for event listeners of the system event group in web content.
3500 - name: dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content
3501 type: bool
3502 value: true
3503 mirror: always
3504
3505 # If this is true, "keypress" event's keyCode value and charCode value always
3506 # become same if the event is not created/initialized by JS.
3507 - name: dom.keyboardevent.keypress.set_keycode_and_charcode_to_same_value
3508 type: bool
3509 value: true
3510 mirror: always
3511
3512 # Whether "W3C Web Manifest" processing is enabled
3513 - name: dom.manifest.enabled
3514 type: bool
3515 value: true
3516 mirror: always
3517
3518 # Enable mapped array buffer by default.
3519 - name: dom.mapped_arraybuffer.enabled
3520 type: bool
3521 value: true
3522 mirror: always
3523
3524 # Autoplay Policy Detection https://w3c.github.io/autoplay/
3525 - name: dom.media.autoplay-policy-detection.enabled
3526 type: RelaxedAtomicBool
3527 value: true
3528 mirror: always
3529
3530 # WebCodecs API
3531 - name: dom.media.webcodecs.enabled
3532 type: RelaxedAtomicBool
3533 #if defined(MOZ_WIDGET_ANDROID)
3534 value: @IS_NIGHTLY_BUILD@
3535 #else
3536 value: true
3537 #endif
3538 mirror: always
3539
3540 # WebCodecs API - Image decoder
3541 - name: dom.media.webcodecs.image-decoder.enabled
3542 type: RelaxedAtomicBool
3543 value: true
3544 mirror: always
3545
3546 # WebCodecs API - H265
3547 - name: dom.media.webcodecs.h265.enabled
3548 type: RelaxedAtomicBool
3549 value: @IS_NIGHTLY_BUILD@
3550 mirror: always
3551
3552 # Number of seconds of very quiet or silent audio before considering the audio
3553 # inaudible.
3554 - name: dom.media.silence_duration_for_audibility
3555 type: AtomicFloat
3556 value: 2.0f
3557 mirror: always
3558
3559 # Inform mozjemalloc that the foreground content processes can keep more dirty
3560 # pages in memory.
3561 - name: dom.memory.foreground_content_processes_have_larger_page_cache
3562 type: bool
3563 value: true
3564 mirror: always
3565
3566 # 0 no-op
3567 # 1 free dirty mozjemalloc pages
3568 # 2 trigger memory-pressure/heap-minimize
3569 # 3 trigger memory-pressure/low-memory
3570 - name: dom.memory.memory_pressure_on_background
3571 type: uint32_t
3572 value: 0
3573 mirror: always
3574
3575 # Enable meta-viewport support in remote APZ-enabled frames.
3576 - name: dom.meta-viewport.enabled
3577 type: RelaxedAtomicBool
3578 value: false
3579 mirror: always
3580
3581 # Timeout clamp in ms for timeouts we clamp.
3582 - name: dom.min_timeout_value
3583 type: RelaxedAtomicInt32
3584 value: 4
3585 mirror: always
3586
3587 # Timeout clamp in ms for background windows.
3588 - name: dom.min_background_timeout_value
3589 type: RelaxedAtomicInt32
3590 value: 1000
3591 mirror: always
3592
3593 # Timeout clamp in ms for background windows when throttling isn't enabled.
3594 - name: dom.min_background_timeout_value_without_budget_throttling
3595 type: RelaxedAtomicInt32
3596 value: 1000
3597 mirror: always
3598
3599 # Are missing-property use counters for certain DOM attributes enabled?
3600 - name: dom.missing_prop_counters.enabled
3601 type: bool
3602 value: true
3603 mirror: always
3604
3605 # Whether to dispatch mutation events.
3606 - name: dom.mutation_events.enabled
3607 type: bool
3608 value: false
3609 mirror: always
3610
3611 # Limit of location change caused by content scripts in a time span per
3612 # BrowsingContext. This includes calls to History and Location APIs.
3613 - name: dom.navigation.navigationRateLimit.count
3614 type: uint32_t
3615 value: 1000
3616 mirror: always
3617
3618 # Time span in seconds for location change rate limit.
3619 - name: dom.navigation.navigationRateLimit.timespan
3620 type: uint32_t
3621 value: 10
3622 mirror: always
3623
3624 # Whether to allow <object> and <embed> element loads to be retargeted to an
3625 # external application or download.
3626 - name: dom.navigation.object_embed.allow_retargeting
3627 type: bool
3628 value: false
3629 mirror: always
3630
3631 # Whether the navigation API will be exposed.
3632 - name: dom.navigation.webidl.enabled
3633 type: RelaxedAtomicBool
3634 value: false
3635 mirror: always
3636 do_not_use_directly: true
3637
3638 # Network Information API
3639 # This feature is not available on Firefox desktop. It exposes too much
3640 # user information. Let's be consistent and disable it on Android.
3641 # But let's keep it around in case it becomes necessary for webcompat
3642 # reasons
3643 # https://bugzilla.mozilla.org/show_bug.cgi?id=1637922
3644 - name: dom.netinfo.enabled
3645 type: RelaxedAtomicBool
3646 value: false
3647 mirror: always
3648
3649 # Whether we should open noopener links in a new process.
3650 - name: dom.noopener.newprocess.enabled
3651 type: bool
3652 value: true
3653 mirror: always
3654
3655 # Whether the codebase attribute in an <object> is used as the base URI.
3656 - name: dom.object_embed.codebase.enabled
3657 type: bool
3658 value: false
3659 mirror: always
3660
3661 # Whether the type attribute in an <object> is used as a hint for the Content-Type
3662 # of the loading document.
3663 - name: dom.object_embed.type_hint.enabled
3664 type: bool
3665 value: false
3666 mirror: always
3667
3668 # Whether origin trials are enabled.
3669 - name: dom.origin-trials.enabled
3670 type: bool
3671 value: true
3672 mirror: always
3673
3674 # Whether we use the test key to verify tokens.
3675 - name: dom.origin-trials.test-key.enabled
3676 type: bool
3677 value: false
3678 mirror: always
3679
3680 # Origin trial state for "TestTrial".
3681 # 0: normal, 1: always-enabled, 2: always-disabled
3682 - name: dom.origin-trials.test-trial.state
3683 type: RelaxedAtomicInt32
3684 value: 0
3685 mirror: always
3686
3687 # Origin trial state for COEP: Credentialless.
3688 # 0: normal, 1: always-enabled, 2: always-disabled
3689 - name: dom.origin-trials.coep-credentialless.state
3690 type: RelaxedAtomicInt32
3691 value: 0
3692 mirror: always
3693
3694 # Origin trial state for Private Attribution
3695 # 0: normal, 1: always-enabled, 2: always-disabled
3696 - name: dom.origin-trials.private-attribution.state
3697 type: RelaxedAtomicInt32
3698 #ifdef ANDROID
3699 value: 2
3700 #else
3701 value: 0
3702 #endif
3703 mirror: always
3704
3705 # Origin trial state for MLS
3706 # 0: normal, 1: always-enabled, 2: always-disabled
3707 - name: dom.origin-trials.mls.state
3708 type: RelaxedAtomicInt32
3709 value: 0
3710 mirror: always
3711
3712 # User pref to control whether Private Attribution
3713 # information should be collected / submitted.
3714 - name: dom.private-attribution.submission.enabled
3715 type: bool
3716 value: @IS_NOT_ANDROID@
3717 mirror: always
3718
3719 # Is support for Window.paintWorklet enabled?
3720 - name: dom.paintWorklet.enabled
3721 type: bool
3722 value: false
3723 mirror: always
3724
3725 # Enable/disable the PaymentRequest API
3726 - name: dom.payments.request.enabled
3727 type: bool
3728 value: false
3729 mirror: always
3730
3731 # Whether a user gesture is required to call PaymentRequest.prototype.show().
3732 - name: dom.payments.request.user_interaction_required
3733 type: bool
3734 value: true
3735 mirror: always
3736
3737 # Time in milliseconds for PaymentResponse to wait for
3738 # the Web page to call complete().
3739 - name: dom.payments.response.timeout
3740 type: uint32_t
3741 value: 5000
3742 mirror: always
3743
3744 # Enable printing performance marks/measures to log
3745 - name: dom.performance.enable_user_timing_logging
3746 type: RelaxedAtomicBool
3747 value: false
3748 mirror: always
3749
3750 # Enable notification of performance timing
3751 - name: dom.performance.enable_notify_performance_timing
3752 type: bool
3753 value: false
3754 mirror: always
3755
3756 # Is support for PerformanceTiming.timeToContentfulPaint enabled?
3757 - name: dom.performance.time_to_contentful_paint.enabled
3758 type: bool
3759 value: false
3760 mirror: always
3761
3762 # Is support for PerformanceTiming.timeToFirstInteractive enabled?
3763 - name: dom.performance.time_to_first_interactive.enabled
3764 type: bool
3765 value: false
3766 mirror: always
3767
3768 # Is support for PerformanceTiming.timeToNonBlankPaint enabled?
3769 - name: dom.performance.time_to_non_blank_paint.enabled
3770 type: bool
3771 value: false
3772 mirror: always
3773
3774 # Whether the interactionId will be computed and returned by performance observer*
3775 - name: dom.performance.event_timing.enable_interactionid
3776 type: RelaxedAtomicBool
3777 value: @IS_NIGHTLY_BUILD@
3778 mirror: always
3779
3780 # Is support for Element.requestPointerLock enabled?
3781 # This is added for accessibility purpose. When user has no way to exit
3782 # pointer lock (e.g. no keyboard available), they can use this pref to
3783 # disable the Pointer Lock API altogether.
3784 - name: dom.pointer-lock.enabled
3785 type: bool
3786 value: true
3787 mirror: always
3788
3789 # re-SAB: Whether to allow postMessage of a SharedArrayBuffer if various
3790 # preconditions related to COOP and COEP are met
3791 - name: dom.postMessage.sharedArrayBuffer.withCOOP_COEP
3792 type: bool
3793 value: true
3794 mirror: once
3795
3796 # Overridden in all.js on RELEASE_OR_BETA in order to add the locked attribute.
3797 - name: dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled
3798 type: RelaxedAtomicBool
3799 value: false
3800 mirror: always
3801
3802 # Should we speculatively prefetch dns for anchor elements on http documents
3803 - name: dom.prefetch_dns_for_anchor_http_document
3804 type: bool
3805 value: true
3806 mirror: always
3807
3808 # Should we speculatively prefetch dns for anchor elements on https documents
3809 - name: dom.prefetch_dns_for_anchor_https_document
3810 type: bool
3811 value: false
3812 mirror: always
3813
3814 # This currently only affects XHTML. For XUL the cache is always allowed.
3815 - name: dom.prototype_document_cache.enabled
3816 type: bool
3817 value: true
3818 mirror: always
3819
3820 # Push
3821 - name: dom.push.enabled
3822 type: RelaxedAtomicBool
3823 value: true
3824 mirror: always
3825
3826 # Indicate the deprecated aesgcm support in PushManager.supportedContentEncodings.
3827 #
3828 # This does not affect actual aesgcm support, any new and existing subscriptions
3829 # can still use aesgcm regardless of this pref.
3830 - name: dom.push.indicate_aesgcm_support.enabled
3831 type: RelaxedAtomicBool
3832 value: false
3833 mirror: always
3834
3835 # Preference that is primarily used for testing of problematic file paths.
3836 # It can also be used for switching between different storage directories, but
3837 # such feature is not officially supported.
3838 - name: dom.quotaManager.storageName
3839 type: String
3840 value: "storage"
3841 mirror: never
3842
3843 # An upper limit for the "age" of an origin. Any origin which is older than the
3844 # threshold is considered as unaccessed. That doesn't necessarily mean that
3845 # such origins will be immediatelly archived. They will be archived only when
3846 # dom.quotaManager.checkQuotaInfoLoadTime is true and loading of quota info
3847 # takes a long time (dom.quotaManager.longQuotaInfoLoadTimeThresholdMs is used
3848 # to decide what is a long quota info load time).
3849 - name: dom.quotaManager.unaccessedForLongTimeThresholdSec
3850 type: RelaxedAtomicUint32
3851 value: 33696000 # 13 months
3852 mirror: always
3853
3854 # Should we try to load origin information from the cache?
3855 # See bug 1563023 for more details.
3856 - name: dom.quotaManager.loadQuotaFromCache
3857 type: RelaxedAtomicBool
3858 value: true
3859 mirror: always
3860
3861 # Should we check build ID as part of the cache validation?
3862 # When enabled, the cache is invalidated on any upgrade (or downgrade),
3863 # ensuring that changes in how quota usage is calculated can't cause
3864 # inconsistencies at the cost of a slower initialization. Currently, this
3865 # should only be set to false in tests using a packaged profile that inherently
3866 # includes a build id different from the building running the tests. In the
3867 # future this may be set to false if we are confident that we have sufficiently
3868 # thorough schema versioning.
3869 - name: dom.quotaManager.caching.checkBuildId
3870 type: RelaxedAtomicBool
3871 value: true
3872 mirror: always
3873
3874 # Should we check quota info load time and eventually archive some unaccessed
3875 # origins if loading of quota info takes a long time ?
3876 - name: dom.quotaManager.checkQuotaInfoLoadTime
3877 type: RelaxedAtomicBool
3878 value: true
3879 mirror: always
3880
3881 # An upper limit for quota info load time, anything which takes longer than the
3882 # threshold is considered as long quota info load time.
3883 - name: dom.quotaManager.longQuotaInfoLoadTimeThresholdMs
3884 type: RelaxedAtomicUint32
3885 value: 21000 # 21 seconds
3886 mirror: always
3887
3888 # Preference that users can set to override temporary storage smart limit
3889 # calculation.
3890 - name: dom.quotaManager.temporaryStorage.fixedLimit
3891 type: RelaxedAtomicInt32
3892 value: -1
3893 mirror: always
3894
3895 # Controls whether the quota manager updates the last access time for origins
3896 # in temporary storage. When enabled, the access time is updated only when an
3897 # origin is accessed by a quota client for the first time during a session or
3898 # when the last quota client stops accessing the origin. This allows eviction
3899 # based on the LRU policy. When disabled, the access time is stored only once
3900 # when the corresponding origin directory is created for the first time.
3901 #
3902 # This setting is currently intended for manual testing purposes only.
3903 - name: dom.quotaManager.temporaryStorage.updateOriginAccessTime
3904 type: RelaxedAtomicBool
3905 value: true
3906 mirror: always
3907
3908 # Should we do lazy initialization of origins ?
3909 # When enabled, origins for temporary storage are not initialized during
3910 # temporary storage initialization, they are initialized lazily instead.
3911 # If there are other origins in the group, they are initialized all together.
3912 # This feature is currently still in development and experimental, not
3913 # recommended for normal use yet.
3914 #
3915 # Note: If dom.quotaManager.temporaryStorage.incrementalOriginInitialization
3916 # is set to true, this preference will be overridden, and the individual
3917 # setting will no longer take effect, regardless of its value.
3918 - name: dom.quotaManager.temporaryStorage.lazyOriginInitialization
3919 type: RelaxedAtomicBool
3920 value: false
3921 mirror: always
3922 do_not_use_directly: true
3923
3924 # Should we trigger initialization of all temporary origins in the background?
3925 # When enabled, temporary origins collected during temporary storage
3926 # initialization are initialized in the background. The background
3927 # initialization of temporary origins is always done for entire groups of
3928 # origins to preserve consistency of quota checks related to the group limit.
3929 # This feature is currently still in development and experimental, not
3930 # recommended for normal use yet.
3931 #
3932 # Note: If dom.quotaManager.temporaryStorage.incrementalOriginInitialization
3933 # is set to true, this preference will be overridden, and the individual
3934 # setting will no longer take effect, regardless of its value.
3935 - name: dom.quotaManager.temporaryStorage.triggerOriginInitializationInBackground
3936 type: RelaxedAtomicBool
3937 value: false
3938 mirror: always
3939 do_not_use_directly: true
3940
3941 # Should we enable incremental initialization of origins? (also known as
3942 # asynchronous temporary storage initialization)
3943 # When enabled, this preference acts as an override for the following
3944 # preferences:
3945 # - dom.quotaManager.temporaryStorage.lazyOriginInitialization
3946 # - dom.quotaManager.temporaryStorage.triggerOriginInitializationInBackground
3947 #
3948 # Enabling this preference ensures that:
3949 # 1. Origins for temporary storage are not initialized during temporary storage
3950 # initialization but are instead initialized incrementally, either lazily or
3951 # in the background, depending on which occurs first.
3952 # 2. Background initialization of temporary origins is triggered after the
3953 # temporary storage initialization. The process is carried out in steps,
3954 # with each step being responsible for initializing a group of origins.
3955 #
3956 # See also the documentation for those two preferences for more details on
3957 # their individual behaviors.
3958 #
3959 # This feature is currently in development and experimental, not recommended
3960 # for normal use yet.
3961 - name: dom.quotaManager.temporaryStorage.incrementalOriginInitialization
3962 type: RelaxedAtomicBool
3963 value: false
3964 mirror: always
3965 do_not_use_directly: true
3966
3967 # A pref that is used to slow down origin operations for testing purposes.
3968 - name: dom.quotaManager.originOperations.pauseOnIOThreadMs
3969 type: RelaxedAtomicUint32
3970 value: 0
3971 mirror: always
3972
3973 # A pref that is used to slow down storage initialization for testing purposes.
3974 - name: dom.quotaManager.storageInitialization.pauseOnIOThreadMs
3975 type: RelaxedAtomicUint32
3976 value: 0
3977 mirror: always
3978
3979 # A pref that is used to slow down group initialization for testing purposes.
3980 - name: dom.quotaManager.groupInitialization.pauseOnIOThreadMs
3981 type: RelaxedAtomicUint32
3982 value: 0
3983 mirror: always
3984
3985 # A pref that is used to slow down origin initialization for testing purposes.
3986 - name: dom.quotaManager.originInitialization.pauseOnIOThreadMs
3987 type: RelaxedAtomicUint32
3988 value: 0
3989 mirror: always
3990
3991 # A pref that is used to enable testing features.
3992 - name: dom.quotaManager.testing
3993 type: SequentiallyConsistentAtomicBool
3994 value: false
3995 mirror: always
3996
3997 #if defined(XP_WIN)
3998 # Preference that is used to set nsILocalFileWin::useDOSDevicePathSyntax
3999 # attribute for all local file instances created by QuotaManager and its
4000 # clients. The value of this preference is cached so changing the preference
4001 # during runtime has no effect.
4002 # See bug 1626846 for setting this to false by default.
4003 - name: dom.quotaManager.useDOSDevicePathSyntax
4004 type: RelaxedAtomicBool
4005 value: true
4006 mirror: always
4007 do_not_use_directly: true
4008
4009 # Preference that is used to enable the hack for overrriding xFullPathname in
4010 # QuotaVFS.
4011 - name: dom.quotaManager.overrideXFullPathname
4012 type: RelaxedAtomicBool
4013 value: true
4014 mirror: always
4015 #elif defined(XP_UNIX)
4016 # Preference that is used to enable the overriding of Unix xFullPathname
4017 # implementation in QuotaVFS.
4018 - name: dom.quotaManager.overrideXFullPathnameUnix
4019 type: RelaxedAtomicBool
4020 value: true
4021 mirror: always
4022 #endif
4023
4024 # How many times we should retry directory removal or renaming if access was
4025 # denied?
4026 - name: dom.quotaManager.directoryRemovalOrRenaming.maxRetries
4027 type: RelaxedAtomicUint32
4028 #ifdef XP_WIN
4029 value: 10
4030 #else
4031 value: 0
4032 #endif
4033 mirror: always
4034
4035 # How long we should wait between retries (in milliseconds)?
4036 - name: dom.quotaManager.directoryRemovalOrRenaming.delayMs
4037 type: RelaxedAtomicUint32
4038 value: 200
4039 mirror: always
4040
4041 #ifdef MOZ_BACKGROUNDTASKS
4042 # Use a Background Task to delete files at shutdown.
4043 - name: dom.quotaManager.backgroundTask.enabled
4044 type: bool
4045 #ifdef XP_MACOSX
4046 # Needs to figure out how to prevent bug 1827486.
4047 value: false
4048 #else
4049 value: true
4050 #endif
4051 mirror: never
4052 #endif
4053
4054 # A pref that specifies one or more failure categories to trigger artificial
4055 # failures for testing purposes. Multiple categories can be combined using
4056 # bitwise OR to represent various failure points within the code.
4057 - name: dom.quotaManager.artificialFailure.categories
4058 type: RelaxedAtomicUint32
4059 value: 0
4060 mirror: always
4061
4062 # A probability (0-100) used to determine the likelihood of triggering an
4063 # artificial failure for testing purposes. This value is applied when the
4064 # specified failure categories match to decide if the failure should occur.
4065 - name: dom.quotaManager.artificialFailure.probability
4066 type: RelaxedAtomicUint32
4067 value: 0
4068 mirror: always
4069
4070 # An error code used to trigger an artificial failure for testing purposes.
4071 # This code is returned when the specified failure categories match and the
4072 # failure is triggered based on the configured probability.
4073 - name: dom.quotaManager.artificialFailure.errorCode
4074 type: RelaxedAtomicUint32
4075 value: 0
4076 mirror: always
4077
4078 # Use to control to dump CheckedUnsafePtr creation stack and assignment stacks.
4079 - name: dom.checkedUnsafePtr.dumpStacks.enabled
4080 type: RelaxedAtomicBool
4081 value: false
4082 mirror: always
4083
4084 # A pref that is used to slow down database initialization for testing purposes.
4085 - name: dom.simpledb.databaseInitialization.pauseOnIOThreadMs
4086 type: RelaxedAtomicUint32
4087 value: 0
4088 mirror: always
4089
4090 # Determines within what distance of a tick mark, in pixels, dragging an input
4091 # range range will snap the range's value to that tick mark. By default, this is
4092 # half the default width of the range thumb.
4093 - name: dom.range_element.magnet_effect_threshold
4094 type: float
4095 value: 10.0f
4096 mirror: always
4097
4098 # Reporting API.
4099 - name: dom.reporting.enabled
4100 type: RelaxedAtomicBool
4101 value: false
4102 mirror: always
4103
4104 - name: dom.reporting.testing.enabled
4105 type: RelaxedAtomicBool
4106 value: false
4107 mirror: always
4108
4109 - name: dom.reporting.featurePolicy.enabled
4110 type: RelaxedAtomicBool
4111 value: false
4112 mirror: always
4113
4114 - name: dom.reporting.crash.enabled
4115 type: RelaxedAtomicBool
4116 value: false
4117 mirror: always
4118
4119 - name: dom.reporting.header.enabled
4120 type: RelaxedAtomicBool
4121 value: false
4122 mirror: always
4123
4124 # In seconds. The timeout to remove not-active report-to endpoints.
4125 - name: dom.reporting.cleanup.timeout
4126 type: uint32_t
4127 value: 3600
4128 mirror: always
4129
4130 # Any X seconds the reports are dispatched to endpoints.
4131 - name: dom.reporting.delivering.timeout
4132 type: uint32_t
4133 value: 5
4134 mirror: always
4135
4136 # How many times the delivering of a report should be tried.
4137 - name: dom.reporting.delivering.maxFailures
4138 type: uint32_t
4139 value: 3
4140 mirror: always
4141
4142 # How many reports should be stored in the report queue before being delivered.
4143 - name: dom.reporting.delivering.maxReports
4144 type: uint32_t
4145 value: 100
4146 mirror: always
4147
4148 # Enable Screen Orientation lock
4149 - name: dom.screenorientation.allow-lock
4150 type: bool
4151 value: @IS_NIGHTLY_BUILD@
4152 mirror: always
4153
4154 # Enable Screen Wake Lock API
4155 - name: dom.screenwakelock.enabled
4156 type: bool
4157 value: true
4158 mirror: always
4159
4160 # Whether to enable the JavaScript start-up cache. This causes one of the first
4161 # execution to record the bytecode of the JavaScript function used, and save it
4162 # in the existing cache entry. On the following loads of the same script, the
4163 # bytecode would be loaded from the cache instead of being generated once more.
4164 - name: dom.script_loader.bytecode_cache.enabled
4165 type: bool
4166 value: true
4167 mirror: always
4168
4169 # Ignore the heuristics of the bytecode cache, and always record on the first
4170 # visit. (used for testing purposes).
4171
4172 # Choose one strategy to use to decide when the bytecode should be encoded and
4173 # saved. The following strategies are available right now:
4174 # * -2 : (reader mode) The bytecode cache would be read, but it would never
4175 # be saved.
4176 # * -1 : (eager mode) The bytecode would be saved as soon as the script is
4177 # seen for the first time, independently of the size or last access
4178 # time.
4179 # * 0 : (default) The bytecode would be saved in order to minimize the
4180 # page-load time.
4181 #
4182 # Other values might lead to experimental strategies. For more details, have a
4183 # look at: ScriptLoader::ShouldCacheBytecode function.
4184 - name: dom.script_loader.bytecode_cache.strategy
4185 type: int32_t
4186 value: 0
4187 mirror: always
4188
4189 # Select which parse/delazification strategy should be used while parsing
4190 # scripts off-main-thread. (see CompileOptions.h, DelazificationOption enum)
4191 #
4192 # 0: On-demand only. Delazification will be triggered only on the main thread
4193 # before the execution of the function.
4194 #
4195 # 1: Compare on-demand delazification (= 0) with concurrent depth-first
4196 # delazification (= 2).
4197 #
4198 # 2: Depth-first. Delazify all functions off-thread in the order of appearance
4199 # in the source.
4200 #
4201 # 3: Large-first. Delazify all functions off-thread starting with the largest
4202 # functions first, and the smallest as the last one to be delazified, where
4203 # the size of function is measured in bytes between the start to the end of
4204 # the function.
4205 #
4206 # 255: Parse everything eagerly, from the first parse. All functions are parsed
4207 # at the same time as the top-level of a file.
4208 - name: dom.script_loader.delazification.strategy
4209 type: uint32_t
4210 value: 255
4211 mirror: always
4212
4213 # Maximum total size after which the delazification strategy, specified by
4214 # `dom.script_loader.delazification.strategy`, is no longer applied, and the
4215 # on-demand strategy is used by default.
4216 #
4217 # -1 disable the threshold, and delazification strategy is applied to all
4218 # scripts.
4219 #
4220 # Default value is 10MB for utf8 scripts.
4221 - name: dom.script_loader.delazification.max_size
4222 type: int32_t
4223 value: 10485760
4224 mirror: always
4225
4226 # Minimum memory, in GB, required to enable delazification strategy, specified
4227 # by `dom.script_loader.delazification.strategy`. Otherwise, the on-demand
4228 # delazification strategy is used.
4229 - name: dom.script_loader.delazification.min_mem
4230 type: int32_t
4231 value: 2
4232 mirror: always
4233
4234 # Enable speculative off main thread parsing of external scripts as
4235 # soon as they are fetched.
4236 - name: dom.script_loader.external_scripts.speculative_omt_parse.enabled
4237 type: bool
4238 value: true
4239 mirror: always
4240
4241 # Speculatively compile non parser inserted scripts
4242 - name: dom.script_loader.external_scripts.speculate_non_parser_inserted.enabled
4243 type: bool
4244 value: false
4245 mirror: always
4246
4247 # Speculatively compile async scripts
4248 - name: dom.script_loader.external_scripts.speculate_async.enabled
4249 type: bool
4250 value: false
4251 mirror: always
4252
4253 # Speculatively compile link preload scripts
4254 - name: dom.script_loader.external_scripts.speculate_link_preload.enabled
4255 type: bool
4256 value: false
4257 mirror: always
4258
4259 # Cache stencil across navigation
4260 - name: dom.script_loader.navigation_cache
4261 type: bool
4262 value: false
4263 mirror: always
4264
4265 - name: dom.securecontext.allowlist_onions
4266 type: bool
4267 value: false
4268 mirror: always
4269
4270 # This pref enables the featurePolicy header support.
4271 - name: dom.security.featurePolicy.header.enabled
4272 type: bool
4273 value: false
4274 mirror: always
4275
4276 - name: dom.security.featurePolicy.experimental.enabled
4277 type: bool
4278 value: false
4279 mirror: always
4280
4281 # Expose the 'featurePolicy' attribute in document and HTMLIFrameElement
4282 - name: dom.security.featurePolicy.webidl.enabled
4283 type: bool
4284 value: false
4285 mirror: always
4286
4287 # Perform IPC based Principal vetting in ContentParent
4288 - name: dom.security.enforceIPCBasedPrincipalVetting
4289 type: RelaxedAtomicBool
4290 value: true
4291 mirror: always
4292
4293 # For testing purposes only: Flipping this pref to true allows
4294 # to skip the allowlist for about: pages and do not ship with a
4295 # CSP and NS_ASSERT right away.
4296 - name: dom.security.skip_about_page_csp_allowlist_and_assert
4297 type: RelaxedAtomicBool
4298 value: false
4299 mirror: always
4300
4301 # For testing purposes only: Flipping this pref to true allows
4302 # to skip the assertion that every about page ships with a CSP.
4303 - name: dom.security.skip_about_page_has_csp_assert
4304 type: RelaxedAtomicBool
4305 value: false
4306 mirror: always
4307
4308 # For testing purposes only: Flipping this pref to true allows
4309 # to skip the assertion that HTML fragments (e.g. innerHTML) can
4310 # not be used within chrome code or about: pages.
4311 - name: dom.security.skip_html_fragment_assertion
4312 type: RelaxedAtomicBool
4313 value: false
4314 mirror: always
4315
4316
4317 # Serialize < as &lt; and > as &gt; in attribute values for getHTML, innerHTML etc.
4318 - name: dom.security.html_serialization_escape_lt_gt
4319 type: RelaxedAtomicBool
4320 value: true
4321 mirror: always
4322
4323 # For testing purposes only; Flipping this pref to true allows
4324 # to skip the assertion that remote scripts can not be loaded
4325 # in system privileged contexts.
4326 - name: dom.security.skip_remote_script_assertion_in_system_priv_context
4327 type: RelaxedAtomicBool
4328 value: false
4329 mirror: always
4330
4331 # If and only if true, support for Trusted Types
4332 # (https://w3c.github.io/trusted-types/dist/spec/) is enabled.
4333 - name: dom.security.trusted_types.enabled
4334 type: RelaxedAtomicBool
4335 value: False
4336 mirror: always
4337
4338 # If true, all content requests will get upgraded to HTTPS://
4339 # (some Firefox functionality requests, like OCSP will not be affected)
4340 - name: dom.security.https_only_mode
4341 type: RelaxedAtomicBool
4342 value: false
4343 mirror: always
4344
4345 # If true, all content requests in Private Browsing Mode will get
4346 # upgraded to HTTPS://. (If dom.security.https_only_mode is set
4347 # to true then this pref has no effect)
4348 - name: dom.security.https_only_mode_pbm
4349 type: RelaxedAtomicBool
4350 value: false
4351 mirror: always
4352
4353 # If true, sends http background request for top-level sites to
4354 # counter long timeouts.
4355 - name: dom.security.https_only_mode_send_http_background_request
4356 type: RelaxedAtomicBool
4357 value: true
4358 mirror: always
4359
4360 # Time limit, in milliseconds, before sending the http background
4361 # request for HTTPS-Only and HTTPS-First
4362 - name: dom.security.https_only_fire_http_request_background_timer_ms
4363 type: RelaxedAtomicUint32
4364 value: 2200
4365 mirror: always
4366
4367 # If true, tries to break upgrade downgrade cycles where https-only tries
4368 # to upgrad ethe connection, but the website tries to downgrade again.
4369 - name: dom.security.https_only_mode_break_upgrade_downgrade_endless_loop
4370 type: RelaxedAtomicBool
4371 value: true
4372 mirror: always
4373
4374 # If true and HTTPS-only mode is enabled, requests
4375 # to local IP addresses are also upgraded
4376 - name: dom.security.https_only_mode.upgrade_local
4377 type: RelaxedAtomicBool
4378 value: false
4379 mirror: always
4380
4381 # If true and HTTPS-only mode is enabled, requests
4382 # to .onion hosts are also upgraded
4383 - name: dom.security.https_only_mode.upgrade_onion
4384 type: RelaxedAtomicBool
4385 value: false
4386 mirror: always
4387
4388 # WARNING: Don't ever update that pref manually! It is only used
4389 # for telemetry purposes and allows to reason about retention of
4390 # the pref dom.security.https_only_mode from above.
4391 - name: dom.security.https_only_mode_ever_enabled
4392 type: RelaxedAtomicBool
4393 value: false
4394 mirror: always
4395
4396 # WARNING: Don't ever update that pref manually! It is only used
4397 # for telemetry purposes and allows to reason about retention of
4398 # the pref dom.security.https_only_mode_pbm from above.
4399 - name: dom.security.https_only_mode_ever_enabled_pbm
4400 type: RelaxedAtomicBool
4401 value: false
4402 mirror: always
4403
4404 # If true checks for secure www connections when https fails
4405 # and gives the user suggestions on the error page
4406 - name: dom.security.https_only_mode_error_page_user_suggestions
4407 type: RelaxedAtomicBool
4408 value: false
4409 mirror: always
4410
4411 # If true, top-level request will get upgraded to HTTPS and
4412 # downgraded again if the request failed.
4413 - name: dom.security.https_first
4414 type: RelaxedAtomicBool
4415 value: true
4416 mirror: always
4417
4418 # If true, HTTPS-First will upgrade non-default ports
4419 - name: dom.security.https_first_for_custom_ports
4420 type: RelaxedAtomicBool
4421 value: false
4422 mirror: always
4423
4424 # If true, HTTPS-First will upgrade local addresses
4425 - name: dom.security.https_first_for_local_addresses
4426 type: RelaxedAtomicBool
4427 value: false
4428 mirror: always
4429
4430 # If true, HTTPS-First will upgrade unknown suffixes
4431 - name: dom.security.https_first_for_unknown_suffixes
4432 type: RelaxedAtomicBool
4433 value: false
4434 mirror: always
4435
4436 # If true, top-level requests in Private Browsing Mode will get
4437 # upgraded to HTTPS. (If dom.security.https_first
4438 # is set to true then this pref has no effect)
4439 - name: dom.security.https_first_pbm
4440 type: RelaxedAtomicBool
4441 value: true
4442 mirror: always
4443
4444 # If true, top-level requests that are initiated from the address
4445 # bar and with an empty scheme get upgraded to HTTPS
4446 # with a fallback
4447 - name: dom.security.https_first_schemeless
4448 type: RelaxedAtomicBool
4449 value: true
4450 mirror: always
4451
4452 # If true, will add a special temporary HTTPS-First exception for a site when a
4453 # HTTPS-First upgrade fails.
4454 - name: dom.security.https_first_add_exception_on_failure
4455 type: RelaxedAtomicBool
4456 value: true
4457 mirror: always
4458
4459 - name: dom.security.https_first_exception_lifetime
4460 type: uint32_t
4461 value: 7*24*60*60*1000 # 7 days in milliseconds
4462 mirror: always
4463
4464 - name: dom.security.unexpected_system_load_telemetry_enabled
4465 type: bool
4466 value: @IS_EARLY_BETA_OR_EARLIER@
4467 mirror: always
4468
4469 # pref controls `Sanitizer` API being exposed
4470 # https://wicg.github.io/sanitizer-api/
4471 - name: dom.security.sanitizer.enabled
4472 type: bool
4473 value: false
4474 mirror: always
4475
4476 # Logs elements and attributes removed by the Sanitizer API to the console.
4477 - name: dom.security.sanitizer.logging
4478 type: bool
4479 value: false
4480 mirror: always
4481
4482 # pref controls credential chooser UI for testing. When true, UI is not shown and
4483 # either a credential with ID `wpt-pick-me` is selected, or none.
4484 - name: dom.security.credentialmanagement.chooser.testing.enabled
4485 type: bool
4486 value: false
4487 mirror: always
4488
4489 # pref controls `identity` credentials being exposed
4490 - name: dom.security.credentialmanagement.identity.enabled
4491 type: bool
4492 value: false
4493 mirror: always
4494
4495 # pref controls "heavyweight" network discoverable `identity` credentials being exposed
4496 - name: dom.security.credentialmanagement.identity.heavyweight.enabled
4497 type: bool
4498 value: false
4499 mirror: always
4500
4501 # pref controls storable "lightweight" `identity` credentials being exposed
4502 - name: dom.security.credentialmanagement.identity.lightweight.enabled
4503 type: bool
4504 value: false
4505 mirror: always
4506
4507 # pref controls `identity` credential UI for testing. When true, UI is not shown and
4508 # the first option in the account and provider lists are chosen
4509 - name: dom.security.credentialmanagement.identity.select_first_in_ui_lists
4510 type: bool
4511 value: false
4512 mirror: always
4513
4514 # pref controls `identity` credential platform behavior for testing. When true,
4515 # the .well-known file check is not performed.
4516 - name: dom.security.credentialmanagement.identity.test_ignore_well_known
4517 type: bool
4518 value: false
4519 mirror: always
4520
4521 # pref controls whether we should delay identity credential rejections at all
4522 - name: dom.security.credentialmanagement.identity.reject_delay.enabled
4523 type: bool
4524 value: true
4525 mirror: always
4526
4527 # pref controls how long we should delay identity credential rejections if enabled
4528 - name: dom.security.credentialmanagement.identity.reject_delay.duration_ms
4529 type: uint32_t
4530 value: 120000
4531 mirror: always
4532
4533 # Enforce origin check whenever a content process tries to set a document URI
4534 - name: dom.security.setdocumenturi
4535 type: bool
4536 value: true
4537 mirror: always
4538
4539 # Whether or not selection events on text controls are enabled.
4540 - name: dom.select_events.textcontrols.selectionchange.enabled
4541 type: bool
4542 value: true
4543 mirror: always
4544
4545 - name: dom.select_events.textcontrols.selectstart.enabled
4546 type: bool
4547 value: false
4548 mirror: always
4549
4550 - name: dom.select.showPicker.enabled
4551 type: bool
4552 value: true
4553 mirror: always
4554
4555 - name: dom.send_after_paint_to_content
4556 type: bool
4557 value: false
4558 mirror: always
4559
4560 - name: dom.separate_event_queue_for_post_message.enabled
4561 type: bool
4562 value: true
4563 mirror: always
4564
4565 - name: dom.arena_allocator.enabled
4566 type: bool
4567 value: true
4568 mirror: once
4569
4570 - name: dom.serviceWorkers.enabled
4571 type: RelaxedAtomicBool
4572 value: true
4573 mirror: always
4574
4575 - name: dom.serviceWorkers.navigationPreload.enabled
4576 type: RelaxedAtomicBool
4577 value: true
4578 mirror: always
4579
4580 # Mitigates ServiceWorker navigation faults by bypassing the ServiceWorker on
4581 # navigation faults. This is more extensive than just resetting interception
4582 # because we also mark the page as uncontrolled so that subresources will not
4583 # go to the ServiceWorker either.
4584 - name: dom.serviceWorkers.mitigations.bypass_on_fault
4585 type: bool
4586 value: true
4587 mirror: always
4588
4589 # Additional ServiceWorker navigation mitigation control to unregister the
4590 # ServiceWorker after multiple faults are encountered. The mitigation is
4591 # disabled when this is set to zero, otherwise this is the number of faults that
4592 # need to occur for a specific ServiceWorker before it will be unregistered.
4593 - name: dom.serviceWorkers.mitigations.navigation_fault_threshold
4594 type: uint32_t
4595 value: 3
4596 mirror: always
4597
4598 # This is the group usage head room for service workers.
4599 # The quota usage mitigation algorithm uses this preference to determine if the
4600 # origin or also group data should be cleared or not.
4601 # The default value is 400 MiB.
4602 - name: dom.serviceWorkers.mitigations.group_usage_headroom_kb
4603 type: uint32_t
4604 value: 400 * 1024
4605 mirror: always
4606
4607 # Enable ServiceWorkers in Private Browsing Mode (PBM). This requires
4608 # dom.cache.privateBrowsing.enabled to be enabled as well. Registrations are
4609 # not persisted to disk; installed scripts are stored in Cache API storage which
4610 # is encrypted in PBM.
4611 - name: dom.serviceWorkers.privateBrowsing.enabled
4612 type: RelaxedAtomicBool
4613 value: true
4614 mirror: always
4615
4616 - name: dom.serviceWorkers.testing.enabled
4617 type: RelaxedAtomicBool
4618 value: false
4619 mirror: always
4620
4621 # Whether ServiceWorkerManager should persist the service worker
4622 # registered by temporary installed extension (only meant to be used
4623 # for testing purpose, to make it easier to test some particular scenario
4624 # with a temporary installed addon, which doesn't need to be signed to be
4625 # installed on release channel builds).
4626 - name: dom.serviceWorkers.testing.persistTemporarilyInstalledAddons
4627 type: RelaxedAtomicBool
4628 value: false
4629 mirror: always
4630
4631 - name: dom.storage.enabled
4632 type: RelaxedAtomicBool
4633 value: true
4634 mirror: always
4635
4636 - name: dom.workers.pFetch.enabled
4637 type: RelaxedAtomicBool
4638 value: true
4639 mirror: always
4640
4641 - name: dom.workers.importScripts.enforceStrictMimeType
4642 type: RelaxedAtomicBool
4643 value: true
4644 mirror: always
4645
4646 - name: dom.workers.throttling.enabled
4647 type: bool
4648 value: false
4649 mirror: once
4650
4651 - name: dom.workers.timeoutmanager
4652 type: bool
4653 value: true
4654 mirror: once
4655
4656 - name: dom.workers.serialized-sab-access
4657 type: RelaxedAtomicBool
4658 value: false
4659 mirror: always
4660
4661 # Enable stronger diagnostics on worker shutdown.
4662 # If this is true, we will potentially run an extra GCCC when a worker should
4663 # exit its DoRunLoop but holds any WorkerRef and we will MOZ_DIAGNOSTIC_ASSERT
4664 # when during that extra GCCC such a WorkerRef is freed.
4665 - name: dom.workers.GCCC_on_potentially_last_event
4666 type: RelaxedAtomicBool
4667 #if defined(FUZZING) || defined(DEBUG)
4668 value: true
4669 #else
4670 value: false
4671 #endif
4672 mirror: always
4673
4674 - name: dom.sitepermsaddon-provider.enabled
4675 type: bool
4676 value: @IS_NOT_ANDROID@
4677 mirror: always
4678
4679 # Server-Sent Events
4680 # Equal to the DEFAULT_RECONNECTION_TIME_VALUE value in nsEventSource.cpp
4681 - name: dom.serverEvents.defaultReconnectionTime
4682 type: RelaxedAtomicUint32
4683 value: 5000 # in milliseconds
4684 mirror: always
4685
4686 # Whether automatic storage access granting heuristics should be turned on.
4687 - name: dom.storage_access.auto_grants
4688 type: bool
4689 value: true
4690 mirror: always
4691
4692 - name: dom.storage_access.auto_grants.delayed
4693 type: bool
4694 value: true
4695 mirror: always
4696
4697 # Whether to exclude third-party trackers from Storage Access API auto grants.
4698 - name: dom.storage_access.auto_grants.exclude_third_party_trackers
4699 type: bool
4700 value: @IS_NIGHTLY_BUILD@
4701 mirror: always
4702
4703 # Storage-access API.
4704 - name: dom.storage_access.enabled
4705 type: bool
4706 value: true
4707 mirror: always
4708
4709 # Forward-Declared Storage-access API.
4710 - name: dom.storage_access.forward_declared.enabled
4711 type: bool
4712 value: false
4713 mirror: always
4714
4715 # How long the Forward-Declared Storage-access API allows between pair requests
4716 # in seconds
4717 - name: dom.storage_access.forward_declared.lifetime
4718 type: uint32_t
4719 value: 15 * 60
4720 mirror: always
4721
4722 # The maximum number of origins that a given third-party tracker is allowed
4723 # to have concurrent access to before the user is presented with a storage
4724 # access prompt. Only effective when the auto_grants pref is turned on.
4725 - name: dom.storage_access.max_concurrent_auto_grants
4726 type: int32_t
4727 value: 5
4728 mirror: always
4729
4730 - name: dom.storage_access.frame_only
4731 type: bool
4732 value: true
4733 mirror: always
4734
4735 # Only grant storage access to secure contexts.
4736 - name: dom.storage_access.dont_grant_insecure_contexts
4737 type: RelaxedAtomicBool
4738 value: true
4739 mirror: always
4740
4741 # Whether the File System API is enabled
4742 - name: dom.fs.enabled
4743 type: RelaxedAtomicBool
4744 value: true
4745 mirror: always
4746
4747 # Whether the WritableFileStream is enabled or disabled.
4748 - name: dom.fs.writable_file_stream.enabled
4749 type: RelaxedAtomicBool
4750 value: true
4751 mirror: always
4752
4753 # A pref that is used to enable testing features.
4754 - name: dom.fs.testing
4755 type: SequentiallyConsistentAtomicBool
4756 value: false
4757 mirror: always
4758
4759 # A pref that is used to slow down database initialization for testing purposes.
4760 - name: dom.fs.databaseInitialization.pauseOnIOThreadMs
4761 type: RelaxedAtomicUint32
4762 value: 0
4763 mirror: always
4764
4765 # LocalStorage data limit as determined by summing up the lengths of all string
4766 # keys and values. This is consistent with the legacy implementation and other
4767 # browser engines. This value should really only ever change in unit testing
4768 # where being able to lower it makes it easier for us to test certain edge
4769 # cases. Measured in KiBs.
4770 - name: dom.storage.default_quota
4771 type: RelaxedAtomicUint32
4772 # Only allow relatively small amounts of data since performance of the
4773 # synchronous IO is very bad. We are enforcing simple per-origin quota only.
4774 value: 5 * 1024
4775 mirror: always
4776
4777 # Per-site quota for legacy LocalStorage implementation.
4778 - name: dom.storage.default_site_quota
4779 type: RelaxedAtomicUint32
4780 value: 25 * 1024
4781 mirror: always
4782
4783 # Whether or not the unsupported legacy implemenation should be enabled. Please
4784 # don't advertise this pref as a way for disabling LSNG. This pref is intended
4785 # for internal testing only and will be removed in near future. Accidental
4786 # disabling of LSNG can lead to a data loss in a combination with disabled
4787 # shadow writes. Disabling of shadow writes is the initial step towards
4788 # removing legacy implementation and will be done soon.
4789 - name: dom.storage.enable_unsupported_legacy_implementation
4790 type: RelaxedAtomicBool
4791 value: false
4792 mirror: always
4793 do_not_use_directly: true
4794
4795 # Whether the migration from unsupported legacy implementation is enabled.
4796 - name: dom.storage.enable_migration_from_unsupported_legacy_implementation
4797 type: RelaxedAtomicBool
4798 value: false
4799 mirror: always
4800
4801 # The amount of snapshot peak usage which is attempted to be pre-incremented
4802 # during snapshot creation.
4803 - name: dom.storage.snapshot_peak_usage.initial_preincrement
4804 type: RelaxedAtomicUint32
4805 value: 16384
4806 mirror: always
4807
4808 # The amount of snapshot peak usage which is attempted to be pre-incremented
4809 # during snapshot creation if the LocalStorage usage was already close to the
4810 # limit (a fallback for dom.storage.snapshot_peak_usage.initial_preincrement).
4811 - name: dom.storage.snapshot_peak_usage.reduced_initial_preincrement
4812 type: RelaxedAtomicUint32
4813 value: 4096
4814 mirror: always
4815
4816 # The amount of snapshot peak usage which is attempted to be pre-incremented
4817 # beyond the specific values which are subsequently requested after snapshot
4818 # creation.
4819 - name: dom.storage.snapshot_peak_usage.gradual_preincrement
4820 type: RelaxedAtomicUint32
4821 value: 4096
4822 mirror: always
4823
4824 # The amount of snapshot peak usage which is attempted to be pre-incremented
4825 # beyond the specific values which are subsequently requested after snapshot
4826 # creation if the LocalStorage total usage was already close to the limit
4827 # (a fallback for dom.storage.snapshot_peak_usage.gradual_preincrement).
4828 - name: dom.storage.snapshot_peak_usage.reduced_gradual_preincrement
4829 type: RelaxedAtomicUint32
4830 value: 1024
4831 mirror: always
4832
4833 # How long between a snapshot becomes idle and when we actually finish the
4834 # snapshot. This preference is only used when "dom.storage.snapshot_reusing"
4835 # is true.
4836 - name: dom.storage.snapshot_idle_timeout_ms
4837 type: uint32_t
4838 value: 5000
4839 mirror: always
4840
4841 # Is support for Storage test APIs enabled?
4842 - name: dom.storage.testing
4843 type: SequentiallyConsistentAtomicBool
4844 value: false
4845 mirror: always
4846
4847 # A pref that is used to slow down database initialization for testing purposes.
4848 - name: dom.storage.databaseInitialization.pauseOnIOThreadMs
4849 type: RelaxedAtomicUint32
4850 value: 0
4851 mirror: always
4852
4853 # A pref that is used to slow down request finalization for testing purposes.
4854 - name: dom.storage.requestFinalization.pauseOnDOMFileThreadMs
4855 type: RelaxedAtomicUint32
4856 value: 0
4857 mirror: always
4858
4859 # This enables the SVGPathSegment APIs
4860 - name: dom.svg.pathSegment.enabled
4861 type: bool
4862 value: true
4863 mirror: always
4864
4865 # For area and anchor elements with target=_blank and no rel set to
4866 # opener/noopener.
4867 - name: dom.targetBlankNoOpener.enabled
4868 type: bool
4869 value: true
4870 mirror: always
4871
4872 # Is support for Selection.GetRangesForInterval enabled?
4873 - name: dom.testing.selection.GetRangesForInterval
4874 type: bool
4875 value: false
4876 mirror: always
4877
4878 - name: dom.testing.structuredclonetester.enabled
4879 type: RelaxedAtomicBool
4880 value: false
4881 mirror: always
4882
4883 # To enable TestUtils interface on WPT
4884 - name: dom.testing.testutils.enabled
4885 type: RelaxedAtomicBool
4886 value: false
4887 mirror: always
4888
4889 - name: dom.hidden_until_found.enabled
4890 type: bool
4891 value: true
4892 mirror: always
4893
4894 - name: dom.text_fragments.enabled
4895 type: RelaxedAtomicBool
4896 value: true
4897 mirror: always
4898 rust: true
4899
4900 - name: dom.text_fragments.create_text_fragment.enabled
4901 type: bool
4902 value: false
4903 mirror: always
4904
4905 - name: dom.text_fragments.create_text_fragment.timeout_seconds
4906 type: uint32_t
4907 value: 5
4908 mirror: always
4909
4910 - name: dom.textMetrics.actualBoundingBox.enabled
4911 type: RelaxedAtomicBool
4912 value: true
4913 mirror: always
4914
4915 - name: dom.textMetrics.baselines.enabled
4916 type: RelaxedAtomicBool
4917 value: true
4918 mirror: always
4919
4920 - name: dom.textMetrics.emHeight.enabled
4921 type: RelaxedAtomicBool
4922 value: true
4923 mirror: always
4924
4925 - name: dom.textMetrics.fontBoundingBox.enabled
4926 type: RelaxedAtomicBool
4927 value: true
4928 mirror: always
4929
4930 # Time (in ms) that it takes to regenerate 1ms.
4931 - name: dom.timeout.background_budget_regeneration_rate
4932 type: RelaxedAtomicInt32
4933 value: 100
4934 mirror: always
4935
4936 # Time (in ms) that it takes to regenerate 1ms.
4937 - name: dom.timeout.foreground_budget_regeneration_rate
4938 type: RelaxedAtomicInt32
4939 value: 1
4940 mirror: always
4941
4942 # Maximum value (in ms) for the background budget. Only valid for
4943 # values greater than 0.
4944 - name: dom.timeout.background_throttling_max_budget
4945 type: RelaxedAtomicInt32
4946 value: 50
4947 mirror: always
4948
4949 # Maximum value (in ms) for the foreground budget. Only valid for
4950 # values greater than 0.
4951 - name: dom.timeout.foreground_throttling_max_budget
4952 type: RelaxedAtomicInt32
4953 value: -1
4954 mirror: always
4955
4956 # The maximum amount a timeout can be delayed by budget throttling.
4957 - name: dom.timeout.budget_throttling_max_delay
4958 type: RelaxedAtomicInt32
4959 value: 15000
4960 mirror: always
4961
4962 # Turn on budget throttling by default.
4963 - name: dom.timeout.enable_budget_timer_throttling
4964 type: RelaxedAtomicBool
4965 value: true
4966 mirror: always
4967
4968 # Should we defer timeouts and intervals while loading a page. Released
4969 # on Idle or when the page is loaded.
4970 # A URI list in dom.timeout.defer_during_load.force-disable can override this
4971 # and disable this optimization for a site.
4972 - name: dom.timeout.defer_during_load
4973 type: bool
4974 value: true
4975 mirror: always
4976
4977 # Sites we shouldn't defer timeouts and intervals while loading a page.
4978 # comma-separated list, see IsURIInPrefList() for format details
4979 - name: dom.timeout.defer_during_load.force-disable
4980 type: String
4981 value: >-
4982 *.usps.com,
4983 *.nvidia.com,
4984 *.fedex.com,
4985 *.msci.com,
4986 *.the-saleroom.com
4987 mirror: never
4988
4989 # Maximum amount of time in milliseconds consecutive setTimeout()/setInterval()
4990 # callback are allowed to run before yielding the event loop.
4991 - name: dom.timeout.max_consecutive_callbacks_ms
4992 type: RelaxedAtomicUint32
4993 value: 4
4994 mirror: always
4995
4996 # Maximum deferral time for setTimeout/Interval in milliseconds
4997 - name: dom.timeout.max_idle_defer_ms
4998 type: uint32_t
4999 value: 10*1000
5000 mirror: always
5001
5002 # Delay in ms from document load until we start throttling background timeouts.
5003 - name: dom.timeout.throttling_delay
5004 type: RelaxedAtomicInt32
5005 value: 30000
5006 mirror: always
5007
5008 # TCPSocket API
5009 - name: dom.tcpsocket_in_child.enabled
5010 type: RelaxedAtomicBool
5011 value: false
5012 mirror: always
5013
5014 # UDPSocket API
5015 - name: dom.udpsocket.enabled
5016 type: RelaxedAtomicBool
5017 value: false
5018 mirror: always
5019
5020 # Whether to dump worker use counters
5021 - name: dom.use_counters.dump.worker
5022 type: RelaxedAtomicBool
5023 value: false
5024 mirror: always
5025
5026 # Whether to dump document use counters
5027 - name: dom.use_counters.dump.document
5028 type: bool
5029 value: false
5030 mirror: always
5031
5032 # Whether to dump page use counters
5033 - name: dom.use_counters.dump.page
5034 type: bool
5035 value: false
5036 mirror: always
5037
5038 # Time limit, in milliseconds, for user gesture transient activation.
5039 - name: dom.user_activation.transient.timeout
5040 type: uint32_t
5041 value: 5000
5042 mirror: always
5043
5044 # Whether to treat the clicks on scrollbars as user interaction with web content.
5045 - name: dom.user_activation.ignore_scrollbars
5046 type: bool
5047 value: true
5048 mirror: always
5049
5050 # Whether to shim a Components object on untrusted windows.
5051 - name: dom.use_components_shim
5052 type: bool
5053 value: @IS_NOT_NIGHTLY_BUILD@
5054 mirror: always
5055
5056 - name: dom.vibrator.enabled
5057 type: bool
5058 value: false
5059 mirror: always
5060
5061 - name: dom.vibrator.max_vibrate_ms
5062 type: RelaxedAtomicUint32
5063 value: 10000
5064 mirror: always
5065
5066 - name: dom.vibrator.max_vibrate_list_len
5067 type: RelaxedAtomicUint32
5068 value: 128
5069 mirror: always
5070
5071 # Is support for View Transitions Level 1 enabled?
5072 - name: dom.viewTransitions.enabled
5073 type: RelaxedAtomicBool
5074 value: @IS_NIGHTLY_BUILD@
5075 mirror: always
5076 rust: true
5077
5078 # Timeout for view transitions.
5079 # TODO(emilio): Figure out the right time-out, Blink uses between 4 and 15
5080 # seconds.
5081 - name: dom.viewTransitions.timeout-ms
5082 type: uint32_t
5083 value: 10000
5084 mirror: always
5085
5086 # Whether view transitions remain active indefinitely. Useful for debugging.
5087 - name: dom.viewTransitions.remain-active
5088 type: bool
5089 value: false
5090 mirror: always
5091
5092 # Whether view transitions use webrender for old-capture
5093 - name: dom.viewTransitions.wr-old-capture
5094 type: bool
5095 value: true
5096 mirror: always
5097
5098 # Is support for WebVR APIs enabled?
5099 # Disabled everywhere, but not removed.
5100 - name: dom.vr.enabled
5101 type: RelaxedAtomicBool
5102 value: false
5103 mirror: always
5104
5105 # Should VR sessions always be reported as supported, without first
5106 # checking for VR runtimes? This will prevent permission prompts
5107 # from being suppressed on machines without VR runtimes and cause
5108 # navigator.xr.isSessionSupported to always report that immersive-vr
5109 # is supported.
5110 - name: dom.vr.always_support_vr
5111 type: RelaxedAtomicBool
5112 value: false
5113 mirror: always
5114
5115 # Should AR sessions always be reported as supported, without first
5116 # checking for AR runtimes? This will prevent permission prompts
5117 # from being suppressed on machines without AR runtimes and cause
5118 # navigator.xr.isSessionSupported to always report that immersive-ar
5119 # is supported.
5120 - name: dom.vr.always_support_ar
5121 type: RelaxedAtomicBool
5122 value: false
5123 mirror: always
5124
5125 # It is often desirable to automatically start vr presentation when
5126 # a user puts on the VR headset. This is done by emitting the
5127 # Window.vrdisplayactivate event when the headset's sensors detect it
5128 # being worn. This can result in WebVR content taking over the headset
5129 # when the user is using it outside the browser or inadvertent start of
5130 # presentation due to the high sensitivity of the proximity sensor in some
5131 # headsets, so it is off by default.
5132 - name: dom.vr.autoactivate.enabled
5133 type: RelaxedAtomicBool
5134 value: false
5135 mirror: always
5136
5137 # Minimum number of milliseconds that the browser will wait before
5138 # attempting to poll again for connected VR controllers. The browser
5139 # will not attempt to poll for VR controllers until it needs to use them.
5140 - name: dom.vr.controller.enumerate.interval
5141 type: RelaxedAtomicInt32
5142 value: 1000
5143 mirror: always
5144
5145 # The threshold value of trigger inputs for VR controllers.
5146 - name: dom.vr.controller_trigger_threshold
5147 type: AtomicFloat
5148 value: 0.1f
5149 mirror: always
5150
5151 # Minimum number of milliseconds that the browser will wait before
5152 # attempting to poll again for connected VR displays. The browser
5153 # will not attempt to poll for VR displays until it needs to use
5154 # them, such as when detecting a WebVR site.
5155 - name: dom.vr.display.enumerate.interval
5156 type: RelaxedAtomicInt32
5157 value: 5000
5158 mirror: always
5159
5160 # The number of milliseconds since last frame start before triggering a new
5161 # frame. When content is failing to submit frames on time or the lower level
5162 # VR platform APIs are rejecting frames, it determines the rate at which RAF
5163 # callbacks will be called.
5164 - name: dom.vr.display.rafMaxDuration
5165 type: RelaxedAtomicUint32
5166 value: 50
5167 mirror: always
5168
5169 # Minimum number of milliseconds the browser will wait before attempting
5170 # to re-start the VR service after an enumeration returned no devices.
5171 - name: dom.vr.external.notdetected.timeout
5172 type: RelaxedAtomicInt32
5173 value: 60000
5174 mirror: always
5175
5176 # Minimum number of milliseconds the browser will wait before attempting
5177 # to re-start the VR service after a VR API (eg, OpenVR or Oculus)
5178 # requests that we shutdown and unload its libraries.
5179 # To ensure that we don't interfere with VR runtime software auto-updates,
5180 # we will not attempt to re-load the service until this timeout has elapsed.
5181 - name: dom.vr.external.quit.timeout
5182 type: RelaxedAtomicInt32
5183 value: 10000
5184 mirror: always
5185
5186 # Minimum number of milliseconds that the VR session will be kept
5187 # alive after the browser and content no longer are using the
5188 # hardware. If a VR multitasking environment, this should be set
5189 # very low or set to 0.
5190 - name: dom.vr.inactive.timeout
5191 type: RelaxedAtomicInt32
5192 value: 5000
5193 mirror: always
5194
5195 # Maximum number of milliseconds the browser will wait for content to call
5196 # VRDisplay.requestPresent after emitting vrdisplayactivate during VR
5197 # link traversal. This prevents a long running event handler for
5198 # vrdisplayactivate from later calling VRDisplay.requestPresent, which would
5199 # result in a non-responsive browser in the VR headset.
5200 - name: dom.vr.navigation.timeout
5201 type: RelaxedAtomicInt32
5202 value: 5000
5203 mirror: always
5204
5205 # Oculus device
5206 - name: dom.vr.oculus.enabled
5207 type: RelaxedAtomicBool
5208 #if defined(HAVE_64BIT_BUILD) && !defined(ANDROID)
5209 # We are only enabling WebVR by default on 64-bit builds (Bug 1384459).
5210 value: true
5211 #else
5212 # On Android, this pref is irrelevant.
5213 value: false
5214 #endif
5215 mirror: always
5216
5217 # When enabled, Oculus sessions may be created with the ovrInit_Invisible
5218 # flag if a page is using tracking but not presenting. When a page
5219 # begins presenting VR frames, the session will be re-initialized without
5220 # the flag. This eliminates the "Firefox not responding" warnings in
5221 # the headset, but might not be compatible with all versions of the Oculus
5222 # runtime.
5223 - name: dom.vr.oculus.invisible.enabled
5224 type: RelaxedAtomicBool
5225 value: true
5226 mirror: always
5227
5228 # Minimum number of milliseconds after content has stopped VR presentation
5229 # before the Oculus session is re-initialized to an invisible / tracking
5230 # only mode. If this value is too high, users will need to wait longer
5231 # after stopping WebVR presentation before automatically returning to the
5232 # Oculus home interface. (They can immediately return to the Oculus Home
5233 # interface through the Oculus HUD without waiting this duration)
5234 # If this value is too low, the Oculus Home interface may be visible
5235 # momentarily during VR link navigation.
5236 - name: dom.vr.oculus.present.timeout
5237 type: RelaxedAtomicInt32
5238 value: 500
5239 mirror: always
5240
5241 # OpenVR device
5242 - name: dom.vr.openvr.enabled
5243 type: RelaxedAtomicBool
5244 #if !defined(HAVE_64BIT_BUILD) && !defined(ANDROID)
5245 # We are only enabling WebVR by default on 64-bit builds (Bug 1384459).
5246 value: false
5247 #elif defined(XP_WIN) || defined(XP_MACOSX)
5248 # We enable OpenVR by default for Windows and macOS.
5249 value: true
5250 #else
5251 # See Bug 1310663 (Linux). On Android, this pref is irrelevant.
5252 value: false
5253 #endif
5254 mirror: always
5255
5256 # OSVR device
5257 - name: dom.vr.osvr.enabled
5258 type: RelaxedAtomicBool
5259 value: false
5260 mirror: always
5261
5262 # Pose prediction reduces latency effects by returning future predicted HMD
5263 # poses to callers of the WebVR API. This currently only has an effect for
5264 # Oculus Rift on SDK 0.8 or greater.
5265 - name: dom.vr.poseprediction.enabled
5266 type: RelaxedAtomicBool
5267 value: true
5268 mirror: always
5269
5270 # Enable a separate process for VR module.
5271 - name: dom.vr.process.enabled
5272 type: bool
5273 #if defined(XP_WIN)
5274 value: true
5275 #else
5276 value: false
5277 #endif
5278 mirror: once
5279
5280 - name: dom.vr.process.startup_timeout_ms
5281 type: int32_t
5282 value: 5000
5283 mirror: once
5284
5285 # Puppet device, used for simulating VR hardware within tests and dev tools.
5286 - name: dom.vr.puppet.enabled
5287 type: RelaxedAtomicBool
5288 value: false
5289 mirror: always
5290
5291 # Starting VR presentation is only allowed within a user gesture or event such
5292 # as VRDisplayActivate triggered by the system. dom.vr.require-gesture allows
5293 # this requirement to be disabled for special cases such as during automated
5294 # tests or in a headless kiosk system.
5295 - name: dom.vr.require-gesture
5296 type: RelaxedAtomicBool
5297 value: true
5298 mirror: always
5299
5300 # Is support for WebXR APIs enabled?
5301 - name: dom.vr.webxr.enabled
5302 type: RelaxedAtomicBool
5303 value: false
5304 mirror: always
5305
5306 # Points in the native bounds geometry are required to be quantized
5307 # sufficiently to prevent fingerprinting. The WebXR spec suggests
5308 # quantizing to the nearest 5 centimeters.
5309 - name: dom.vr.webxr.quantization
5310 type: AtomicFloat
5311 value: 0.05f
5312 mirror: always
5313
5314 #ifdef XP_WIN
5315 # Control firing WidgetMouseEvent by handling Windows pointer messages or
5316 # mouse messages.
5317 - name: dom.w3c_pointer_events.dispatch_by_pointer_messages
5318 type: bool
5319 value: true
5320 mirror: always
5321
5322 # Control consuming WM_POINTER for touch pointers instead of WM_TOUCH
5323 - name: dom.w3c_pointer_events.dispatch_by_pointer_messages.touch
5324 type: bool
5325 value: false
5326 mirror: always
5327
5328 # Control whether to fire WidgetTouchEvent from pen pointers for APZ to handle scrolling.
5329 - name: dom.w3c_pointer_events.scroll_by_pen.enabled
5330 type: bool
5331 value: true
5332 mirror: always
5333 #endif
5334
5335 # If the value is >= 0, it will be used for max touch points in child processes.
5336 - name: dom.maxtouchpoints.testing.value
5337 type: int32_t
5338 value: -1
5339 mirror: always
5340
5341 # Maximum value of navigator.hardwareConcurrency.
5342 - name: dom.maxHardwareConcurrency
5343 type: RelaxedAtomicUint32
5344 value: 128
5345 mirror: always
5346
5347 # W3C pointer events draft.
5348 - name: dom.w3c_pointer_events.implicit_capture
5349 type: bool
5350 value: true
5351 mirror: always
5352
5353 - name: dom.w3c_pointer_events.getcoalescedevents_only_in_securecontext
5354 type: bool
5355 value: @IS_NIGHTLY_BUILD@
5356 mirror: always
5357
5358 # `click` event target is defined as overridden by pointer capture target in
5359 # Pointer Events. Set this to true if we should conform to it. Otherwise,
5360 # consider the target from the pointer position, set this to false.
5361 - name: dom.w3c_pointer_events.dispatch_click_on_pointer_capturing_element
5362 type: bool
5363 value: true
5364 mirror: always
5365
5366 # If `click` event is caused by a tap, the target should not be the target of
5367 # the preceding `pointerup`. This is compatible with Chrome 136.
5368 - name: dom.w3c_pointer_events.dispatch_click_on_pointer_capturing_element.except_touch
5369 type: bool
5370 value: true
5371 mirror: always
5372
5373 # In case Touch API is enabled, this pref controls whether to support
5374 # ontouch* event handlers, document.createTouch, document.createTouchList and
5375 # document.createEvent("TouchEvent").
5376 - name: dom.w3c_touch_events.legacy_apis.enabled
5377 type: bool
5378 value: @IS_ANDROID@
5379 mirror: always
5380
5381 # W3C touch events
5382 # 0 - disabled, 1 - enabled, 2 - autodetect
5383 # Autodetection is currently only supported on Windows and GTK3 (and assumed on
5384 # Android).
5385 - name: dom.w3c_touch_events.enabled
5386 type: int32_t
5387 #if defined(XP_MACOSX)
5388 value: 0
5389 #else
5390 value: 2
5391 #endif
5392 mirror: always
5393
5394 # Is support for the Web Audio API enabled?
5395 - name: dom.webaudio.enabled
5396 type: bool
5397 value: true
5398 mirror: always
5399
5400 - name: dom.webkitBlink.dirPicker.enabled
5401 type: RelaxedAtomicBool
5402 value: @IS_NOT_MOBILE@
5403 mirror: always
5404
5405 # Whether allowing selection across the boundary
5406 # between shadow DOM and light DOM.
5407 # This is based on https://github.com/mfreed7/shadow-dom-selection
5408 - name: dom.shadowdom.selection_across_boundary.enabled
5409 type: bool
5410 value: @IS_NIGHTLY_BUILD@
5411 mirror: always
5412
5413 # Mimic Chrome's window.getSelection().toString() behaviour
5414 - name: dom.selection.mimic_chrome_tostring.enabled
5415 type: bool
5416 value: true
5417 mirror: always
5418
5419 # When this pref is enabled:
5420 # - Shadow DOM is not pierced by default anymore
5421 # - The method accepts optional CaretPositionFromPointOptions to allow piercing
5422 # certain ShadowRoots
5423 #
5424 # https://drafts.csswg.org/cssom-view/#dom-document-caretpositionfrompoint
5425 - name: dom.shadowdom.new_caretPositionFromPoint_behavior.enabled
5426 type: bool
5427 value: @IS_NIGHTLY_BUILD@
5428 mirror: always
5429
5430 # NOTE: This preference is used in unit tests. If it is removed or its default
5431 # value changes, please update test_sharedMap_static_prefs.js accordingly.
5432 - name: dom.webcomponents.shadowdom.report_usage
5433 type: bool
5434 value: false
5435 mirror: always
5436
5437 # Is the constructed flag error check disabled during adoptedStyleSheets setter?
5438 # https://github.com/w3c/csswg-drafts/issues/10013
5439 - name: dom.webcomponents.lift-adoptedstylesheets-restriction.enabled
5440 type: RelaxedAtomicBool
5441 value: false
5442 mirror: always
5443
5444 # Is support for the Web GPU API enabled?
5445 - name: dom.webgpu.enabled
5446 type: RelaxedAtomicBool
5447 value: @IS_EARLY_BETA_OR_EARLIER@
5448 mirror: always
5449
5450 # Is support for the Web GPU API enabled on DOM workers?
5451 - name: dom.webgpu.workers.enabled
5452 type: RelaxedAtomicBool
5453 value: @IS_EARLY_BETA_OR_EARLIER@
5454 mirror: always
5455
5456 # Is WebGPU allowed to run in the parent process? This should be false if
5457 # on a platform that supports the GPU process, else true.
5458 - name: dom.webgpu.allow-in-parent
5459 type: bool
5460 #if defined(XP_WIN) || defined(ANDROID)
5461 value: false
5462 #else
5463 value: true
5464 #endif
5465 mirror: once
5466
5467 # Comma-separated list of wgpu backend names to permit in WebGPU adapters.
5468 #
5469 # If non-empty, this is parsed by `wgpu_core::instance::parse_backends_from_comma_list` to
5470 # produce a `wgpu_types::Backends` bitset used to create a `wgpu_core::hub::Global`. As of
5471 # 2023-3-22, recognized names are:
5472 #
5473 # "vulkan" | "vk" => Backends::VULKAN,
5474 # "dx12" | "d3d12" => Backends::DX12,
5475 # "dx11" | "d3d11" => Backends::DX11,
5476 # "metal" | "mtl" => Backends::METAL,
5477 # "opengl" | "gles" | "gl" => Backends::GL,
5478 # "webgpu" => Backends::BROWSER_WEBGPU,
5479 - name: dom.webgpu.wgpu-backend
5480 type: DataMutexString
5481 value: ""
5482 mirror: always
5483 rust: true
5484
5485 - name: dom.webgpu.allow-present-without-readback
5486 type: RelaxedAtomicBool
5487 #if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_LINUX) && !defined(ANDROID)
5488 value: true
5489 #else
5490 value: false
5491 #endif
5492 mirror: always
5493
5494 # For testing purposes, crash if we don't get a hardware adapter.
5495 - name: dom.webgpu.testing.assert-hardware-adapter
5496 type: RelaxedAtomicBool
5497 value: false
5498 mirror: always
5499 rust: true
5500
5501 # Whether to pass labels to the hardware abstraction layer. This is only useful when
5502 # inspecting a WebGPU workload in a GPU debugging tool like renderdoc. Enabling it
5503 # exposes poorly tested driver API surfaces so it should not be enabled by default.
5504 - name: dom.webgpu.hal-labels
5505 type: bool
5506 value: false
5507 mirror: once
5508 rust: true
5509
5510 # Is support for HTMLInputElement.webkitEntries enabled?
5511 - name: dom.webkitBlink.filesystem.enabled
5512 type: bool
5513 value: @IS_NOT_MOBILE@
5514 mirror: always
5515
5516 # Whether the WebMIDI API is enabled
5517 - name: dom.webmidi.enabled
5518 type: bool
5519 value: @IS_NOT_MOBILE@
5520 mirror: always
5521
5522 # midi permission is addon-gated
5523 - name: dom.webmidi.gated
5524 type: bool
5525 value: true
5526 mirror: always
5527
5528 - name: dom.webnotifications.allowcrossoriginiframe
5529 type: RelaxedAtomicBool
5530 value: false
5531 mirror: always
5532
5533 - name: dom.webnotifications.forbid_nested_first_party.enabled
5534 type: RelaxedAtomicBool
5535 value: true
5536 mirror: always
5537
5538 - name: dom.webnotifications.enabled
5539 type: RelaxedAtomicBool
5540 value: true
5541 mirror: always
5542
5543 - name: dom.webnotifications.privateBrowsing.enabled
5544 type: RelaxedAtomicBool
5545 value: true
5546 mirror: always
5547
5548 - name: dom.webnotifications.requireuserinteraction
5549 type: RelaxedAtomicBool
5550 value: true
5551 mirror: always
5552
5553 - name: dom.webnotifications.requireinteraction.enabled
5554 type: RelaxedAtomicBool
5555 #if defined(XP_WIN) || defined(XP_LINUX)
5556 value: true
5557 #else
5558 value: @IS_NIGHTLY_BUILD@
5559 #endif
5560 mirror: always
5561
5562 - name: dom.webnotifications.silent.enabled
5563 type: RelaxedAtomicBool
5564 value: true
5565 mirror: always
5566
5567 - name: dom.webnotifications.vibrate.enabled
5568 type: RelaxedAtomicBool
5569 value: false
5570 mirror: always
5571
5572 - name: dom.webnotifications.actions.enabled
5573 type: RelaxedAtomicBool
5574 #if defined(ANDROID)
5575 value: false
5576 #else
5577 value: @IS_NIGHTLY_BUILD@
5578 #endif
5579 mirror: always
5580
5581 # Setting log level for notification modules.
5582 # The value follows the enum ConsoleLogLevel in ConsoleInstance.webidl.
5583 - name: dom.webnotifications.loglevel
5584 type: String
5585 value: Error
5586 mirror: never
5587
5588 # Allow notificationclick to open window only during the limited timeframe.
5589 - name: dom.webnotifications.disable_open_click_delay
5590 type: RelaxedAtomicUint32
5591 #if defined(ANDROID)
5592 # Allow service workers to open windows for a longer period after a notification
5593 # click on mobile. This is to account for some devices being quite slow (bug 1409761)
5594 value: 5000
5595 #else
5596 value: 1000
5597 #endif
5598 mirror: always
5599
5600 - name: dom.worker.canceling.timeoutMilliseconds
5601 type: RelaxedAtomicUint32
5602 value: 30000 # 30 seconds
5603 mirror: always
5604
5605 # Enables the dispatching of console log events from worker threads to the
5606 # main-thread.
5607 - name: dom.worker.console.dispatch_events_to_main_thread
5608 type: RelaxedAtomicBool
5609 value: true
5610 mirror: always
5611
5612 - name: dom.workers.testing.enabled
5613 type: RelaxedAtomicBool
5614 value: false
5615 mirror: always
5616
5617 # WebIDL test prefs.
5618 - name: dom.webidl.test1
5619 type: bool
5620 value: true
5621 mirror: always
5622 - name: dom.webidl.test2
5623 type: bool
5624 value: true
5625 mirror: always
5626
5627 # WebShare API - exposes navigator.share()
5628 - name: dom.webshare.enabled
5629 type: bool
5630 #ifdef XP_WIN
5631 value: @IS_EARLY_BETA_OR_EARLIER@
5632 #else
5633 value: false
5634 #endif
5635 mirror: always
5636
5637 # WebShare API - allows WebShare without user interaction (for tests only).
5638 - name: dom.webshare.requireinteraction
5639 type: bool
5640 value: true
5641 mirror: always
5642
5643 # Hide the confirm dialog when a POST request is reloaded.
5644 - name: dom.confirm_repost.testing.always_accept
5645 type: bool
5646 value: false
5647 mirror: always
5648
5649 # Whether we should suspend inactive tabs or not
5650 - name: dom.suspend_inactive.enabled
5651 type: bool
5652 value: @IS_ANDROID@
5653 mirror: always
5654
5655 # The following three prefs control the maximum script run time before slow
5656 # script warning.
5657
5658 # Controls the time that a content script can run before showing a
5659 # notification.
5660 - name: dom.max_script_run_time
5661 type: int32_t
5662 value: 10
5663 mirror: always
5664
5665 # Controls whether we want to wait for user input before surfacing notifying
5666 # the parent process about a long-running script.
5667 - name: dom.max_script_run_time.require_critical_input
5668 type: bool
5669 # On desktop, we don't want to annoy the user with a notification if they're
5670 # not interacting with the browser. On Android however, we automatically
5671 # terminate long-running scripts, so we want to make sure we don't get in the
5672 # way of that by waiting for input.
5673 #if defined(MOZ_WIDGET_ANDROID)
5674 value: false
5675 #else
5676 value: true
5677 #endif
5678 mirror: always
5679
5680 # Controls if a content script will be aborted on child process shutdown.
5681 - name: dom.abort_script_on_child_shutdown
5682 type: bool
5683 value: true
5684 mirror: always
5685
5686 - name: dom.max_chrome_script_run_time
5687 type: int32_t
5688 value: 0
5689 mirror: always
5690
5691 - name: dom.max_ext_content_script_run_time
5692 type: int32_t
5693 value: 5
5694 mirror: always
5695
5696 # Let Resize Observer report the size of all fragments, and not just the
5697 # first one, as per CSSWG resolution:
5698 # https://github.com/w3c/csswg-drafts/issues/3673#issuecomment-467221565
5699 - name: dom.resize_observer.support_fragments
5700 type: bool
5701 value: false
5702 mirror: always
5703
5704 # Whether allowing using <tab> to move focus to root elements
5705 - name: dom.disable_tab_focus_to_root_element
5706 type: bool
5707 value: true
5708 mirror: always
5709
5710 # Whether or not the `Origin-Agent-Cluster` HTTP header is enabled.
5711 - name: dom.origin_agent_cluster.enabled
5712 type: bool
5713 value: true
5714 mirror: always
5715
5716 # Whether or not agent clusters are origin-keyed by default, blocking the use of
5717 # `document.domain`.
5718 - name: dom.origin_agent_cluster.default
5719 type: bool
5720 value: false
5721 mirror: always
5722
5723 # Whether to make the document name getter follow the spec.
5724 - name: dom.document.name_getter_follow_spec.enabled
5725 type: bool
5726 value: true
5727 mirror: always
5728
5729 #---------------------------------------------------------------------------
5730 # Prefs starting with "editor"
5731 #---------------------------------------------------------------------------
5732
5733 # Default background color of HTML editor. This is referred only when
5734 # "editor.use_custom_colors" is set to `true`.
5735 - name: editor.background_color
5736 type: String
5737 value: "#FFFFFF"
5738 mirror: never
5739
5740 # Delay to mask last input character in password fields.
5741 # If negative value, to use platform's default behavior.
5742 # If 0, no delay to mask password.
5743 # Otherwise, password fields unmask last input character(s) during specified
5744 # time (in milliseconds).
5745 - name: editor.password.mask_delay
5746 type: int32_t
5747 value: -1
5748 mirror: always
5749
5750 # Set to true when you test mask_delay of password editor. If this is set
5751 # to true, "MozLastInputMasked" is fired when last input characters are
5752 # masked by timeout.
5753 - name: editor.password.testing.mask_delay
5754 type: bool
5755 value: false
5756 mirror: always
5757
5758 # How line breakers are treated in single line editor:
5759 # * 0: Only remove the leading and trailing newlines.
5760 # * 1: Remove the first newline and all characters following it.
5761 # * 2: Replace newlines with spaces (default of Firefox).
5762 # * 3: Remove newlines from the string.
5763 # * 4: Replace newlines with commas (default of Thunderbird).
5764 # * 5: Collapse newlines and surrounding white space characters and
5765 # remove them from the string.
5766 # Other values are treated as 1.
5767 - name: editor.singleLine.pasteNewlines
5768 type: int32_t
5769 value: 2
5770 mirror: always
5771
5772 # Whether user pastes should be truncated.
5773 - name: editor.truncate_user_pastes
5774 type: bool
5775 value: true
5776 mirror: always
5777
5778 # When this is set to `true`, "editor.background_color" must be set, then,
5779 # the value is treated as default background color of the HTML editor.
5780 # If `false` and "browser.display.use_system_colors" is set to `true`,
5781 # "browser.display.background_color" is used instead.
5782 # Otherwise, no color is used as default background color.
5783 # This pref is for Thunderbird and SeaMonkey.
5784 - name: editor.use_custom_colors
5785 type: bool
5786 value: false
5787 mirror: always
5788
5789 # If this is set to `true`, CSS mode of style editor is enabled by default
5790 # unless it's a mail editor.
5791 # This pref is for Thunderbird and SeaMonkey.
5792 - name: editor.use_css
5793 type: bool
5794 value: false
5795 mirror: always
5796
5797 # Whether enabling blink compatible white-space normalizer or keep using
5798 # Gecko's traditional white-space normalizer.
5799 - name: editor.white_space_normalization.blink_compatible
5800 type: bool
5801 value: true
5802 mirror: always
5803
5804 # General prefs for editor, indicating whether Gecko-specific editing UI is
5805 # enabled by default. Those UIs are not implemented by any other browsers. So,
5806 # only Firefox users can change some styles with them. This means that Firefox
5807 # users may get unexpected result of some web apps if they assume that users
5808 # cannot change such styles.
5809 - name: editor.resizing.enabled_by_default
5810 type: bool
5811 value: false
5812 mirror: always
5813 - name: editor.inline_table_editing.enabled_by_default
5814 type: bool
5815 value: false
5816 mirror: always
5817 - name: editor.positioning.enabled_by_default
5818 type: bool
5819 value: false
5820 mirror: always
5821
5822 # Controls if a double click word selection also deletes one adjacent whitespace
5823 # (if feasible). This mimics native behaviour on MacOS.
5824 - name: editor.word_select.delete_space_after_doubleclick_selection
5825 type: bool
5826 #ifdef XP_MACOSX
5827 value: true
5828 #else
5829 value: false
5830 #endif
5831 mirror: always
5832
5833 #---------------------------------------------------------------------------
5834 # Prefs starting with "extensions."
5835 #---------------------------------------------------------------------------
5836
5837 # Pref that enforces the use of web_accessible_resources for content loads.
5838 # This behavior is default for MV3. The pref controls this for MV2.
5839 - name: extensions.content_web_accessible.enabled
5840 type: bool
5841 value: false
5842 mirror: always
5843
5844 # Whether the InstallTrigger implementation should be enabled (or hidden and
5845 # none of its methods available).
5846 - name: extensions.InstallTriggerImpl.enabled
5847 type: bool
5848 value: false
5849 mirror: always
5850
5851 # Whether the InstallTrigger implementation should be enabled (or completely
5852 # hidden), separate from InstallTriggerImpl because InstallTrigger is improperly
5853 # used also for UA detection.
5854 - name: extensions.InstallTrigger.enabled
5855 type: bool
5856 value: true
5857 mirror: always
5858
5859 # Whether the background.service_worker in the extension manifest.json file
5860 # is enabled.
5861 # all.js locks the pref to false when MOZ_WEBEXT_WEBIDL_ENABLED is false.
5862 - name: extensions.backgroundServiceWorker.enabled
5863 type: bool
5864 value: false
5865 mirror: once
5866
5867 # Maximum number of misspelled words in a text.
5868 - name: extensions.spellcheck.inline.max-misspellings
5869 type: int32_t
5870 value: 500
5871 mirror: always
5872
5873 # Whether the extensions can register a service worker on its own.
5874 # NOTE: WebExtensions Framework ability to register a background service worker
5875 # is not controlled by this pref, only the extension code ability to use
5876 # navigator.serviceWorker.register is locked behind this pref.
5877 - name: extensions.serviceWorkerRegister.allowed
5878 type: RelaxedAtomicBool
5879 value: false
5880 mirror: always
5881
5882 # When true, content scripts of MV2 extensions can run in blob:-documents without
5883 # requiring match_origin_as_fallback to be set, to revert bug 1897113.
5884 # TODO bug 1899134: Remove this pref.
5885 - name: extensions.script_blob_without_match_origin_as_fallback
5886 type: bool
5887 value: false
5888 mirror: always
5889
5890 # Legacy behavior on filterResponse calls on intercepted sw script requests.
5891 - name: extensions.filterResponseServiceWorkerScript.disabled
5892 type: bool
5893 value: false
5894 mirror: always
5895
5896 # This pref governs whether we run webextensions in a separate process (true)
5897 # or the parent/main process (false)
5898 - name: extensions.webextensions.remote
5899 type: RelaxedAtomicBool
5900 value: false
5901 mirror: always
5902
5903 # Whether to expose the MockExtensionAPI test interface in tests.
5904 # The interface MockExtensionAPI doesn't represent a real extension API,
5905 # it is only available in test and does include a series of cases useful
5906 # to test the API request handling without tying the unit test to a
5907 # specific WebExtensions API.
5908 - name: extensions.webidl-api.expose_mock_interface
5909 type: RelaxedAtomicBool
5910 value: false
5911 mirror: always
5912
5913 # Whether to allow acccess to AddonManager to developer sites for testing
5914 # NOTE: We'd like this to be a "hidden" pref once StaticPrefs supports it.
5915 - name: extensions.webapi.testing
5916 type: RelaxedAtomicBool
5917 value: false
5918 mirror: always
5919
5920 # Automation-only pref to allow AddonManager over insecure protocols.
5921 # NOTE: We'd like this to be a "hidden" pref once StaticPrefs supports it.
5922 - name: extensions.webapi.testing.http
5923 type: RelaxedAtomicBool
5924 value: false
5925 mirror: always
5926
5927 # Whether to expose the AddonManager web API.
5928 - name: extensions.webapi.enabled
5929 type: RelaxedAtomicBool
5930 value: @IS_NOT_ANDROID@
5931 mirror: always
5932
5933 #---------------------------------------------------------------------------
5934 # Prefs starting with "fission."
5935 #---------------------------------------------------------------------------
5936
5937 # Whether to enable Fission in new windows by default.
5938 # IMPORTANT: This preference should *never* be checked directly, since any
5939 # session can contain a mix of Fission and non-Fission windows. Instead,
5940 # callers should check whether the relevant nsILoadContext has the
5941 # `useRemoteSubframes` flag set.
5942 # Callers which cannot use `useRemoteSubframes` must use
5943 # `Services.appinfo.fissionAutostart` or `mozilla::FissionAutostart()` to check
5944 # whether fission is enabled by default.
5945 - name: fission.autostart
5946 type: bool
5947 value: @IS_NOT_MOBILE@
5948 mirror: never
5949
5950 # Disable storing the session history in the parent process, and accessing it
5951 # over IPC from the child processes.
5952 - name: fission.disableSessionHistoryInParent
5953 type: bool
5954 #if defined(MOZ_WIDGET_ANDROID) && !defined(NIGHTLY_BUILD)
5955 value: true
5956 #else
5957 value: false
5958 #endif
5959 mirror: once
5960 do_not_use_directly: true
5961
5962 # If session history is stored in the parent process, enable bfcache for it.
5963 - name: fission.bfcacheInParent
5964 type: bool
5965 value: true
5966 mirror: always
5967 do_not_use_directly: true
5968
5969 # Allow renaming of processes from Private Windows to the eTLD+1 on nightly
5970 # Setting this pref creates a privacy leak, but helps greatly with
5971 # debugging.
5972 - name: fission.processPrivateWindowSiteNames
5973 type: bool
5974 value: false
5975 mirror: always
5976
5977 # Allow renaming of process names to the eTLD+1 on all versions, NOT
5978 # including processes from Private Windows
5979 # Setting this pref creates a privacy leak, but helps greatly with
5980 # debugging
5981 - name: fission.processSiteNames
5982 type: bool
5983 value: false
5984 mirror: always
5985
5986 # Allow showing of current profile along with process names, NOT
5987 # including processes from Private Windows
5988 # Setting this pref creates a privacy leak, but helps greatly with
5989 # debugging
5990 - name: fission.processProfileName
5991 type: bool
5992 value: false
5993 mirror: always
5994
5995 # The strategy used to control how sites are isolated into separate processes
5996 # when Fisison is enabled. This pref has no effect if Fission is disabled.
5997 # See the `WebContentIsolationStrategy` enum in `ProcessIsolation.cpp`.
5998 - name: fission.webContentIsolationStrategy
5999 type: uint32_t
6000 value: 1
6001 mirror: always
6002
6003 # Time in seconds before a site loaded with the Cross-Origin-Opener-Policy
6004 # header is no longer considered high-value and isolated in the "highValueCOOP"
6005 # configuration.
6006 - name: fission.highValue.coop.expiration
6007 type: uint32_t
6008 value: 2592000 # 30 days (in seconds)
6009 mirror: always
6010
6011 # Time in seconds before a site are considered high-value by the login detection
6012 # service is no longer considered high-value and isolated in the "highValueHasSavedLogin"
6013 # or "highValueIsLoggedIn" configuration.
6014 - name: fission.highValue.login.expiration
6015 type: uint32_t
6016 value: 2592000 # 30 days (in seconds)
6017 mirror: always
6018
6019 # If true, capture login attemp, and add "highValueIsLoggedIn" permission to
6020 # the permission manager no matter whether fission is enabled and
6021 # WebContentIsolationStrateg is set to IsolateHighvalue.
6022 - name: fission.highValue.login.monitor
6023 type: bool
6024 value: @IS_ANDROID@
6025 mirror: always
6026
6027 # If true, do not send blocklisted preference values to the subprocess
6028 - name: fission.omitBlocklistedPrefsInSubprocesses
6029 type: RelaxedAtomicBool
6030 value: true
6031 mirror: always
6032
6033 # If true, crash when a blocklisted preference is accessed in a subprocess
6034 - name: fission.enforceBlocklistedPrefsInSubprocesses
6035 type: RelaxedAtomicBool
6036 #ifdef DEBUG
6037 value: true
6038 #else
6039 value: false
6040 #endif
6041 mirror: always
6042
6043 #---------------------------------------------------------------------------
6044 # Prefs starting with "font."
6045 #---------------------------------------------------------------------------
6046
6047 # A value greater than zero enables font size inflation for
6048 # pan-and-zoom UIs, so that the fonts in a block are at least the size
6049 # that, if a block's width is scaled to match the device's width, the
6050 # fonts in the block are big enough that at most the pref value ems of
6051 # text fit in *the width of the device*.
6052 #
6053 # When both this pref and the next are set, the larger inflation is used.
6054 - name: font.size.inflation.emPerLine
6055 type: uint32_t
6056 value: 0
6057 mirror: always
6058
6059 # A value greater than zero enables font size inflation for
6060 # pan-and-zoom UIs, so that if a block's width is scaled to match the
6061 # device's width, the fonts in a block are at least the given font size.
6062 # The value given is in twips, i.e., 1/20 of a point, or 1/1440 of an inch.
6063 #
6064 # When both this pref and the previous are set, the larger inflation is used.
6065 - name: font.size.inflation.minTwips
6066 type: uint32_t
6067 value: 0
6068 mirror: always
6069
6070 # In products with multi-mode pan-and-zoom and non-pan-and-zoom UIs,
6071 # this pref forces font inflation to always be enabled in all modes.
6072 # That is, any heuristics used to detect pan-and-zoom
6073 # vs. non-pan-and-zoom modes are disabled and all content is treated
6074 # as pan-and-zoom mode wrt font inflation.
6075 #
6076 # This pref has no effect if font inflation is not enabled through
6077 # either of the prefs above. It has no meaning in single-mode UIs.
6078 - name: font.size.inflation.forceEnabled
6079 type: bool
6080 value: false
6081 mirror: always
6082
6083 # In products with multi-mode pan-and-zoom and non-pan-and-zoom UIs,
6084 # this pref disables font inflation in master-process contexts where
6085 # existing heuristics can't be used determine enabled-ness.
6086 #
6087 # This pref has no effect if font inflation is not enabled through
6088 # either of the prefs above. The "forceEnabled" pref above overrides
6089 # this pref.
6090 - name: font.size.inflation.disabledInMasterProcess
6091 type: bool
6092 value: false
6093 mirror: always
6094
6095 # Defines the font size inflation mapping intercept parameter.
6096 #
6097 # Font size inflation computes a minimum font size, m, based on
6098 # other preferences (see font.size.inflation.minTwips and
6099 # font.size.inflation.emPerLine, above) and the width of the
6100 # frame in which the text resides. Using this minimum, a specified
6101 # font size, s, is mapped to an inflated font size, i, using an
6102 # equation that varies depending on the value of the font size
6103 # inflation mapping intercept parameter, P.
6104 #
6105 # If the intercept parameter is negative, then the following mapping
6106 # function is used:
6107 #
6108 # i = m + s
6109 #
6110 # If the intercept parameter is non-negative, then the mapping function
6111 # is a function such that its graph meets the graph of i = s at the
6112 # point where both i and s are (1 + P/2) * m for values of s that are
6113 # large enough. This means that when s=0, i is always equal to m.
6114 - name: font.size.inflation.mappingIntercept
6115 type: int32_t
6116 value: 1
6117 mirror: always
6118
6119 # Since the goal of font size inflation is to avoid having to
6120 # repeatedly scroll side to side to read a block of text, and there are
6121 # a number of page layouts where a relatively small chunk of text is
6122 # better off not being inflated according to the same algorithm we use
6123 # for larger chunks of text, we want a threshold for an amount of text
6124 # that triggers font size inflation. This preference controls that
6125 # threshold.
6126 #
6127 # It controls the threshold used within an *approximation* of the
6128 # number of lines of text we use. In particular, if we assume that
6129 # each character (collapsing collapsible whitespace) has a width the
6130 # same as the em-size of the font (when, normally, it's actually quite
6131 # a bit smaller on average), this preference gives the percentage of a
6132 # number of lines of text we'd need to trigger inflation. This means
6133 # that a percentage of 100 means that we'd need a number of characters
6134 # (we know the font size and the width) equivalent to one line of
6135 # square text (which is actually a lot less than a real line of text).
6136 #
6137 # A value of 0 means there's no character length threshold.
6138 - name: font.size.inflation.lineThreshold
6139 type: uint32_t
6140 value: 400
6141 mirror: always
6142
6143 # This controls the percentage that fonts will be inflated, if font
6144 # size inflation is enabled. Essentially, if we have a specified font
6145 # size, s, and an inflated font size, i, this specifies that the ratio
6146 # i/s * 100 should never exceed the value of this preference. In order
6147 # for this preference to have any effect, its value must be greater
6148 # than 100, since font inflation can never decrease the ratio i/s.
6149 - name: font.size.inflation.maxRatio
6150 type: uint32_t
6151 value: 0
6152 mirror: always
6153
6154 #---------------------------------------------------------------------------
6155 # Prefs starting with "full-screen-api."
6156 #---------------------------------------------------------------------------
6157
6158 - name: full-screen-api.enabled
6159 type: bool
6160 value: true
6161 mirror: always
6162
6163 - name: full-screen-api.allow-trusted-requests-only
6164 type: bool
6165 value: true
6166 mirror: always
6167
6168 - name: full-screen-api.mouse-event-allow-left-button-only
6169 type: bool
6170 value: true
6171 mirror: always
6172
6173 - name: full-screen-api.exit-on.windowOpen
6174 type: bool
6175 value: true
6176 mirror: always
6177
6178 - name: full-screen-api.exit-on.windowRaise
6179 type: bool
6180 value: true
6181 mirror: always
6182
6183 - name: full-screen-api.pointer-lock.enabled
6184 type: bool
6185 value: true
6186 mirror: always
6187
6188 # whether to prevent the top level widget from going fullscreen
6189 - name: full-screen-api.ignore-widgets
6190 type: bool
6191 value: false
6192 mirror: always
6193
6194 #---------------------------------------------------------------------------
6195 # Prefs starting with "fuzzing.". It's important that these can only be
6196 # checked in fuzzing builds (when FUZZING is defined), otherwise you could
6197 # enable the fuzzing stuff on your regular build which would be bad :)
6198 #---------------------------------------------------------------------------
6199
6200 #ifdef FUZZING
6201 - name: fuzzing.enabled
6202 type: bool
6203 #ifdef FUZZING_SNAPSHOT
6204 value: true
6205 #else
6206 value: false
6207 #endif
6208 mirror: always
6209
6210 - name: fuzzing.necko.enabled
6211 type: RelaxedAtomicBool
6212 value: false
6213 mirror: always
6214
6215 - name: fuzzing.necko.http3
6216 type: RelaxedAtomicBool
6217 value: false
6218 mirror: always
6219 rust: true
6220
6221 #ifdef FUZZING_SNAPSHOT
6222 - name: fuzzing.snapshot.enabled
6223 type: RelaxedAtomicBool
6224 value: true
6225 mirror: always
6226 #endif
6227
6228 # This configures a virtual authenticator for WebAuthn. The value encodes the
6229 # arguments to the WebDriver "Add Virtual Authenticator" extension command.
6230 # Bits 0, 1, 2, and 3 encode "is_user_verified", "is_user_consenting",
6231 # "has_user_verification", and "has_resident_key" in that order. Bit 5 encodes
6232 # the transport, either "usb" (0) or "internal" (1). Bits 6 and 7 encode the
6233 # protocol, either "ctap1/u2f" (1), "ctap2" (2), or "ctap2_1" (3). Note that
6234 # the valid protocol values are non-zero---an authenticator will not be
6235 # configured if this pref is set to zero. Changing this pref requires
6236 # a restart.
6237 - name: fuzzing.webauthn.authenticator_config
6238 type: RelaxedAtomicUint32
6239 value: 0
6240 mirror: always
6241 rust: true
6242 #endif
6243
6244 #---------------------------------------------------------------------------
6245 # Prefs starting with "general."
6246 #---------------------------------------------------------------------------
6247
6248 - name: general.aboutConfig.enable
6249 type: bool
6250 value: true
6251 mirror: always
6252
6253 # Limits the depth of recursive conversion of data when opening
6254 # a content to view. This is mostly intended to prevent infinite
6255 # loops with faulty converters involved.
6256 - name: general.document_open_conversion_depth_limit
6257 type: uint32_t
6258 value: 20
6259 mirror: always
6260
6261 - name: general.smoothScroll
6262 type: RelaxedAtomicBool
6263 value: true
6264 mirror: always
6265
6266 # This pref and general.smoothScroll.stopDecelerationWeighting determine
6267 # the timing function.
6268 - name: general.smoothScroll.currentVelocityWeighting
6269 type: AtomicFloat
6270 value: 0.25
6271 mirror: always
6272
6273 # To connect consecutive scroll events into a continuous flow, the animation's
6274 # duration should be longer than scroll events intervals (or else the scroll
6275 # will stop before the next event arrives - we're guessing the next interval
6276 # by averaging recent intervals).
6277 # This defines how much longer the duration is compared to the events
6278 # interval (percentage).
6279 - name: general.smoothScroll.durationToIntervalRatio
6280 type: RelaxedAtomicInt32
6281 value: 200
6282 mirror: always
6283
6284 - name: general.smoothScroll.lines
6285 type: RelaxedAtomicBool
6286 value: true
6287 mirror: always
6288
6289 - name: general.smoothScroll.lines.durationMaxMS
6290 type: RelaxedAtomicInt32
6291 value: 150
6292 mirror: always
6293
6294 - name: general.smoothScroll.lines.durationMinMS
6295 type: RelaxedAtomicInt32
6296 value: 150
6297 mirror: always
6298
6299 - name: general.smoothScroll.mouseWheel
6300 type: RelaxedAtomicBool
6301 value: true
6302 mirror: always
6303
6304 - name: general.smoothScroll.mouseWheel.durationMaxMS
6305 type: RelaxedAtomicInt32
6306 value: 200
6307 mirror: always
6308
6309 - name: general.smoothScroll.mouseWheel.durationMinMS
6310 type: RelaxedAtomicInt32
6311 value: 50
6312 mirror: always
6313
6314 - name: general.smoothScroll.other
6315 type: RelaxedAtomicBool
6316 value: true
6317 mirror: always
6318
6319 - name: general.smoothScroll.other.durationMaxMS
6320 type: RelaxedAtomicInt32
6321 value: 150
6322 mirror: always
6323
6324 - name: general.smoothScroll.other.durationMinMS
6325 type: RelaxedAtomicInt32
6326 value: 150
6327 mirror: always
6328
6329 - name: general.smoothScroll.pages
6330 type: RelaxedAtomicBool
6331 value: true
6332 mirror: always
6333
6334 - name: general.smoothScroll.pages.durationMaxMS
6335 type: RelaxedAtomicInt32
6336 value: 150
6337 mirror: always
6338
6339 - name: general.smoothScroll.pages.durationMinMS
6340 type: RelaxedAtomicInt32
6341 value: 150
6342 mirror: always
6343
6344 - name: general.smoothScroll.scrollbars
6345 type: RelaxedAtomicBool
6346 value: true
6347 mirror: always
6348
6349 - name: general.smoothScroll.scrollbars.durationMaxMS
6350 type: RelaxedAtomicInt32
6351 value: 150
6352 mirror: always
6353
6354 - name: general.smoothScroll.scrollbars.durationMinMS
6355 type: RelaxedAtomicInt32
6356 value: 150
6357 mirror: always
6358
6359 - name: general.smoothScroll.pixels
6360 type: RelaxedAtomicBool
6361 value: true
6362 mirror: always
6363
6364 - name: general.smoothScroll.pixels.durationMaxMS
6365 type: RelaxedAtomicInt32
6366 value: 150
6367 mirror: always
6368
6369 - name: general.smoothScroll.pixels.durationMinMS
6370 type: RelaxedAtomicInt32
6371 value: 150
6372 mirror: always
6373
6374 # This pref and general.smoothScroll.currentVelocityWeighting determine
6375 # the timing function.
6376 - name: general.smoothScroll.stopDecelerationWeighting
6377 type: AtomicFloat
6378 value: 0.4f
6379 mirror: always
6380
6381 # Alternative smooth scroll physics. ("MSD" = Mass-Spring-Damper)
6382 - name: general.smoothScroll.msdPhysics.enabled
6383 type: RelaxedAtomicBool
6384 value: @IS_NIGHTLY_BUILD@
6385 mirror: always
6386
6387 - name: general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS
6388 type: RelaxedAtomicInt32
6389 value: 120
6390 mirror: always
6391
6392 - name: general.smoothScroll.msdPhysics.motionBeginSpringConstant
6393 type: RelaxedAtomicInt32
6394 value: 1250
6395 mirror: always
6396
6397 - name: general.smoothScroll.msdPhysics.slowdownMinDeltaMS
6398 type: RelaxedAtomicInt32
6399 value: 12
6400 mirror: always
6401
6402 - name: general.smoothScroll.msdPhysics.slowdownMinDeltaRatio
6403 type: AtomicFloat
6404 value: 1.3f
6405 mirror: always
6406
6407 - name: general.smoothScroll.msdPhysics.slowdownSpringConstant
6408 type: RelaxedAtomicInt32
6409 value: 2000
6410 mirror: always
6411
6412 - name: general.smoothScroll.msdPhysics.regularSpringConstant
6413 type: RelaxedAtomicInt32
6414 value: 1000
6415 mirror: always
6416
6417 #---------------------------------------------------------------------------
6418 # Prefs starting with "geo."
6419 #---------------------------------------------------------------------------
6420
6421 # Is support for Navigator.geolocation enabled?
6422 - name: geo.enabled
6423 type: bool
6424 value: true
6425 mirror: always
6426
6427 # Time, in milliseconds, to wait for the location provider to spin up.
6428 - name: geo.timeout
6429 type: int32_t
6430 value: 6000
6431 mirror: always
6432
6433 #ifdef MOZ_ENABLE_DBUS
6434 # Whether to use Geoclue location provider (if available on the system).
6435 - name: geo.provider.use_geoclue
6436 type: bool
6437 value: true
6438 mirror: always
6439
6440 # Whether to always provide high location accuracy, even if site
6441 # doesn't actually request this level of accuracy.
6442 # Almost no site correctly requests high accuracy so force it by default
6443 # for compatibility with other geolocation providers.
6444 - name: geo.provider.geoclue.always_high_accuracy
6445 type: bool
6446 value: true
6447 mirror: always
6448
6449 # Time in milliseconds after which geoclue will try to fallback to MLS if no
6450 # location is received after successful start.
6451 - name: geo.provider.geoclue.mls_fallback_timeout_ms
6452 type: uint32_t
6453 value: 5000
6454 mirror: always
6455 #endif
6456
6457 # If true, open system preferences for the user when geolocation is requested
6458 # by the user but OS geolocation permission is not available.
6459 - name: geo.prompt.open_system_prefs
6460 type: bool
6461 value: true
6462 mirror: always
6463
6464 #---------------------------------------------------------------------------
6465 # Prefs starting with "gfx."
6466 #---------------------------------------------------------------------------
6467
6468 # Allow 24-bit colour when the hardware supports it.
6469 - name: gfx.android.rgb16.force
6470 type: bool
6471 value: false
6472 mirror: once
6473
6474 - name: gfx.apitrace.enabled
6475 type: bool
6476 value: false
6477 mirror: once
6478
6479 - name: gfx.blithelper.precision
6480 type: RelaxedAtomicUint32
6481 value: 2 # { 0: lowp, 1: mediump, 2: highp }
6482 mirror: always
6483
6484 - name: gfx.blithelper.lut-size.rgb.b
6485 type: RelaxedAtomicUint32
6486 value: 15
6487 mirror: always
6488 - name: gfx.blithelper.lut-size.rgb.g
6489 type: RelaxedAtomicUint32
6490 value: 31
6491 mirror: always
6492 - name: gfx.blithelper.lut-size.rgb.r
6493 type: RelaxedAtomicUint32
6494 value: 31
6495 mirror: always
6496
6497 - name: gfx.blithelper.lut-size.ycbcr.cb
6498 type: RelaxedAtomicUint32
6499 value: 15
6500 mirror: always
6501 - name: gfx.blithelper.lut-size.ycbcr.cr
6502 type: RelaxedAtomicUint32
6503 value: 31
6504 mirror: always
6505 - name: gfx.blithelper.lut-size.ycbcr.y
6506 type: RelaxedAtomicUint32
6507 value: 31
6508 mirror: always
6509
6510 # Nb: we ignore this pref on release and beta.
6511 - name: gfx.blocklist.all
6512 type: int32_t
6513 value: 0
6514 mirror: once
6515
6516 #if defined(XP_DARWIN)
6517 - name: gfx.cairo_quartz_cg_layer.enabled
6518 type: bool
6519 value: true
6520 mirror: always
6521 #endif
6522
6523 - name: gfx.canvas.accelerated
6524 type: bool
6525 #if defined(XP_MACOSX) || defined(XP_LINUX) && !defined(ANDROID)
6526 value: true
6527 #elif defined(MOZ_WIDGET_ANDROID)
6528 value: true
6529 #elif defined(XP_WIN)
6530 value: true
6531 #else
6532 value: false
6533 #endif
6534 mirror: always
6535
6536 - name: gfx.canvas.accelerated.allow-in-parent
6537 type: bool
6538 #if defined(XP_WIN) || defined(ANDROID)
6539 value: false
6540 #else
6541 value: true
6542 #endif
6543 mirror: once
6544
6545 # Whether to attempt to enable Accelerated Canvas2D regardless of blocklisting.
6546 - name: gfx.canvas.accelerated.force-enabled
6547 type: bool
6548 value: false
6549 mirror: always
6550
6551 - name: gfx.canvas.accelerated.async-present
6552 type: RelaxedAtomicBool
6553 value: true
6554 mirror: always
6555
6556 - name: gfx.canvas.accelerated.cache-items
6557 type: RelaxedAtomicUint32
6558 value: 8192
6559 mirror: always
6560
6561 - name: gfx.canvas.accelerated.cache-size
6562 type: RelaxedAtomicUint32
6563 value: 256
6564 mirror: always
6565
6566 - name: gfx.canvas.accelerated.reserve-empty-cache
6567 type: RelaxedAtomicUint32
6568 value: 36
6569 mirror: always
6570
6571 - name: gfx.canvas.accelerated.max-draw-target-count
6572 type: RelaxedAtomicUint32
6573 value: 200
6574 mirror: always
6575
6576 - name: gfx.canvas.accelerated.max-size
6577 type: RelaxedAtomicInt32
6578 value: 8192
6579 mirror: always
6580
6581 - name: gfx.canvas.accelerated.min-size
6582 type: RelaxedAtomicInt32
6583 value: 128
6584 mirror: always
6585
6586 - name: gfx.canvas.accelerated.max-surface-size
6587 type: RelaxedAtomicUint32
6588 value: 5280
6589 mirror: always
6590
6591 - name: gfx.canvas.accelerated.shared-page-size
6592 type: RelaxedAtomicUint32
6593 value: 1024
6594 mirror: always
6595
6596 # The minimum number of frames before acting on performance profile info
6597 - name: gfx.canvas.accelerated.profile-frames
6598 type: RelaxedAtomicUint32
6599 value: 10
6600 mirror: always
6601
6602 # The ratio of failed frames to total frames when to fall back from acceleration
6603 - name: gfx.canvas.accelerated.profile-fallback-ratio
6604 type: AtomicFloat
6605 value: 0.3
6606 mirror: always
6607
6608 # The ratio of cache misses at which to fail a profile frame
6609 - name: gfx.canvas.accelerated.profile-cache-miss-ratio
6610 type: AtomicFloat
6611 value: 0.66
6612 mirror: always
6613
6614 # The maximum size of the GPU path cache in MB.
6615 - name: gfx.canvas.accelerated.gpu-path-size
6616 type: RelaxedAtomicUint32
6617 value: 4
6618 mirror: always
6619
6620 # The maximum allowed complexity of a GPU path.
6621 - name: gfx.canvas.accelerated.gpu-path-complexity
6622 type: RelaxedAtomicUint32
6623 value: 4000
6624 mirror: always
6625
6626 # Whether to accelerate stroked paths by converting them to fill paths.
6627 - name: gfx.canvas.accelerated.stroke-to-fill-path
6628 type: RelaxedAtomicBool
6629 value: false
6630 mirror: always
6631
6632 # Whether to use aa-stroke to accelerate stroked paths.
6633 - name: gfx.canvas.accelerated.aa-stroke.enabled
6634 type: RelaxedAtomicBool
6635 value: true
6636 mirror: always
6637
6638 # Draws an indicator if acceleration is used.
6639 - name: gfx.canvas.accelerated.debug
6640 type: RelaxedAtomicBool
6641 value: false
6642 mirror: always
6643
6644 # 0x7fff is the maximum supported xlib surface size and is more than enough for canvases.
6645 - name: gfx.canvas.max-size
6646 type: RelaxedAtomicInt32
6647 value: 0x7fff
6648 mirror: always
6649
6650 - name: gfx.canvas.remote
6651 type: bool
6652 #if defined(XP_WIN)
6653 value: true
6654 #else
6655 value: false
6656 #endif
6657 mirror: once
6658
6659 - name: gfx.canvas.remote.allow-in-parent
6660 type: bool
6661 value: false
6662 mirror: once
6663
6664 # Whether OffscreenCanvas can use remote canvas
6665 - name: gfx.canvas.remote.allow-offscreen
6666 type: RelaxedAtomicBool
6667 value: true
6668 mirror: always
6669
6670 # How many worker threads spawned for remote canvas
6671 # -1 - Calculate based on processor cores
6672 # 0 - No worker threads spawned, will do work on CanvasRenderThread
6673 # >0 - Create worker thread pool with given size
6674 - name: gfx.canvas.remote.worker-threads
6675 type: int32_t
6676 #if defined(XP_WIN)
6677 value: -1
6678 #else
6679 value: 0
6680 #endif
6681 mirror: once
6682
6683 # Default size of the shmem buffers used for recording
6684 - name: gfx.canvas.remote.default-buffer-size
6685 type: RelaxedAtomicUint32
6686 value: 32 * 1024
6687 mirror: always
6688
6689 # Maximum number of Default size shmem buffers to use
6690 - name: gfx.canvas.remote.max_default_buffers
6691 type: RelaxedAtomicUint32
6692 value: 256
6693 mirror: always
6694
6695 # How many times to spin before waiting in remote canvas
6696 - name: gfx.canvas.remote.max-spin-count
6697 type: RelaxedAtomicUint32
6698 value: 500
6699 mirror: always
6700
6701 # How long to wait in milliseconds for the next event while in a transaction
6702 - name: gfx.canvas.remote.event-timeout-ms
6703 type: RelaxedAtomicUint32
6704 value: 2
6705 mirror: always
6706
6707 # How many times we have a spare buffer before we drop one
6708 - name: gfx.canvas.remote.drop-buffer-limit
6709 type: RelaxedAtomicUint32
6710 value: 100
6711 mirror: always
6712
6713 # Delay in milliseconds to drop buffers when there have been no non-empty transactions
6714 - name: gfx.canvas.remote.drop-buffer-milliseconds
6715 type: RelaxedAtomicUint32
6716 value: 10000
6717 mirror: always
6718
6719 - name: gfx.canvas.remote.use-draw-image-fast-path
6720 type: RelaxedAtomicBool
6721 value: true
6722 mirror: always
6723
6724 - name: gfx.canvas.remote.use-draw-image-fast-path-d3d
6725 type: RelaxedAtomicBool
6726 value: true
6727 mirror: always
6728
6729 - name: gfx.canvas.remote.recycle-used-data-surface
6730 type: RelaxedAtomicBool
6731 value: true
6732 mirror: always
6733
6734 - name: gfx.canvas.remote.use-canvas-translator-event
6735 type: bool
6736 value: true
6737 mirror: once
6738
6739 - name: gfx.color_management.display_profile
6740 type: DataMutexString
6741 value: ""
6742 mirror: always # But be warned: We cache the result.
6743
6744 - name: gfx.color_management.force_srgb
6745 type: RelaxedAtomicBool
6746 value: false
6747 mirror: always
6748
6749 - name: gfx.color_management.native_srgb
6750 type: RelaxedAtomicBool
6751 #if defined(XP_MACOSX)
6752 value: true
6753 #else
6754 value: false
6755 #endif
6756 mirror: always
6757
6758 - name: gfx.color_management.enablev4
6759 type: RelaxedAtomicBool
6760 value: true
6761 mirror: always
6762
6763 # 0 = Off, 1 = Full, 2 = Tagged Images Only.
6764 # See CMSMode in gfx/thebes/gfxPlatform.h.
6765 - name: gfx.color_management.mode
6766 type: RelaxedAtomicInt32
6767 value: 2
6768 mirror: always
6769
6770 # The zero default here should match QCMS_INTENT_DEFAULT from qcms.h
6771 - name: gfx.color_management.rendering_intent
6772 type: RelaxedAtomicInt32
6773 value: 0
6774 mirror: always
6775
6776 - name: gfx.color_management.rec709_gamma_as_srgb
6777 type: RelaxedAtomicBool
6778 value: true # Tragic backwards compat.
6779 mirror: always
6780
6781 - name: gfx.color_management.rec2020_gamma_as_rec709
6782 type: RelaxedAtomicBool
6783 value: true # Match naive behavior, but hopefully we can stop soon!
6784 mirror: always
6785
6786 # Whether GL contexts can be migrated to a different GPU (to match the one the
6787 # OS is using for composition).
6788 #
6789 # 0 = force disable migration
6790 # 1 = use migration where in safe configurations (the default)
6791 # 2 = force enable migration (for testing)
6792 - name: gfx.compositor.gpu-migration
6793 type: RelaxedAtomicInt32
6794 value: 1
6795 mirror: always
6796
6797 - name: gfx.core-animation.tint-opaque
6798 type: RelaxedAtomicBool
6799 value: false
6800 mirror: always
6801
6802 #ifdef XP_DARWIN
6803 # Create specialized video-only layers for video content in
6804 # fullscreen windows. Consistently works well on Apple Silicon,
6805 # some issues remain on Intel hardware.
6806 - name: gfx.core-animation.specialize-video
6807 type: RelaxedAtomicBool
6808 #if defined(MOZ_AARCH64) && defined(XP_MACOSX)
6809 value: true
6810 #else
6811 value: false
6812 #endif
6813 mirror: always
6814 #endif
6815
6816 #if defined(XP_DARWIN) && defined(NIGHTLY_BUILD)
6817 # Spoof the timing of the video sample instead of marking the untimed
6818 # sample to be displayed immediately.
6819 - name: gfx.core-animation.specialize-video.spoof-timing
6820 type: RelaxedAtomicBool
6821 value: false
6822 mirror: always
6823
6824 # Check that the sample has a color space and if it doesn't, log that
6825 # and supply the default color space from the main display.
6826 - name: gfx.core-animation.specialize-video.check-color-space
6827 type: RelaxedAtomicBool
6828 value: false
6829 mirror: always
6830
6831 # Log properties of the video surface, buffer, and format.
6832 - name: gfx.core-animation.specialize-video.log
6833 type: RelaxedAtomicBool
6834 value: false
6835 mirror: always
6836 #endif
6837
6838 #ifdef XP_DARWIN
6839 - name: gfx.core-animation.low-power-telemetry-frames
6840 type: int32_t
6841 value: 600
6842 mirror: once
6843 #endif
6844
6845 #if defined(MOZ_WIDGET_ANDROID)
6846 # Overrides the glClear color used when the surface origin is not (0, 0)
6847 # Used for drawing a border around the content.
6848 - name: gfx.compositor.override.clear-color.r
6849 type: AtomicFloat
6850 value: 0.0f
6851 mirror: always
6852
6853 - name: gfx.compositor.override.clear-color.g
6854 type: AtomicFloat
6855 value: 0.0f
6856 mirror: always
6857
6858 - name: gfx.compositor.override.clear-color.b
6859 type: AtomicFloat
6860 value: 0.0f
6861 mirror: always
6862
6863 - name: gfx.compositor.override.clear-color.a
6864 type: AtomicFloat
6865 value: 0.0f
6866 mirror: always
6867 #endif # defined(MOZ_WIDGET_ANDROID)
6868
6869 - name: gfx.content.always-paint
6870 type: RelaxedAtomicBool
6871 value: false
6872 mirror: always
6873
6874 # Size in megabytes
6875 - name: gfx.content.skia-font-cache-size
6876 type: int32_t
6877 value: 5
6878 mirror: once
6879
6880 - name: gfx.device-reset.limit
6881 type: int32_t
6882 value: 10
6883 mirror: once
6884
6885 - name: gfx.device-reset.threshold-ms
6886 type: int32_t
6887 value: -1
6888 mirror: once
6889
6890
6891 # Whether to disable the automatic detection and use of direct2d.
6892 - name: gfx.direct2d.disabled
6893 type: bool
6894 value: true
6895 mirror: once
6896
6897 # Whether to attempt to enable Direct2D regardless of automatic detection or
6898 # blacklisting.
6899 - name: gfx.direct2d.force-enabled
6900 type: bool
6901 value: false
6902 mirror: once
6903
6904 - name: gfx.direct2d.target-independent-rasterization.disabled
6905 type: bool
6906 value: false
6907 mirror: once
6908
6909 - name: gfx.direct3d11.reuse-decoder-device
6910 type: bool
6911 value: true
6912 mirror: once
6913 # Enable reuse decoder device even when it is blocked.
6914 - name: gfx.direct3d11.reuse-decoder-device-force-enabled
6915 type: bool
6916 value: false
6917 mirror: once
6918
6919 - name: gfx.direct3d11.allow-keyed-mutex
6920 type: RelaxedAtomicBool
6921 value: true
6922 mirror: always
6923
6924 - name: gfx.direct3d11.use-double-buffering
6925 type: RelaxedAtomicBool
6926 value: false
6927 mirror: always
6928
6929 - name: gfx.direct3d11.enable-debug-layer
6930 type: bool
6931 value: false
6932 mirror: once
6933
6934 - name: gfx.direct3d11.break-on-error
6935 type: bool
6936 value: false
6937 mirror: once
6938
6939 - name: gfx.direct3d11.sleep-on-create-device
6940 type: int32_t
6941 value: 0
6942 mirror: once
6943
6944 # Rate by which the frame rate is divided. I.e. at a number higher than 1 we
6945 # will only refresh every <x> frames.
6946 - name: gfx.display.frame-rate-divisor
6947 type: RelaxedAtomicInt32
6948 value: 1
6949 mirror: always
6950
6951 - name: gfx.display.max-frame-rate
6952 type: RelaxedAtomicInt32
6953 value: 0
6954 mirror: always
6955
6956 # Whether to disable downloadable font cache so that behavior is consistently
6957 # the uncached load behavior across pages (useful for testing reflow problems)
6958 - name: gfx.downloadable_fonts.disable_cache
6959 type: RelaxedAtomicBool
6960 value: false
6961 mirror: always
6962
6963 # Whether to preserve color bitmap tables in fonts (bypassing OTS).
6964 # Currently these are supported only on platforms where we use Freetype
6965 # to render fonts (Linux/Gtk and Android).
6966 - name: gfx.downloadable_fonts.keep_color_bitmaps
6967 type: RelaxedAtomicBool
6968 value: false
6969 mirror: always
6970
6971 # Whether to validate OpenType variation tables in fonts.
6972 - name: gfx.downloadable_fonts.validate_variation_tables
6973 type: RelaxedAtomicBool
6974 value: true
6975 mirror: always
6976
6977 # Whether OTS validation should be applied to OpenType Layout (OTL) tables.
6978 - name: gfx.downloadable_fonts.otl_validation
6979 type: RelaxedAtomicBool
6980 value: @IS_NOT_RELEASE_OR_BETA@
6981 mirror: always
6982
6983 - name: gfx.e10s.font-list.shared
6984 type: bool
6985 value: true
6986 mirror: once
6987
6988 # Do we fire a notification about missing fonts, so the front-end can decide
6989 # whether to try and do something about it (e.g. download additional fonts)?
6990 - name: gfx.missing_fonts.notify
6991 type: RelaxedAtomicBool
6992 value: false
6993 mirror: always
6994
6995 #if !defined(MOZ_WIDGET_ANDROID)
6996 - name: gfx.egl.prefer-gles.enabled
6997 type: bool
6998 #if defined(MOZ_WIDGET_GTK) && defined(MOZ_AARCH64)
6999 value: true
7000 #else
7001 value: false
7002 #endif
7003 mirror: once
7004 #endif
7005
7006 # [Windows] Whether registry FontSubstitutes entries are used unconditionally,
7007 # or only if the original font is not available.
7008 #if defined(XP_WIN)
7009 - name: gfx.windows-font-substitutes.always
7010 type: bool
7011 value: false
7012 mirror: once
7013 #endif
7014
7015 - name: gfx.font-list-omt.enabled
7016 type: bool
7017 #if defined(XP_MACOSX)
7018 value: true
7019 #else
7020 value: false
7021 #endif
7022 mirror: once
7023
7024 # [Android] OPPO, realme and OnePlus device seem to crash when using Font
7025 # Match API. We turn off this feature on these devices. Set true if you want to
7026 # turn on it at force.
7027 #if defined(MOZ_WIDGET_ANDROID)
7028 - name: gfx.font-list.use_font_match_api.force-enabled
7029 type: bool
7030 value: false
7031 mirror: once
7032 #endif
7033
7034 # Whether to load fonts (e.g. Twemoji Mozilla) bundled with the application:
7035 # -1 - Auto behavior based on OS version (currently, disables loading on
7036 # "low-memory" Android devices)
7037 # 0 - Skip loading any bundled fonts
7038 # 1 - Always load bundled fonts
7039 - name: gfx.bundled-fonts.activate
7040 type: int32_t
7041 value: -1
7042 mirror: once
7043
7044 - name: gfx.font_loader.delay
7045 type: RelaxedAtomicUint32
7046 #if defined(XP_WIN)
7047 value: 60000
7048 #else
7049 value: 8000
7050 #endif
7051 mirror: always
7052
7053 # Disable antialiasing of Ahem, for use in tests.
7054 - name: gfx.font_rendering.ahem_antialias_none
7055 type: RelaxedAtomicBool
7056 value: false
7057 mirror: always
7058
7059 #if defined(XP_DARWIN)
7060 # Set to true to revert from HarfBuzz AAT shaping to the old Core Text
7061 # backend.
7062 - name: gfx.font_rendering.coretext.enabled
7063 type: RelaxedAtomicBool
7064 value: false
7065 mirror: always
7066 #endif
7067
7068 - name: gfx.font_rendering.colr_v1.enabled
7069 type: RelaxedAtomicBool
7070 value: true
7071 mirror: always
7072
7073 - name: gfx.font_rendering.opentype_svg.enabled
7074 type: RelaxedAtomicBool
7075 value: true
7076 mirror: always
7077 rust: true
7078
7079 - name: gfx.font_rendering.fallback.async
7080 type: RelaxedAtomicBool
7081 value: true
7082 mirror: always
7083
7084 # whether to always search all font cmaps during system font fallback
7085 - name: gfx.font_rendering.fallback.always_use_cmaps
7086 type: RelaxedAtomicBool
7087 value: false
7088 mirror: always
7089
7090 # whether to do font fallback for codepoints with General Category = Unassigned
7091 - name: gfx.font_rendering.fallback.unassigned_chars
7092 type: RelaxedAtomicBool
7093 value: false
7094 mirror: always
7095
7096 #ifdef MOZ_WIDGET_GTK
7097 - name: gfx.font_rendering.fontconfig.max_generic_substitutions
7098 type: RelaxedAtomicUint32
7099 value: 3
7100 mirror: always
7101 #endif
7102
7103 #if defined(XP_WIN)
7104 # Whether the DirectWrite bold simulation should be used when a bold font-weight
7105 # is requested but no bold face available in the family. This renders poorly with
7106 # some third-party fonts, so by default we disable it for webfonts and allow it
7107 # only with locally-installed fonts.
7108 # Values:
7109 # 0 - never use DWrite bold simulation; always multi-strike instead
7110 # 1 - use DWrite bold for installed fonts, multi-strike for webfont resources
7111 # 2 - use DWrite bold for all fonts
7112 - name: gfx.font_rendering.directwrite.bold_simulation
7113 type: RelaxedAtomicUint32
7114 value: 1
7115 mirror: always
7116 #endif
7117
7118 - name: gfx.font_rendering.graphite.enabled
7119 type: RelaxedAtomicBool
7120 value: true
7121 mirror: always
7122
7123 # Cache shaped word results
7124 - name: gfx.font_rendering.wordcache.charlimit
7125 type: RelaxedAtomicUint32
7126 value: 32
7127 mirror: always
7128
7129 # Cache shaped word results
7130 - name: gfx.font_rendering.wordcache.maxentries
7131 type: RelaxedAtomicUint32
7132 value: 10000
7133 mirror: always
7134
7135 # The level of logging:
7136 # - 0: no logging;
7137 # - 1: adds errors;
7138 # - 2: adds warnings;
7139 # - 3 or 4: adds debug logging.
7140 # If you set the value to 4, you will also need to set the environment
7141 # variable MOZ_LOG to gfx:4. See mozilla/Logging.h for details.
7142 - name: gfx.logging.level
7143 type: RelaxedAtomicInt32
7144 value: mozilla::gfx::LOG_DEFAULT
7145 mirror: always
7146 include: mozilla/gfx/LoggingConstants.h
7147
7148 - name: gfx.logging.crash.length
7149 type: uint32_t
7150 value: 16
7151 mirror: once
7152
7153 # The maximums here are quite conservative, we can tighten them if problems show up.
7154 - name: gfx.logging.texture-usage.enabled
7155 type: bool
7156 value: false
7157 mirror: once
7158
7159 - name: gfx.logging.peak-texture-usage.enabled
7160 type: bool
7161 value: false
7162 mirror: once
7163
7164 - name: gfx.logging.slow-frames.enabled
7165 type: bool
7166 value: false
7167 mirror: once
7168
7169 # Use gfxPlatform::MaxAllocSize instead of the pref directly.
7170 - name: gfx.max-alloc-size
7171 type: int32_t
7172 value: (int32_t)0x7FFFFFFF
7173 mirror: once
7174 do_not_use_directly: true
7175
7176 # Use gfxPlatform::MaxTextureSize instead of the pref directly.
7177 - name: gfx.max-texture-size
7178 type: int32_t
7179 value: (int32_t)32767
7180 mirror: once
7181 do_not_use_directly: true
7182
7183 - name: gfx.offscreencanvas.shared-provider
7184 type: RelaxedAtomicBool
7185 value: true
7186 mirror: always
7187
7188 - name: gfx.offscreencanvas.snapshot-timeout-ms
7189 type: int32_t
7190 value: 10000
7191 mirror: always
7192
7193 - name: gfx.omta.background-color
7194 type: bool
7195 value: true
7196 mirror: always
7197
7198 - name: gfx.partialpresent.force
7199 type: RelaxedAtomicInt32
7200 value: 0
7201 mirror: always
7202
7203 # SwapInterval
7204 - name: gfx.swap-interval.glx
7205 type: RelaxedAtomicBool
7206 value: true
7207 mirror: always
7208
7209 - name: gfx.swap-interval.egl
7210 type: RelaxedAtomicBool
7211 mirror: always
7212 #ifdef MOZ_WIDGET_ANDROID
7213 value: true
7214 #else
7215 value: false
7216 #endif
7217
7218
7219 # Log severe performance warnings to the error console and profiles.
7220 # This should be use to quickly find which slow paths are used by test cases.
7221 - name: gfx.perf-warnings.enabled
7222 type: RelaxedAtomicBool
7223 value: false
7224 mirror: always
7225
7226 #ifdef MOZ_X11
7227 # Whether to force using GLX over EGL.
7228 - name: gfx.x11-egl.force-disabled
7229 type: bool
7230 value: false
7231 mirror: once
7232
7233 # Whether to force using EGL over GLX.
7234 - name: gfx.x11-egl.force-enabled
7235 type: bool
7236 value: false
7237 mirror: once
7238
7239 - name: gfx.x11.glx_sgi_video_sync
7240 type: bool
7241 value: false
7242 mirror: once
7243 #endif
7244
7245 - name: gfx.testing.device-fail
7246 type: RelaxedAtomicBool
7247 value: false
7248 mirror: always
7249
7250 - name: gfx.testing.device-reset
7251 type: RelaxedAtomicInt32
7252 value: 0
7253 mirror: always
7254
7255 # Meant to be used for tests only. If greater than 0 then we assert that the
7256 # number of active render textures increases by this amount or less.
7257 #ifdef DEBUG
7258 - name: gfx.testing.assert-render-textures-increase
7259 type: RelaxedAtomicInt32
7260 value: 0
7261 mirror: always
7262 #endif
7263
7264 - name: gfx.text.disable-aa
7265 type: bool
7266 value: false
7267 mirror: once
7268
7269 - name: gfx.text.subpixel-position.force-enabled
7270 type: bool
7271 value: false
7272 mirror: once
7273
7274 - name: gfx.text.subpixel-position.force-disabled
7275 type: bool
7276 value: false
7277 mirror: once
7278
7279 - name: gfx.use-iosurface-textures
7280 type: bool
7281 value: false
7282 mirror: once
7283
7284 - name: gfx.use-mutex-on-present
7285 type: bool
7286 value: false
7287 mirror: once
7288
7289 # Use SurfaceTextures as preferred backend for TextureClient/Host.
7290 - name: gfx.use-surfacetexture-textures
7291 type: bool
7292 value: false
7293 mirror: once
7294
7295 - name: gfx.vsync.compositor.unobserve-count
7296 type: int32_t
7297 value: 10
7298 mirror: once
7299
7300 - name: gfx.vsync.force-disable-waitforvblank
7301 type: RelaxedAtomicBool
7302 value: false
7303 mirror: always
7304
7305 - name: gfx.will-change.ignore-opacity
7306 type: RelaxedAtomicBool
7307 value: true
7308 mirror: always
7309
7310 # Should we override the blocklist to enable WebGPU?
7311 - name: gfx.webgpu.ignore-blocklist
7312 type: bool
7313 value: false
7314 mirror: once
7315
7316 # Whether to use the WebRender hardware backend
7317 - name: gfx.webrender.all
7318 type: bool
7319 value: false
7320 mirror: once
7321
7322 #ifdef XP_WIN
7323 - name: gfx.webrender.force-angle
7324 type: bool
7325 value: true
7326 mirror: once
7327 #endif
7328
7329 # WebRender is not enabled when there is no GPU process on window when
7330 # WebRender uses ANGLE. It is for avoiding that WebGL and WebRender use ANGLE
7331 # at once. But there is a case that we want to enable WebRender for testing.
7332 #ifdef XP_WIN
7333 - name: gfx.webrender.enabled-no-gpu-process-with-angle-win
7334 type: bool
7335 value: true
7336 mirror: once
7337 #endif
7338
7339 - name: gfx.webrender.svg-filter-effects
7340 type: RelaxedAtomicBool
7341 value: true
7342 mirror: always
7343
7344 - name: gfx.webrender.svg-filter-effects.also-convert-css-filters
7345 type: RelaxedAtomicBool
7346 value: false
7347 mirror: always
7348
7349 - name: gfx.webrender.svg-filter-effects.also-use-for-docshell-fecolormatrix
7350 type: RelaxedAtomicBool
7351 value: false
7352 mirror: always
7353
7354 - name: gfx.webrender.svg-filter-effects.opacity
7355 type: RelaxedAtomicBool
7356 value: true
7357 mirror: always
7358
7359 - name: gfx.webrender.svg-filter-effects.toalpha
7360 type: RelaxedAtomicBool
7361 value: true
7362 mirror: always
7363
7364 - name: gfx.webrender.svg-filter-effects.feblend
7365 type: RelaxedAtomicBool
7366 value: true
7367 mirror: always
7368
7369 - name: gfx.webrender.svg-filter-effects.fecolormatrix
7370 type: RelaxedAtomicBool
7371 value: true
7372 mirror: always
7373
7374 - name: gfx.webrender.svg-filter-effects.fecomponenttransfer
7375 type: RelaxedAtomicBool
7376 value: true
7377 mirror: always
7378
7379 - name: gfx.webrender.svg-filter-effects.fecomposite
7380 type: RelaxedAtomicBool
7381 value: true
7382 mirror: always
7383
7384 - name: gfx.webrender.svg-filter-effects.feconvolvematrix
7385 type: RelaxedAtomicBool
7386 value: false
7387 mirror: always
7388
7389 - name: gfx.webrender.svg-filter-effects.fediffuselighting
7390 type: RelaxedAtomicBool
7391 value: false
7392 mirror: always
7393
7394 - name: gfx.webrender.svg-filter-effects.fedisplacementmap
7395 type: RelaxedAtomicBool
7396 value: false
7397 mirror: always
7398
7399 - name: gfx.webrender.svg-filter-effects.fedropshadow
7400 type: RelaxedAtomicBool
7401 value: true
7402 mirror: always
7403
7404 - name: gfx.webrender.svg-filter-effects.feflood
7405 type: RelaxedAtomicBool
7406 value: true
7407 mirror: always
7408
7409 - name: gfx.webrender.svg-filter-effects.fegaussianblur
7410 type: RelaxedAtomicBool
7411 value: true
7412 mirror: always
7413
7414 - name: gfx.webrender.svg-filter-effects.feimage
7415 type: RelaxedAtomicBool
7416 value: false
7417 mirror: always
7418
7419 - name: gfx.webrender.svg-filter-effects.femerge
7420 type: RelaxedAtomicBool
7421 value: true
7422 mirror: always
7423
7424 - name: gfx.webrender.svg-filter-effects.femorphology
7425 type: RelaxedAtomicBool
7426 value: false
7427 mirror: always
7428
7429 - name: gfx.webrender.svg-filter-effects.feoffset
7430 type: RelaxedAtomicBool
7431 value: true
7432 mirror: always
7433
7434 - name: gfx.webrender.svg-filter-effects.fespecularlighting
7435 type: RelaxedAtomicBool
7436 value: false
7437 mirror: always
7438
7439 - name: gfx.webrender.svg-filter-effects.fetile
7440 type: RelaxedAtomicBool
7441 value: false
7442 mirror: always
7443
7444 - name: gfx.webrender.svg-filter-effects.feturbulence
7445 type: RelaxedAtomicBool
7446 value: false
7447 mirror: always
7448
7449 - name: gfx.webrender.svg-images
7450 type: RelaxedAtomicBool
7451 value: true
7452 mirror: always
7453
7454 - name: gfx.webrender.svg-shapes
7455 type: RelaxedAtomicBool
7456 value: true
7457 mirror: always
7458
7459 - name: gfx.webrender.debug.blob.paint-flashing
7460 type: RelaxedAtomicBool
7461 value: false
7462 mirror: always
7463
7464 - name: gfx.webrender.debug.enable-capture
7465 type: bool
7466 value: false
7467 mirror: once
7468
7469 - name: gfx.webrender.debug.dl.dump-parent
7470 type: RelaxedAtomicBool
7471 value: false
7472 mirror: always
7473
7474 - name: gfx.webrender.debug.dl.dump-content
7475 type: RelaxedAtomicBool
7476 value: false
7477 mirror: always
7478
7479 - name: gfx.webrender.debug.dl.dump-content-serialized
7480 type: RelaxedAtomicBool
7481 value: false
7482 mirror: always
7483
7484 - name: gfx.webrender.debug.highlight-backdrop-filters
7485 type: RelaxedAtomicBool
7486 value: false
7487 mirror: always
7488
7489 # When true, we output warning messages when rejecting surface promotion
7490 # when it has been requested. This is important for color correctness of
7491 # wide color videos, as well as for GPU performance for all videos.
7492 - name: gfx.webrender.debug.surface-promotion-logging
7493 type: RelaxedAtomicBool
7494 value: false
7495 mirror: always
7496
7497 # When true, missing stacking context snapshots will crash the GPU or Parent
7498 # process.
7499 - name: gfx.webrender.debug.missing-snapshot-panic
7500 type: RelaxedAtomicBool
7501 value: false
7502 mirror: always
7503
7504 # When true, missing stacking context snapshots will render as an opaque
7505 # pink image.
7506 - name: gfx.webrender.debug.missing-snapshot-pink
7507 type: RelaxedAtomicBool
7508 value: false
7509 mirror: always
7510
7511 #ifdef MOZ_WIDGET_GTK
7512 - name: gfx.webrender.reject-software-driver
7513 type: bool
7514 value: true
7515 mirror: once
7516 #endif
7517
7518 - name: gfx.webrender.debug.highlight-painted-layers
7519 type: RelaxedAtomicBool
7520 value: false
7521 mirror: always
7522
7523 - name: gfx.webrender.debug.slow-cpu-frame-threshold
7524 type: AtomicFloat
7525 value: 10.0
7526 mirror: always
7527
7528 - name: gfx.webrender.late-scenebuild-threshold
7529 type: RelaxedAtomicInt32
7530 value: 4
7531 mirror: always
7532
7533 - name: gfx.webrender.max-filter-ops-per-chain
7534 type: RelaxedAtomicUint32
7535 value: 64
7536 mirror: always
7537
7538 - name: gfx.webrender.batching.lookback
7539 type: uint32_t
7540 value: 10
7541 mirror: always
7542
7543 - name: gfx.webrender.blob-tile-size
7544 type: uint32_t
7545 value: 256
7546 mirror: always
7547
7548 - name: gfx.webrender.batched-upload-threshold
7549 type: int32_t
7550 #if defined(MOZ_WIDGET_ANDROID)
7551 value: 262144
7552 #else
7553 value: 65536
7554 #endif
7555 mirror: always
7556
7557 - name: gfx.webrender.compositor
7558 type: bool
7559 #if defined(XP_WIN) || defined(XP_DARWIN)
7560 value: true
7561 #else
7562 value: false
7563 #endif
7564 mirror: once
7565
7566 #ifdef NIGHTLY_BUILD
7567 # Keep this pref hidden on non-nightly builds to avoid people accidentally
7568 # turning it on.
7569 - name: gfx.webrender.layer-compositor
7570 type: bool
7571 value: false
7572 mirror: once
7573 #endif
7574
7575 #ifdef XP_WIN
7576 - name: gfx.webrender.layer-compositor-use-composition-surface
7577 type: bool
7578 value: true
7579 mirror: once
7580 #endif
7581
7582 - name: gfx.webrender.scissored-cache-clears.enabled
7583 type: bool
7584 value: true
7585 mirror: once
7586
7587 - name: gfx.webrender.scissored-cache-clears.force-enabled
7588 type: bool
7589 value: false
7590 mirror: once
7591
7592 - name: gfx.webrender.compositor.force-enabled
7593 type: bool
7594 value: false
7595 mirror: once
7596
7597 - name: gfx.webrender.compositor.max_update_rects
7598 type: uint32_t
7599 value: 1
7600 mirror: once
7601
7602 - name: gfx.webrender.compositor.surface-pool-size
7603 type: uint32_t
7604 value: 25
7605 mirror: once
7606
7607 # Number of damage rects we can give to the compositor for a new frame with
7608 # partial present. This controls whether partial present is used or not.
7609 - name: gfx.webrender.max-partial-present-rects
7610 type: uint32_t
7611 #if defined(XP_WIN) || defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GTK)
7612 value: 1
7613 #else
7614 value: 0
7615 #endif
7616 mirror: once
7617
7618 # Whether or not we can reuse the buffer contents using the GL buffer age
7619 # extension, if supported by the platform. This requires partial present
7620 # to be used.
7621 - name: gfx.webrender.allow-partial-present-buffer-age
7622 type: bool
7623 value: true
7624 mirror: once
7625
7626 # Whether or not we should force partial present on.
7627 - name: gfx.webrender.force-partial-present
7628 type: bool
7629 value: false
7630 mirror: once
7631
7632 - name: gfx.webrender.enable-gpu-markers
7633 type: bool
7634 #ifdef DEBUG
7635 value: true
7636 #else
7637 value: false
7638 #endif
7639 mirror: once
7640
7641 - name: gfx.webrender.enable-item-cache
7642 type: bool
7643 value: true
7644 mirror: once
7645
7646 # Whether or not to fallback from WebRender to Software WebRender.
7647 - name: gfx.webrender.fallback.software
7648 type: bool
7649 value: true
7650 mirror: once
7651
7652 #ifdef XP_WIN
7653 # Use IDCompositionFilterEffect to color manage dcomp surfaces.
7654 - name: gfx.webrender.dcomp.color-manage-with-filters
7655 type: RelaxedAtomicBool
7656 value: false
7657 mirror: always
7658 # Whether to use an overlay of hardware decoded video with DirectComposition
7659 - name: gfx.webrender.dcomp-video-hw-overlay-win
7660 type: bool
7661 value: true
7662 mirror: once
7663 # Enable hardware decoded video overlay even when it is blocked.
7664 - name: gfx.webrender.dcomp-video-hw-overlay-win-force-enabled
7665 type: bool
7666 value: false
7667 mirror: once
7668 # Whether to use a yuv video overlay layers with DirectComposition
7669 - name: gfx.webrender.dcomp-video-yuv-overlay-win
7670 type: bool
7671 value: false
7672 mirror: once
7673 - name: gfx.webrender.dcomp-video-vp-scaling-win
7674 type: bool
7675 value: true
7676 mirror: once
7677 # Whether to use virtual surfaces, as opposed to each tile owning a surface.
7678 - name: gfx.webrender.dcomp-use-virtual-surfaces
7679 type: bool
7680 value: true
7681 mirror: once
7682 # Whether to use an overlay of software decoded video with DirectComposition
7683 - name: gfx.webrender.dcomp-video-sw-overlay-win
7684 type: bool
7685 value: true
7686 mirror: once
7687 # Enable software decoded video overlay even when it is blocked.
7688 - name: gfx.webrender.dcomp-video-sw-overlay-win-force-enabled
7689 type: bool
7690 value: false
7691 mirror: once
7692 - name: gfx.webrender.dcomp-video-check-slow-present
7693 type: RelaxedAtomicBool
7694 value: true
7695 mirror: always
7696 # Force triple buffering in overlay's video swap chain
7697 - name: gfx.webrender.dcomp-video-force-triple-buffering
7698 type: RelaxedAtomicBool
7699 value: false
7700 mirror: always
7701 - name: gfx.webrender.dcomp-video-swap-chain-present-interval-0
7702 type: RelaxedAtomicBool
7703 value: false
7704 mirror: always
7705 - name: gfx.video.convert-yuv-to-nv12.image-host-win
7706 type: RelaxedAtomicBool
7707 value: true
7708 mirror: always
7709 #endif
7710
7711 # Whether or not fallback to Software WebRender requires the GPU process.
7712 - name: gfx.webrender.fallback.software.requires-gpu-process
7713 type: bool
7714 value: false
7715 mirror: once
7716
7717 - name: gfx.webrender.program-binary-disk
7718 type: bool
7719 #if defined(XP_WIN) || defined(ANDROID)
7720 value: true
7721 #else
7722 value: false
7723 #endif
7724 mirror: once
7725
7726 - name: gfx.webrender.use-optimized-shaders
7727 type: bool
7728 value: true
7729 mirror: once
7730
7731 - name: gfx.webrender.precache-shaders
7732 type: bool
7733 value: false
7734 mirror: once
7735
7736 # When gl debug message is a high severity message, forwward it to gfx critical
7737 # note.
7738 - name: gfx.webrender.gl-debug-message-critical-note
7739 type: bool
7740 #if defined(XP_WIN) && defined(NIGHTLY_BUILD)
7741 value: true
7742 #else
7743 value: false
7744 #endif
7745 mirror: once
7746
7747 # Enable printing gl debug messages
7748 - name: gfx.webrender.gl-debug-message-print
7749 type: bool
7750 value: false
7751 mirror: once
7752
7753 #ifdef NIGHTLY_BUILD
7754 # Keep this pref hidden on non-nightly builds to avoid people accidentally
7755 # turning it on.
7756 - name: gfx.webrender.panic-on-gl-error
7757 type: bool
7758 value: false
7759 mirror: once
7760 #endif
7761
7762 #ifdef XP_WIN
7763 # Enables display of performance debugging counters when DirectComposition
7764 # is used.
7765 # Performance counters are displayed on the top-right corner of the screen.
7766 - name: gfx.webrender.debug.dcomp-counter
7767 type: RelaxedAtomicBool
7768 value: false
7769 mirror: always
7770 # Enables highlighting redraw regions of DCompositionVisual
7771 - name: gfx.webrender.debug.dcomp-redraw-regions
7772 type: RelaxedAtomicBool
7773 value: false
7774 mirror: always
7775 #endif
7776
7777 #ifdef XP_DARWIN
7778 # Files show up in $HOME/Desktop/nativelayerdumps-PID/frame-123.html
7779 - name: gfx.webrender.debug.dump-native-layer-tree-to-file
7780 type: RelaxedAtomicBool
7781 value: false
7782 mirror: always
7783 #endif
7784
7785 - name: gfx.webrender.enable-low-priority-pool
7786 type: RelaxedAtomicBool
7787 #if defined(ANDROID)
7788 value: false
7789 #else
7790 value: true
7791 #endif
7792 mirror: always
7793
7794 # Force subpixel anti-aliasing as much as possible, despite performance cost.
7795 - name: gfx.webrender.quality.force-subpixel-aa-where-possible
7796 type: bool
7797 value: false
7798 mirror: always
7799
7800 - name: gfx.webrender.enable-subpixel-aa
7801 type: bool
7802 mirror: once
7803 #ifdef MOZ_WIDGET_ANDROID
7804 value: false
7805 #else
7806 value: true
7807 #endif
7808
7809 #ifdef XP_MACOSX
7810 - name: gfx.webrender.enable-client-storage
7811 type: bool
7812 value: true
7813 mirror: once
7814 #endif
7815
7816 # Width of WebRender tile size
7817 - name: gfx.webrender.picture-tile-width
7818 type: RelaxedAtomicInt32
7819 value: 1024
7820 mirror: always
7821
7822 # Width of WebRender tile size
7823 - name: gfx.webrender.picture-tile-height
7824 type: RelaxedAtomicInt32
7825 value: 512
7826 mirror: always
7827
7828 # WebRender upper bound for shared surface size
7829 # According to apitrace, textures larger than 2048 break fast clear
7830 # optimizations on some intel drivers. We sometimes need to go larger, but
7831 # we try to avoid it.
7832 - name: gfx.webrender.max-shared-surface-size
7833 type: int32_t
7834 value: 2048
7835 mirror: once
7836
7837 # Whether to use EGL robustness or not.
7838 - name: gfx.webrender.prefer-robustness
7839 type: bool
7840 #if defined(XP_WIN) || defined(MOZ_WIDGET_GTK)
7841 value: true
7842 #else
7843 value: false
7844 #endif
7845 mirror: once
7846
7847 # Whether to use the WebRender software backend
7848 - name: gfx.webrender.software
7849 type: bool
7850 value: false
7851 mirror: once
7852
7853 # Whether to use the D3D11 RenderCompositor when using WebRender software backend
7854 - name: gfx.webrender.software.d3d11
7855 type: bool
7856 value: true
7857 mirror: once
7858
7859 - name: gfx.webrender.software.opengl
7860 type: bool
7861 #if defined(MOZ_WIDGET_ANDROID)
7862 value: true
7863 #else
7864 value: false
7865 #endif
7866 mirror: once
7867
7868 - name: gfx.webrender.software.d3d11.upload-mode
7869 type: RelaxedAtomicInt32
7870 value: 4
7871 mirror: always
7872
7873 # Whether to force widgets to don't support acceleration to use WebRender
7874 # despite that
7875 - name: gfx.webrender.unaccelerated-widget.force
7876 type: RelaxedAtomicBool
7877 value: false
7878 mirror: always
7879
7880 # Enable a lower quality, but higher performance pinch-zoom mode. Primarily
7881 # for devices with weak GPUs, or when running SWGL.
7882 - name: gfx.webrender.low-quality-pinch-zoom
7883 type: bool
7884 #if defined(MOZ_WIDGET_ANDROID) && defined(NIGHTLY_BUILD)
7885 value: true
7886 #else
7887 value: false
7888 #endif
7889 mirror: once
7890
7891 # Disable wait of GPU execution completion
7892 - name: gfx.webrender.wait-gpu-finished.disabled
7893 type: bool
7894 #if defined(XP_WIN)
7895 value: true
7896 #else
7897 value: false
7898 #endif
7899 mirror: once
7900
7901 # Enable VideoProcessor Super Resolution for video overlay
7902 - name: gfx.webrender.overlay-vp-super-resolution
7903 type: bool
7904 #if defined(XP_WIN)
7905 value: true
7906 #else
7907 value: false
7908 #endif
7909 mirror: once
7910
7911 # Enable VideoProcessor-HDR on SDR content for video overlay
7912 - name: gfx.webrender.overlay-vp-auto-hdr
7913 type: bool
7914 #if defined(XP_WIN)
7915 value: true
7916 #else
7917 value: false
7918 #endif
7919 mirror: once
7920
7921 # Enable a dedicated arena on frame builder threads.
7922 - name: gfx.webrender.frame-builder-thread-local-arena
7923 type: bool
7924 rust: true
7925 value: false
7926 mirror: once
7927
7928 # Enable a dedicated arena on scene builder threads.
7929 - name: gfx.webrender.scene-builder-thread-local-arena
7930 type: bool
7931 rust: true
7932 value: false
7933 mirror: once
7934
7935 # Enable a dedicated arena on WebRender worker threads.
7936 - name: gfx.webrender.worker-thread-local-arena
7937 type: bool
7938 rust: true
7939 value: true
7940 mirror: once
7941
7942 # Use vsync events generated by hardware
7943 - name: gfx.work-around-driver-bugs
7944 type: bool
7945 value: true
7946 mirror: once
7947
7948 - name: gfx.ycbcr.accurate-conversion
7949 type: RelaxedAtomicBool
7950 value: false
7951 mirror: always
7952
7953 - name: gfx.remote-texture.recycle.disabled
7954 type: RelaxedAtomicBool
7955 value: false
7956 mirror: always
7957
7958 - name: gfx.remote-texture.wait-owner-at-image-host
7959 type: RelaxedAtomicBool
7960 value: false
7961 mirror: always
7962
7963 #if defined(MOZ_WAYLAND)
7964 - name: gfx.wayland.hdr
7965 type: bool
7966 value: false
7967 mirror: once
7968 #endif
7969
7970 #---------------------------------------------------------------------------
7971 # Prefs starting with "gl." (OpenGL)
7972 #---------------------------------------------------------------------------
7973
7974 - name: gl.allow-high-power
7975 type: RelaxedAtomicBool
7976 value: true
7977 mirror: always
7978
7979 - name: gl.ignore-dx-interop2-blacklist
7980 type: RelaxedAtomicBool
7981 value: false
7982 mirror: always
7983
7984 - name: gl.use-tls-is-current
7985 type: RelaxedAtomicInt32
7986 value: 0
7987 mirror: always
7988
7989 #---------------------------------------------------------------------------
7990 # Prefs starting with "html5."
7991 #---------------------------------------------------------------------------
7992
7993 # Time in milliseconds between the time a network buffer is seen and the timer
7994 # firing when the timer hasn't fired previously in this parse in the
7995 # off-the-main-thread HTML5 parser.
7996 - name: html5.flushtimer.initialdelay
7997 type: RelaxedAtomicInt32
7998 value: 16
7999 mirror: always
8000
8001 # Time in milliseconds between the time a network buffer is seen and the timer
8002 # firing when the timer has already fired previously in this parse.
8003 - name: html5.flushtimer.subsequentdelay
8004 type: RelaxedAtomicInt32
8005 value: 16
8006 mirror: always
8007
8008 #---------------------------------------------------------------------------
8009 # Prefs starting with "idle_period."
8010 #---------------------------------------------------------------------------
8011
8012 - name: idle_period.min
8013 type: uint32_t
8014 value: 3
8015 mirror: always
8016
8017 - name: idle_period.during_page_load.min
8018 type: uint32_t
8019 value: 12
8020 mirror: always
8021
8022 - name: idle_period.cross_process_scheduling
8023 type: RelaxedAtomicBool
8024 value: true
8025 mirror: always
8026
8027 #---------------------------------------------------------------------------
8028 # Prefs starting with "image."
8029 #---------------------------------------------------------------------------
8030
8031 # The maximum size (in kB) that the aggregate frames of an animation can use
8032 # before it starts to discard already displayed frames and redecode them as
8033 # necessary.
8034 - name: image.animated.decode-on-demand.threshold-kb
8035 type: RelaxedAtomicUint32
8036 value: 20*1024
8037 mirror: always
8038
8039 # The minimum number of frames we want to have buffered ahead of an
8040 # animation's currently displayed frame.
8041 - name: image.animated.decode-on-demand.batch-size
8042 type: RelaxedAtomicUint32
8043 value: 6
8044 mirror: always
8045
8046 # Whether we should recycle already displayed frames instead of discarding
8047 # them. This saves on the allocation itself, and may be able to reuse the
8048 # contents as well. Only applies if generating full frames.
8049 - name: image.animated.decode-on-demand.recycle
8050 type: bool
8051 value: true
8052 mirror: once
8053
8054 # Resume an animated image from the last displayed frame rather than
8055 # advancing when out of view.
8056 - name: image.animated.resume-from-last-displayed
8057 type: RelaxedAtomicBool
8058 value: true
8059 mirror: always
8060
8061 # Maximum number of surfaces for an image before entering "factor of 2" mode.
8062 # This in addition to the number of "native" sizes of an image. A native size
8063 # is a size for which we can decode a frame without up or downscaling. Most
8064 # images only have 1, but some (i.e. ICOs) may have multiple frames for the
8065 # same data at different sizes.
8066 - name: image.cache.factor2.threshold-surfaces
8067 type: RelaxedAtomicInt32
8068 value: 4
8069 mirror: always
8070
8071 # Maximum size of a surface in KB we are willing to produce when rasterizing
8072 # an SVG.
8073 - name: image.cache.max-rasterized-svg-threshold-kb
8074 type: RelaxedAtomicInt32
8075 value: 200*1024
8076 mirror: always
8077
8078 # The maximum size, in bytes, of the decoded images we cache.
8079 - name: image.cache.size
8080 type: int32_t
8081 value: 5*1024*1024
8082 mirror: once
8083
8084 # A weight, from 0-1000, to place on time when comparing to size.
8085 # Size is given a weight of 1000 - timeweight.
8086 - name: image.cache.timeweight
8087 type: int32_t
8088 value: 500
8089 mirror: once
8090
8091 # Decode all images automatically on load, ignoring our normal heuristics.
8092 - name: image.decode-immediately.enabled
8093 type: RelaxedAtomicBool
8094 value: false
8095 mirror: always
8096
8097 # Decode all images synchronously, intended to be used for reftests.
8098 - name: image.testing.decode-sync.enabled
8099 type: bool
8100 value: false
8101 mirror: always
8102
8103 # Whether we attempt to downscale images during decoding.
8104 - name: image.downscale-during-decode.enabled
8105 type: RelaxedAtomicBool
8106 value: true
8107 mirror: always
8108
8109 # Whether EXIF density metadata is sanity checked against PixelXDimension and PixelYDimension
8110 - name: image.exif-density-correction.sanity-check.enabled
8111 type: RelaxedAtomicBool
8112 value: true
8113 mirror: always
8114
8115 # The threshold for inferring that changes to an <img> element's |src|
8116 # attribute by JavaScript represent an animation, in milliseconds. If the |src|
8117 # attribute is changing more frequently than this value, then we enter a
8118 # special "animation mode" which is designed to eliminate flicker. Set to 0 to
8119 # disable.
8120 - name: image.infer-src-animation.threshold-ms
8121 type: RelaxedAtomicUint32
8122 value: 2000
8123 mirror: always
8124
8125 # Whether the network request priority should be adjusted according
8126 # the layout and view frame position of each particular image.
8127 - name: image.layout_network_priority
8128 type: RelaxedAtomicBool
8129 value: true
8130 mirror: always
8131
8132 # Chunk size for calls to the image decoders.
8133 - name: image.mem.decode_bytes_at_a_time
8134 type: uint32_t
8135 value: 16384
8136 mirror: once
8137
8138 # Discards inactive image frames and re-decodes them on demand from
8139 # compressed data.
8140 - name: image.mem.discardable
8141 type: RelaxedAtomicBool
8142 value: true
8143 mirror: always
8144
8145 # Discards inactive image frames of _animated_ images and re-decodes them on
8146 # demand from compressed data. Has no effect if image.mem.discardable is false.
8147 - name: image.mem.animated.discardable
8148 type: bool
8149 value: true
8150 mirror: once
8151
8152 # Enable extra information for debugging in the image memory reports.
8153 - name: image.mem.debug-reporting
8154 type: RelaxedAtomicBool
8155 value: false
8156 mirror: always
8157
8158 # Force unmapping of unused shared surfaces after a timeout period or when we
8159 # encounter virtual memory pressure. By default this is only enabled on 32-bit
8160 # Firefox.
8161 - name: image.mem.shared.unmap.force-enabled
8162 type: bool
8163 value: false
8164 mirror: once
8165
8166 # Minimum timeout to unmap shared surfaces since they have been last used,
8167 # in milliseconds.
8168 - name: image.mem.shared.unmap.min_expiration_ms
8169 type: uint32_t
8170 value: 60*1000
8171 mirror: once
8172
8173 # Mininum size for shared surfaces to consider unmapping, in kilobytes.
8174 - name: image.mem.shared.unmap.min_threshold_kb
8175 type: uint32_t
8176 value: 100
8177 mirror: once
8178
8179 # How much of the data in the surface cache is discarded when we get a memory
8180 # pressure notification, as a fraction. The discard factor is interpreted as a
8181 # reciprocal, so a discard factor of 1 means to discard everything in the
8182 # surface cache on memory pressure, a discard factor of 2 means to discard half
8183 # of the data, and so forth. The default should be a good balance for desktop
8184 # and laptop systems, where we never discard visible images.
8185 - name: image.mem.surfacecache.discard_factor
8186 type: uint32_t
8187 value: 1
8188 mirror: once
8189
8190 # Maximum size for the surface cache, in kilobytes.
8191 - name: image.mem.surfacecache.max_size_kb
8192 type: uint32_t
8193 value: 2024 * 1024
8194 mirror: once
8195
8196 # Minimum timeout for expiring unused images from the surface cache, in
8197 # milliseconds. This controls how long we store cached temporary surfaces.
8198 - name: image.mem.surfacecache.min_expiration_ms
8199 type: uint32_t
8200 value: 60*1000
8201 mirror: once
8202
8203 # The surface cache's size, within the constraints of the maximum size set
8204 # above, is determined as a fraction of main memory size. The size factor is
8205 # interpreted as a reciprocal, so a size factor of 4 means to use no more than
8206 # 1/4 of main memory. The default should be a good balance for most systems.
8207 - name: image.mem.surfacecache.size_factor
8208 type: uint32_t
8209 value: 4
8210 mirror: once
8211
8212 # Maximum size in kilobytes that we allow to allocate an imgFrame, meant for
8213 # testing/fuzzing purposes. -1 disables this limit (there are other limits in
8214 # place).
8215 - name: image.mem.max_legal_imgframe_size_kb
8216 type: RelaxedAtomicInt32
8217 value: -1
8218 mirror: always
8219
8220 # If true, then the HTMLImageElement naturalWidth and naturalHeight APIs will
8221 # fall back to the default concrete object size (300x150) for images that lack
8222 # a natural width and/or height.
8223 - name: image.natural-size-fallback.enabled
8224 type: RelaxedAtomicBool
8225 value: true
8226 mirror: always
8227
8228 # Whether we record SVG images as blobs or not.
8229 - name: image.svg.blob-image
8230 type: RelaxedAtomicBool
8231 value: false
8232 mirror: always
8233
8234 # Whether to set the incremental attribute in the Priority header for images
8235 - name: image.priority.incremental
8236 type: RelaxedAtomicBool
8237 value: true
8238 mirror: always
8239
8240 # Whether we attempt to decode AVIF images or not.
8241 - name: image.avif.enabled
8242 type: RelaxedAtomicBool
8243 #if defined(MOZ_AV1)
8244 value: true
8245 #else
8246 value: false
8247 #endif
8248 mirror: always
8249
8250 # How strict we are in accepting/rejecting AVIF inputs according to whether they
8251 # conform to the specification
8252 # 0 = Permissive: accept whatever we can simply, unambiguously interpret
8253 # 1 = Normal: reject violations of "shall" specification directives
8254 # 2 = Strict: reject violations of "should" specification directives
8255 - name: image.avif.compliance_strictness
8256 type: RelaxedAtomicInt32
8257 value: 1
8258 mirror: always
8259
8260 # Whether we apply container-level transforms like mirroring and rotation
8261 - name: image.avif.apply_transforms
8262 type: RelaxedAtomicBool
8263 value: true
8264 mirror: always
8265
8266 # Whether we use dav1d (true) or libaom (false) to decode AVIF image
8267 - name: image.avif.use-dav1d
8268 type: RelaxedAtomicBool
8269 value: true
8270 mirror: always
8271
8272 # Whether to allow decoding of animated AVIF sequences.
8273 - name: image.avif.sequence.enabled
8274 type: RelaxedAtomicBool
8275 value: true
8276 mirror: always
8277
8278 # Whether AVIF files containing sequences should be animated even when the
8279 # major brand is set to 'avif'.
8280 - name: image.avif.sequence.animate_avif_major_branded_images
8281 type: RelaxedAtomicBool
8282 value: false
8283 mirror: always
8284
8285 # Whether we attempt to decode JXL images or not.
8286 - name: image.jxl.enabled
8287 type: RelaxedAtomicBool
8288 value: false
8289 mirror: always
8290
8291 #---------------------------------------------------------------------------
8292 # Prefs starting with "intl."
8293 #---------------------------------------------------------------------------
8294
8295 #ifdef XP_WIN
8296 # Whether Gecko creates or does not create native caret for legacy ATOK
8297 # (2011 - 2015).
8298 - name: intl.tsf.hack.atok.create_native_caret
8299 type: bool
8300 value: true
8301 mirror: always
8302
8303 # Whether Gecko returns available composition string rect or TS_E_NOLAYOUT
8304 # from ITextStoreACP::GetTextExt() when the specified range is same as the
8305 # range of composition string but some character rects in it are still
8306 # dirty if and only if ATOK is active TIP.
8307 # Note that this is ignored if active ATOK is or older than 2016 and
8308 # create_native_caret is true.
8309 - name: intl.tsf.hack.atok.do_not_return_no_layout_error_of_composition_string
8310 type: bool
8311 value: true
8312 mirror: always
8313
8314 # Whether Gecko sets input scope of ATOK to "search" or never does it.
8315 # When "search" is set to the input scope, ATOK may stop their suggestions.
8316 # To avoid it, turn this pref on, or changing the settings in ATOK.
8317 # Note that if you enable this pref and you use the touch keyboard for touch
8318 # screens, you cannot access some specific features for a "search" input
8319 # field.
8320 - name: intl.tsf.hack.atok.search_input_scope_disabled
8321 type: bool
8322 value: false
8323 mirror: always
8324
8325 # Whether Gecko returns caret rect before composition string or TS_E_NOLAYOUT
8326 # from ITextStoreACP::GetTextExt() when the specified range is larger than
8327 # composition start offset if and only if Free ChangJie is active TIP.
8328 - name: intl.tsf.hack.free_chang_jie.do_not_return_no_layout_error
8329 type: bool
8330 value: true
8331 mirror: always
8332
8333 # Whether Gecko returns available composition string rect or TS_E_NOLAYOUT
8334 # from ITextStoreACP::GetTextExt() when the specified range is same as the
8335 # range of composition string but some character rects in it are still
8336 # dirty if and only if Japanist 10 is active TIP.
8337 - name: intl.tsf.hack.japanist10.do_not_return_no_layout_error_of_composition_string
8338 type: bool
8339 value: true
8340 mirror: always
8341
8342 # Whether Gecko returns previous character rect or TS_E_NOLAYOUT from
8343 # ITfContextView::GetTextExt() when the specified range is the first
8344 # character of selected clause of composition string if and only if Japanese TIP
8345 # of Microsoft is active.
8346 - name: intl.tsf.hack.ms_japanese_ime.do_not_return_no_layout_error_at_first_char
8347 type: bool
8348 value: true
8349 mirror: always
8350
8351 # Whether Gecko returns previous character rect or TS_E_NOLAYOUT from
8352 # ITfContextView::GetTextExt() when the specified range is the caret of
8353 # composition string if and only if Japanese TIP of Microsoft is active.
8354 - name: intl.tsf.hack.ms_japanese_ime.do_not_return_no_layout_error_at_caret
8355 type: bool
8356 value: true
8357 mirror: always
8358
8359 # Whether Gecko returns caret rect before composition string or TS_E_NOLAYOUT
8360 # from ITfContextView::GetTextExt() when the specified range is larger than
8361 # composition start offset if and only Simplified Chinese TIP of Microsoft
8362 # is active.
8363 - name: intl.tsf.hack.ms_simplified_chinese.do_not_return_no_layout_error
8364 type: bool
8365 value: true
8366 mirror: always
8367
8368 # Whether Geckos hacks ITextStoreACP::QueryInsert() or not. The method should
8369 # return new selection after specified length text is inserted at specified
8370 # range. However, Microsoft Pinyin and Microsoft Wubi expect that the result
8371 # is same as specified range. If following prefs are true,
8372 # ITextStoreACP::QueryInsert() returns specified range only when one of the
8373 # TIPs is active.
8374 - name: intl.tsf.hack.ms_simplified_chinese.query_insert_result
8375 type: bool
8376 value: true
8377 mirror: always
8378
8379 # Whether Gecko returns caret rect before composition string or TS_E_NOLAYOUT
8380 # from ITfContextView::GetTextExt() when the specified range is larger than
8381 # composition start offset if and only Traditional Chinese TIP of Microsoft
8382 # is active.
8383 - name: intl.tsf.hack.ms_traditional_chinese.do_not_return_no_layout_error
8384 type: bool
8385 value: true
8386 mirror: always
8387
8388 # Whether Geckos hacks ITextStoreACP::QueryInsert() or not. The method should
8389 # return new selection after specified length text is inserted at specified
8390 # range. However, Microsoft ChangJie and Microsoft Quick expect that the
8391 # result is same as specified range. If following prefs are true,
8392 # ITextStoreACP::QueryInsert() returns specified range only when one of the
8393 # TIPs is active.
8394 - name: intl.tsf.hack.ms_traditional_chinese.query_insert_result
8395 type: bool
8396 value: true
8397 mirror: always
8398
8399 # Whether Gecko sets input scope of the URL bar to IS_DEFAULT when black
8400 # listed IMEs are active or does not. If you use tablet mode mainly and you
8401 # want to use touch keyboard for URL when you set focus to the URL bar, you
8402 # can set this to false. Then, you'll see, e.g., ".com" key on the keyboard.
8403 # However, if you set this to false, such IMEs set its open state to "closed"
8404 # when you set focus to the URL bar. I.e., input mode is automatically
8405 # changed to English input mode.
8406 # Known buggy IME list:
8407 # - Microsoft IME for Japanese
8408 # - Google Japanese Input
8409 # - Microsoft Bopomofo
8410 # - Microsoft ChangJie
8411 # - Microsoft Phonetic
8412 # - Microsoft Quick
8413 # - Microsoft New ChangJie
8414 # - Microsoft New Phonetic
8415 # - Microsoft New Quick
8416 # - Microsoft Pinyin
8417 # - Microsoft Pinyin New Experience Input Style
8418 # - Microsoft Wubi
8419 # - Microsoft IME for Korean (except on Win7)
8420 # - Microsoft Old Hangul
8421 - name: intl.ime.hack.set_input_scope_of_url_bar_to_default
8422 type: bool
8423 value: true
8424 mirror: always
8425
8426 # On Windows 10 Build 17643 (an Insider Preview build of RS5), Microsoft
8427 # have fixed the caller of ITextACPStore::GetTextExt() to return
8428 # TS_E_NOLAYOUT to TIP as-is, rather than converting to E_FAIL.
8429 # Therefore, if TIP supports asynchronous layout computation perfectly, we
8430 # can return TS_E_NOLAYOUT and TIP waits next OnLayoutChange()
8431 # notification. However, some TIPs still have some bugs of asynchronous
8432 # layout support. We keep hacking the result of GetTextExt() like running
8433 # on Windows 10, however, there could be unknown TIP bugs if we stop
8434 # hacking the result. So, user can stop checking build ID to make Gecko
8435 # hack the result forcibly.
8436 - name: intl.tsf.hack.allow_to_stop_hacking_on_build_17643_or_later
8437 type: bool
8438 value: @IS_EARLY_BETA_OR_EARLIER@
8439 mirror: always
8440
8441 # If true, automatically extend selection to cluster boundaries when
8442 # TSF/TIP requests to select from/by middle of a cluster.
8443 - name: intl.tsf.hack.extend_setting_selection_range_to_cluster_boundaries
8444 type: bool
8445 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
8446 mirror: always
8447
8448 # Whether Gecko supports IMM even if TSF is enabled. This pref exists
8449 # only for check TSF behavior of new versions. Therefore, users should
8450 # not set this to false for daily use.
8451 - name: intl.tsf.support_imm
8452 type: bool
8453 value: true
8454 mirror: once
8455
8456 # If true, TSF and TIP (IME) can retrieve URL of the document containing
8457 # the focused element. When this is set to true, Gecko exposes the spec
8458 # of the URL.
8459 # And Gecko exposes only "http" and "https" URLs. E.g., "data", "blob",
8460 # "file" URLs are never exposed.
8461 - name: intl.tsf.expose_url.allowed
8462 type: bool
8463 value: true
8464 mirror: always
8465
8466 # If true, TSF and TIP (IME) can retrieve URL of the document containing
8467 # the focused element in the private browsing mode too.
8468 - name: intl.tsf.expose_url_in_private_browsing.allowed
8469 type: bool
8470 value: false
8471 mirror: always
8472
8473 #if defined(ENABLE_TESTS)
8474 # If true, NS_GetComplexLineBreaks compares the line breaks produced in the
8475 # content process using the Uniscribe line breaker, with those from a
8476 # brokered call to the parent.
8477 - name: intl.compare_against_brokered_complex_line_breaks
8478 type: bool
8479 value: false
8480 mirror: always
8481 #endif
8482 #endif
8483
8484 # If you use legacy Chinese IME which puts an ideographic space to composition
8485 # string as placeholder, this pref might be useful. If this is true and when
8486 # web contents forcibly commits composition (e.g., moving focus), the
8487 # ideographic space will be ignored (i.e., commits with empty string).
8488 - name: intl.ime.remove_placeholder_character_at_commit
8489 type: bool
8490 value: false
8491 mirror: always
8492
8493
8494 #if defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK) || defined(ANDROID)
8495 # Whether text input without keyboard press nor IME composition should cause a
8496 # set of composition events or not. E.g., when you use Emoji picker on macOS,
8497 # it inserts an Emoji character directly. If set to true, `compositionstart`,
8498 # `compositionupdate` and `compositionend` events will be fired, and the
8499 # correspnding `beforeinput` events are not cancelable. Otherwise, if set to
8500 # false, any user input events are not exposed to web apps but only
8501 # `beforeinput` event is fired as "insert text" as a cancelable event.
8502 - name: intl.ime.use_composition_events_for_insert_text
8503 type: bool
8504 value: false
8505 mirror: always
8506 #endif
8507
8508 # If true, we use UAX14/29 compatible segmenter rules using ICU4X
8509 - name: intl.icu4x.segmenter.enabled
8510 type: RelaxedAtomicBool
8511 value: true
8512 mirror: always
8513
8514 #---------------------------------------------------------------------------
8515 # Prefs starting with "javascript."
8516 #
8517 # NOTE: SpiderMonkey starts up before `mirror: once` preferences are sealed and
8518 # we cannot use them (Bug 1698311). Instead, we use `mirror: always`
8519 # prefs but mark as `do_not_use_directly` and `LoadStartupJSPrefs` will
8520 # mirror them into SpiderMonkey.
8521 #---------------------------------------------------------------------------
8522
8523 # The JavaScript JIT compilers. These are read once on startup so a browser may
8524 # need to be restarted if toggling them. In general each subsequent JIT depends
8525 # on the ones before it being enabled.
8526 - name: javascript.options.blinterp
8527 type: bool
8528 value: true
8529 mirror: always # LoadStartupJSPrefs
8530 do_not_use_directly: true
8531
8532 - name: javascript.options.baselinejit
8533 type: bool
8534 value: true
8535 mirror: always # LoadStartupJSPrefs
8536 do_not_use_directly: true
8537
8538 - name: javascript.options.ion
8539 type: bool
8540 value: true
8541 mirror: always # LoadStartupJSPrefs
8542 do_not_use_directly: true
8543
8544 # The irregexp JIT for regex evaluation.
8545 - name: javascript.options.native_regexp
8546 type: bool
8547 value: true
8548 mirror: always # LoadStartupJSPrefs
8549 do_not_use_directly: true
8550
8551 # Jit Hints Cache - An in-process cache for the
8552 # content process to accelerate repeated baseline
8553 # compilations
8554 - name: javascript.options.jithints
8555 type: bool
8556 value: true
8557 mirror: always # LoadStartupJSPrefs
8558 do_not_use_directly: true
8559
8560 # "Warm-up" thresholds at which we attempt to compile a script/function with
8561 # the next JIT tier.
8562 #
8563 # NOTE: These must match JitOptions defaults.
8564 - name: javascript.options.blinterp.threshold
8565 type: int32_t
8566 value: 10
8567 mirror: always # LoadStartupJSPrefs
8568 do_not_use_directly: true
8569
8570 - name: javascript.options.baselinejit.threshold
8571 type: int32_t
8572 value: 100
8573 mirror: always # LoadStartupJSPrefs
8574 do_not_use_directly: true
8575
8576 - name: javascript.options.ion.threshold
8577 type: int32_t
8578 value: 1500
8579 mirror: always # LoadStartupJSPrefs
8580 do_not_use_directly: true
8581
8582 #ifdef NIGHTLY_BUILD
8583 # Experimental support for off-main-thread baseline compilation.
8584 - name: javascript.options.experimental.baselinejit.offthread_compilation
8585 type: bool
8586 value: false
8587 mirror: always # LoadStartupJSPrefs
8588 do_not_use_directly: true
8589 #endif
8590
8591 # Enable off-main-thread Warp compilation.
8592 - name: javascript.options.ion.offthread_compilation
8593 type: bool
8594 value: true
8595 mirror: always # LoadStartupJSPrefs
8596 do_not_use_directly: true
8597
8598 #ifdef DEBUG
8599 # Enable extra correctness checks in the JITs that are slow and only available
8600 # in debug builds.
8601 - name: javascript.options.jit.full_debug_checks
8602 type: bool
8603 value: false
8604 mirror: always # LoadStartupJSPrefs
8605 do_not_use_directly: true
8606 #endif
8607
8608 # Heuristic threshold for Warp/Ion to decide that too many bailouts are
8609 # happening and an IonScript should be discarded.
8610 #
8611 # NOTE: This must match JitOptions defaults.
8612 - name: javascript.options.ion.frequent_bailout_threshold
8613 type: int32_t
8614 value: 10
8615 mirror: always # LoadStartupJSPrefs
8616 do_not_use_directly: true
8617
8618 # A threshold for Warp to decide whether a function can be inlined.
8619 # If the size of a function is smaller than this threshold, then it
8620 # may be inlined.
8621 #
8622 # NOTE: These must match JitOptions defaults.
8623 - name: javascript.options.inlining_bytecode_max_length
8624 type: uint32_t
8625 value: 130
8626 mirror: always
8627 do_not_use_directly: true
8628
8629 - name: javascript.options.compact_on_user_inactive
8630 type: bool
8631 value: true
8632 mirror: always
8633
8634 # Determines which register allocator will be used by the Ion backend for JS and
8635 # Wasm code. Possible values:
8636 #
8637 # 0: default register allocator (currently always the Backtracking allocator)
8638 # 1: always use the Backtracking allocator
8639 # 2: always use the Simple allocator
8640 # other values: same as 0
8641 - name: javascript.options.ion.regalloc
8642 type: uint32_t
8643 value: 0
8644 mirror: always
8645 set_spidermonkey_pref: startup
8646
8647 # No-op pref for testing the SpiderMonkey pref system.
8648 - name: javascript.options.tests.uint32-pref
8649 type: uint32_t
8650 value: 1
8651 mirror: always
8652 set_spidermonkey_pref: always
8653
8654 # The default amount of time to wait from the user being idle to starting a
8655 # shrinking GC. Measured in milliseconds.
8656 - name: javascript.options.compact_on_user_inactive_delay
8657 type: uint32_t
8658 #ifdef NIGHTLY_BUILD
8659 value: 15000
8660 #else
8661 value: 300000
8662 #endif
8663 mirror: always
8664
8665 # Use the realm local dom alloc site.
8666 - name: javascript.options.dom_alloc_site
8667 type: bool
8668 value: true
8669 mirror: always
8670 set_spidermonkey_pref: always
8671
8672 # Use better error message when accessing property of null or undefined.
8673 - name: javascript.options.property_error_message_fix
8674 type: bool
8675 value: true
8676 mirror: always
8677 set_spidermonkey_pref: startup
8678
8679 # Whether to expose the FinalizationRegistry.prototype.cleanupSome method.
8680 - name: javascript.options.experimental.weakrefs.expose_cleanupSome
8681 type: bool
8682 value: false
8683 mirror: always
8684 set_spidermonkey_pref: startup
8685
8686 # ShadowRealms: https://github.com/tc39/proposal-shadowrealm
8687 - name: javascript.options.experimental.shadow_realms
8688 # Atomic, as we assert the preference, and that assertion may happen
8689 # in a worker.
8690 type: RelaxedAtomicBool
8691 value: false
8692 mirror: always
8693 # Non-startup pref because the WPT test harness sets prefs after startup.
8694 set_spidermonkey_pref: always
8695
8696 # Experimental support for Duplicate Named Capture Groups in JavaScript.
8697 - name: javascript.options.experimental.regexp_duplicate_named_groups
8698 type: bool
8699 value: true
8700 mirror: always
8701 set_spidermonkey_pref: startup
8702
8703 # Experimental support for Pattern Modifiers in JavaScript.
8704 - name: javascript.options.experimental.regexp_modifiers
8705 type: bool
8706 value: true
8707 mirror: always
8708 set_spidermonkey_pref: startup
8709
8710 # Experimental support for Uint8Array base64/hex in JavaScript.
8711 - name: javascript.options.experimental.uint8array_base64
8712 type: bool
8713 value: true
8714 mirror: always
8715 set_spidermonkey_pref: startup
8716
8717 # Experimental support for Promise.try in JavaScript.
8718 - name: javascript.options.experimental.promise_try
8719 type: bool
8720 value: true
8721 mirror: always
8722 set_spidermonkey_pref: startup
8723
8724 # Experimental support for Math.sumPrecise in JavaScript.
8725 - name: javascript.options.experimental.math_sumprecise
8726 type: bool
8727 value: true
8728 mirror: always
8729 set_spidermonkey_pref: startup
8730
8731 # Experimental support for Atomics.pause in JavaScript.
8732 - name: javascript.options.experimental.atomics_pause
8733 type: bool
8734 value: true
8735 mirror: always
8736 set_spidermonkey_pref: startup
8737
8738 # Experimental support for Error.isError in JavaScript.
8739 - name: javascript.options.experimental.error_iserror
8740 type: bool
8741 value: true
8742 mirror: always
8743 set_spidermonkey_pref: always
8744
8745 # Support for Atomics.waitAsync in JavaScript.
8746 - name: javascript.options.atomics_wait_async
8747 type: bool
8748 value: false
8749 mirror: always
8750 set_spidermonkey_pref: startup
8751
8752 #ifdef NIGHTLY_BUILD
8753 # Experimental support for Async Iterator Helpers in JavaScript.
8754 - name: javascript.options.experimental.async_iterator_helpers
8755 type: bool
8756 value: false
8757 mirror: always
8758 set_spidermonkey_pref: startup
8759
8760 # Experimental support for Symbols as WeakMap keys in JavaScript.
8761 - name: javascript.options.experimental.symbols_as_weakmap_keys
8762 type: bool
8763 value: false
8764 mirror: always
8765 set_spidermonkey_pref: startup
8766
8767 # Experimental support for Iterator.range in JavaScript.
8768 - name: javascript.options.experimental.iterator_range
8769 type: bool
8770 value: false
8771 mirror: always
8772 set_spidermonkey_pref: startup
8773
8774 # Experimental support for Joint Iteration in JavaScript.
8775 - name: javascript.options.experimental.joint_iteration
8776 type: bool
8777 value: false
8778 mirror: always
8779 set_spidermonkey_pref: startup
8780
8781 # Experimental support for Iterator Sequencing in JavaScript.
8782 - name: javascript.options.experimental.iterator_sequencing
8783 type: bool
8784 value: false
8785 mirror: always
8786 set_spidermonkey_pref: startup
8787
8788 # Experimental support for upsert in JavaScript.
8789 - name: javascript.options.experimental.upsert
8790 type: bool
8791 value: false
8792 mirror: always
8793 set_spidermonkey_pref: startup
8794
8795 #endif // NIGHTLY_BUILD
8796
8797 # Whether to Baseline-compile self-hosted functions the first time they are
8798 # used and cache the result.
8799 - name: javascript.options.experimental.self_hosted_cache
8800 type: bool
8801 value: false
8802 mirror: always
8803 set_spidermonkey_pref: startup
8804
8805 # Experimental support for Temporal in JavaScript.
8806 - name: javascript.options.experimental.temporal
8807 type: bool
8808 value: true
8809 mirror: always
8810 set_spidermonkey_pref: startup
8811
8812 #ifdef ENABLE_EXPLICIT_RESOURCE_MANAGEMENT
8813 # Experimental support for Explicit Resource Management in JavaScript.
8814 - name: javascript.options.experimental.explicit_resource_management
8815 type: bool
8816 value: false
8817 mirror: always
8818 set_spidermonkey_pref: always
8819 #endif // ENABLE_EXPLICIT_RESOURCE_MANAGEMENT
8820
8821 - name: javascript.options.experimental.error_capture_stack_trace
8822 type: bool
8823 value: true
8824 mirror: always
8825 set_spidermonkey_pref: always
8826
8827 - name: javascript.options.experimental.json_parse_with_source
8828 type: bool
8829 value: true
8830 mirror: always
8831 set_spidermonkey_pref: always
8832
8833 # Dictionary Teleporting
8834 - name: javascript.options.experimental.dictionary_teleporting
8835 type: bool
8836 value: true
8837 mirror: always
8838 set_spidermonkey_pref: always
8839
8840 - name: javascript.options.experimental.import_attributes
8841 type: bool
8842 value: true
8843 mirror: always
8844 set_spidermonkey_pref: always
8845
8846 - name: javascript.options.wasm_caching
8847 type: bool
8848 value: true
8849 mirror: always
8850
8851 # The amount of time we wait between a request to GC (due to leaving a page) and doing the actual GC, in ms.
8852 - name: javascript.options.gc_delay
8853 type: uint32_t
8854 value: 4000
8855 mirror: always
8856
8857 # The amount of time we wait from the first request to GC to actually doing the first GC, in ms.
8858 - name: javascript.options.gc_delay.first
8859 type: uint32_t
8860 value: 10000
8861 mirror: always
8862
8863 # After doing a zonal GC, wait this much time (in ms) and then do a full GC,
8864 # unless one is already pending.
8865 - name: javascript.options.gc_delay.full
8866 type: uint32_t
8867 value: 60000
8868 mirror: always
8869
8870 # Maximum amount of time that should elapse between incremental GC slices, in ms.
8871 - name: javascript.options.gc_delay.interslice
8872 type: uint32_t
8873 value: 250
8874 mirror: always
8875
8876 # nsJSEnvironmentObserver observes the memory-pressure notifications and
8877 # forces a garbage collection and cycle collection when it happens, if the
8878 # appropriate pref is set.
8879 - name: javascript.options.gc_on_memory_pressure
8880 type: bool
8881 # Disable the JS engine's GC on memory pressure on Android for now to continue investigating its
8882 # performance impacts and then decide to enable it or not.
8883 # See bug 1450787.
8884 value: @IS_NOT_ANDROID@
8885 mirror: always
8886
8887 # We allow at most MIN(max, MAX(NUM_CPUS / cpu_divisor, 1)) concurrent GCs
8888 # between processes
8889 - name: javascript.options.concurrent_multiprocess_gcs.cpu_divisor
8890 type: RelaxedAtomicUint32
8891 value: 4
8892 mirror: always
8893
8894 # See 'cpu_divisor' above, 0 means UINT_32_MAX.
8895 - name: javascript.options.concurrent_multiprocess_gcs.max
8896 type: RelaxedAtomicUint32
8897 value: 0
8898 mirror: always
8899
8900 - name: javascript.options.mem.log
8901 type: bool
8902 value: false
8903 mirror: always
8904
8905 - name: javascript.options.mem.notify
8906 type: bool
8907 value: false
8908 mirror: always
8909
8910 # Whether the Parent process allocates and shares memory with all content
8911 # processes. This is mirrored once, as the parent process will do this
8912 # allocation early on.
8913 - name: javascript.options.self_hosted.use_shared_memory
8914 type: bool
8915 value: true
8916 mirror: always # LoadStartupJSPrefs
8917 do_not_use_directly: true
8918
8919 - name: javascript.options.main_thread_stack_quota_cap
8920 type: uint32_t
8921 #if defined(MOZ_ASAN)
8922 value: 6 * 1024 * 1024
8923 #else
8924 value: 2 * 1024 * 1024
8925 #endif
8926 mirror: always
8927
8928 - name: javascript.options.wasm_trace_api
8929 type: bool
8930 value: false
8931 mirror: always
8932 set_spidermonkey_pref: always
8933
8934 - name: javascript.options.wasm_disable_huge_memory
8935 type: bool
8936 value: false
8937 mirror: always
8938 set_spidermonkey_pref: startup
8939
8940 - name: javascript.options.wasm_optimizingjit
8941 type: bool
8942 value: true
8943 mirror: always
8944
8945 - name: javascript.options.wasm_relaxed_simd
8946 type: bool
8947 #if defined(ENABLE_WASM_RELAXED_SIMD)
8948 value: @IS_NIGHTLY_BUILD@
8949 #else
8950 value: false
8951 #endif
8952 mirror: always
8953 set_spidermonkey_pref: always
8954
8955 - name: javascript.options.wasm_moz_intgemm
8956 type: bool
8957 #if defined(ENABLE_WASM_MOZ_INTGEMM)
8958 value: @IS_NIGHTLY_BUILD@
8959 #else
8960 value: false
8961 #endif
8962 mirror: always
8963 set_spidermonkey_pref: startup
8964
8965 - name: javascript.options.wasm_exnref
8966 type: bool
8967 value: true
8968 mirror: always
8969 set_spidermonkey_pref: startup
8970
8971 - name: javascript.options.wasm_gc
8972 type: bool
8973 #if defined(ENABLE_WASM_GC)
8974 value: true
8975 #else
8976 value: false
8977 #endif
8978 mirror: always
8979 set_spidermonkey_pref: always
8980
8981 - name: javascript.options.wasm_memory_control
8982 type: bool
8983 value: false
8984 mirror: always
8985 set_spidermonkey_pref: always
8986
8987 - name: javascript.options.wasm_branch_hinting
8988 type: bool
8989 #if defined(ENABLE_WASM_BRANCH_HINTING)
8990 value: @IS_NIGHTLY_BUILD@
8991 #else
8992 value: false
8993 #endif
8994 mirror: always
8995 set_spidermonkey_pref: always
8996
8997 #if defined(ENABLE_WASM_SIMD)
8998 #if defined(JS_CODEGEN_X64) || defined(JS_CODEGEN_X86)
8999 # Enables AVX instructions support on X86/X64 platforms.
9000 # Changing these prefs requires a restart.
9001 - name: javascript.options.wasm_simd_avx
9002 type: bool
9003 value: true
9004 mirror: always
9005 set_spidermonkey_pref: startup
9006 #endif
9007 #endif
9008
9009 - name: javascript.options.wasm_memory64
9010 type: bool
9011 #if defined(ENABLE_WASM_MEMORY64)
9012 value: true
9013 #else
9014 value: false
9015 #endif
9016 mirror: always
9017 set_spidermonkey_pref: always
9018
9019 - name: javascript.options.wasm_multi_memory
9020 type: bool
9021 #if defined(ENABLE_WASM_MULTI_MEMORY)
9022 value: true
9023 #else
9024 value: false
9025 #endif
9026 mirror: always
9027 set_spidermonkey_pref: always
9028
9029 - name: javascript.options.wasm_js_string_builtins
9030 type: bool
9031 value: true
9032 mirror: always
9033 set_spidermonkey_pref: always
9034
9035 - name: javascript.options.wasm_tail_calls
9036 type: bool
9037 #if defined(ENABLE_WASM_TAIL_CALLS)
9038 value: true
9039 #else
9040 value: false
9041 #endif
9042 mirror: always
9043 set_spidermonkey_pref: always
9044
9045 - name: javascript.options.wasm_js_promise_integration
9046 type: bool
9047 value: false
9048 mirror: always
9049 set_spidermonkey_pref: always
9050
9051 - name: javascript.options.wasm_test_serialization
9052 type: bool
9053 value: false
9054 mirror: always
9055 set_spidermonkey_pref: always
9056
9057 # Enables lazy tiering for wasm modules that have a GC type defined in them.
9058 # Use wasm_lazy_tiering to enable it for any module.
9059 - name: javascript.options.wasm_lazy_tiering_for_gc
9060 type: bool
9061 value: true
9062 mirror: always
9063 set_spidermonkey_pref: always
9064
9065 # Enables lazy tiering for all modules. Use wasm_lazy_tiering_for_gc to only
9066 # enable this for GC modules.
9067 - name: javascript.options.wasm_lazy_tiering
9068 type: bool
9069 value: true
9070 mirror: always
9071 set_spidermonkey_pref: always
9072
9073 # Aggressiveness of lazy tiering, allowable: 1 .. 9
9074 # 1 = min (almost never, set tiering threshold to max possible, == 2^31-1)
9075 # 9 = max (request tier up at first call, set tiering threshold to zero)
9076 - name: javascript.options.wasm_lazy_tiering_level
9077 type: uint32_t
9078 value: 5
9079 mirror: always
9080 set_spidermonkey_pref: always
9081
9082 # Forces lazy tiering to synchronously compile instead of using a background
9083 # thread.
9084 - name: javascript.options.wasm_lazy_tiering_synchronous
9085 type: bool
9086 value: false
9087 mirror: always
9088 set_spidermonkey_pref: always
9089
9090 # Aggressiveness of inlining (regardless of call kind), allowable: 1 .. 9
9091 - name: javascript.options.wasm_inlining_level
9092 type: uint32_t
9093 value: 5
9094 mirror: always
9095 set_spidermonkey_pref: always
9096
9097 # Are wasm direct calls (within same Instance) candidates for inlining?
9098 - name: javascript.options.wasm_direct_inlining
9099 type: bool
9100 value: true
9101 mirror: always
9102 set_spidermonkey_pref: always
9103
9104 # Are wasm call_ref calls (within same Instance) candidates for inlining?
9105 - name: javascript.options.wasm_call_ref_inlining
9106 type: bool
9107 value: true
9108 mirror: always
9109 set_spidermonkey_pref: always
9110
9111 # When selecting call_ref targets for speculative inlining, this is the minimum
9112 # percentage of the total number of calls from the call site that a candidate
9113 # set of targets must collectively have in order to be elegible for inlining.
9114 # Allowable: 10 .. 100 (%). Setting it (eg) 75 means the targets must collectively
9115 # be 75% of all observed calls to be considered for inlining. Probably unwise to
9116 # let this be much below 40.
9117 - name: javascript.options.wasm_call_ref_inlining_percent
9118 type: uint32_t
9119 value: 40
9120 mirror: always
9121 set_spidermonkey_pref: always
9122
9123 # Support for wasm loop unrolling and peeling in wasm-via-Ion. This enables
9124 # both unrolling and peeling.
9125 - name: javascript.options.wasm_unroll_loops
9126 type: bool
9127 #ifdef NIGHTLY_BUILD
9128 value: true
9129 #else
9130 value: false
9131 #endif
9132 mirror: always
9133 set_spidermonkey_pref: always
9134
9135 # The number of times a loop is unrolled, not counting the peeled iteration.
9136 # Minimum is 2 -- otherwise we're not unrolling at all. From testing with
9137 # JetStream3 (wasm tests), it's hard to get consistently better performance
9138 # than simply by unrolling by 3, regardless of loop size.
9139 - name: javascript.options.wasm_unroll_factor
9140 type: uint32_t
9141 value: 3
9142 mirror: always
9143 set_spidermonkey_pref: always
9144
9145 # Support for pretenuring allocations based on their allocation site.
9146 - name: javascript.options.site_based_pretenuring
9147 type: bool
9148 value: true
9149 mirror: always
9150 do_not_use_directly: true
9151 set_spidermonkey_pref: startup
9152
9153 #if defined(DEBUG) || defined(NIGHTLY_BUILD) || defined(JS_GC_ZEAL)
9154 # Enable extra poisoning of GC memory.
9155 - name: javascript.options.extra_gc_poisoning
9156 type: bool
9157 #ifdef DEBUG
9158 value: true
9159 #else
9160 value: false
9161 #endif
9162 mirror: always
9163 set_spidermonkey_pref: startup
9164 #endif
9165
9166 #if !defined(JS_CODEGEN_MIPS64) && !defined(JS_CODEGEN_LOONG64)
9167 # Spectre security vulnerability mitigations for the JS JITs.
9168 #
9169 # NOTE: The MIPS and LoongArch backends do not support these mitigations (and generally
9170 # do not need them). In that case, leave the pref unlisted with its
9171 # default value of false.
9172 - name: javascript.options.spectre.index_masking
9173 type: bool
9174 value: true
9175 mirror: always # LoadStartupJSPrefs
9176 do_not_use_directly: true
9177
9178 - name: javascript.options.spectre.object_mitigations
9179 type: bool
9180 value: true
9181 mirror: always # LoadStartupJSPrefs
9182 do_not_use_directly: true
9183
9184 - name: javascript.options.spectre.string_mitigations
9185 type: bool
9186 value: true
9187 mirror: always # LoadStartupJSPrefs
9188 do_not_use_directly: true
9189
9190 - name: javascript.options.spectre.value_masking
9191 type: bool
9192 value: true
9193 mirror: always # LoadStartupJSPrefs
9194 do_not_use_directly: true
9195
9196 - name: javascript.options.spectre.jit_to_cxx_calls
9197 type: bool
9198 value: false
9199 mirror: always # LoadStartupJSPrefs
9200 do_not_use_directly: true
9201 #endif // !defined(JS_CODEGEN_MIPSXX) && !defined(JS_CODEGEN_LOONG64)
9202
9203 # Separate pref to override the values of the Spectre-related prefs above for
9204 # isolated web content processes, where we don't need these mitigations.
9205 - name: javascript.options.spectre.disable_for_isolated_content
9206 type: bool
9207 value: true
9208 mirror: always
9209
9210 # Whether the W^X policy is enforced to mark JIT code pages as either writable
9211 # or executable but never both at the same time. OpenBSD defaults to W^X.
9212 - name: javascript.options.content_process_write_protect_code
9213 type: bool
9214 #if defined(XP_OPENBSD)
9215 value: true
9216 #else
9217 value: false
9218 #endif
9219 mirror: always
9220
9221 # Whether to use the XPCOM thread pool for JS helper tasks.
9222 - name: javascript.options.external_thread_pool
9223 type: bool
9224 value: true
9225 mirror: always
9226 do_not_use_directly: true
9227
9228 # Whether to use the off-thread script compilation and decoding.
9229 - name: javascript.options.parallel_parsing
9230 type: bool
9231 value: true
9232 mirror: always
9233
9234 # Whether to use fdlibm for Math.sin, Math.cos, and Math.tan. When
9235 # privacy.resistFingerprinting is true, this pref is ignored and fdlibm is used
9236 # anyway.
9237 - name: javascript.options.use_fdlibm_for_sin_cos_tan
9238 type: bool
9239 #if defined(XP_WIN)
9240 value: false
9241 #else
9242 value: true
9243 #endif
9244 mirror: always
9245 set_spidermonkey_pref: always
9246
9247 # Whether to support parsing '//(#@) source(Mapping)?URL=' pragmas.
9248 - name: javascript.options.source_pragmas
9249 type: bool
9250 value: true
9251 mirror: always
9252
9253 # asm.js
9254 - name: javascript.options.asmjs
9255 type: bool
9256 value: true
9257 mirror: always
9258
9259 # Whether to throw a TypeError if asm.js code hits validation failure.
9260 - name: javascript.options.throw_on_asmjs_validation_failure
9261 type: bool
9262 value: false
9263 mirror: always
9264
9265 # Whether to show a warning if asm.js is used.
9266 - name: javascript.options.warn_asmjs_deprecation
9267 type: bool
9268 value: true
9269 mirror: always
9270 set_spidermonkey_pref: always
9271
9272 # Whether to disable the jit within the main process
9273 - name: javascript.options.main_process_disable_jit
9274 type: bool
9275 #ifdef XP_IOS
9276 value: true
9277 #else
9278 value: false
9279 #endif
9280 mirror: always
9281
9282 #---------------------------------------------------------------------------
9283 # Prefs starting with "layers."
9284 #---------------------------------------------------------------------------
9285
9286 # Whether to disable acceleration for all widgets.
9287 - name: layers.acceleration.disabled
9288 type: bool
9289 value: false
9290 mirror: once
9291 do_not_use_directly: true
9292 # Instead, use gfxConfig::IsEnabled(Feature::HW_COMPOSITING).
9293
9294 # Whether to force acceleration on, ignoring blacklists.
9295 - name: layers.acceleration.force-enabled
9296 type: bool
9297 value: false
9298 mirror: once
9299 do_not_use_directly: true
9300
9301 # Whether we allow AMD switchable graphics.
9302 - name: layers.amd-switchable-gfx.enabled
9303 type: bool
9304 value: true
9305 mirror: once
9306
9307 # Whether to use async panning and zooming.
9308 - name: layers.async-pan-zoom.enabled
9309 type: bool
9310 value: true
9311 mirror: once
9312 do_not_use_directly: true
9313
9314 - name: layers.d3d11.force-warp
9315 type: bool
9316 value: false
9317 mirror: once
9318
9319 - name: layers.d3d11.enable-blacklist
9320 type: bool
9321 value: true
9322 mirror: once
9323
9324 # Enable DEAA antialiasing for transformed layers in the compositor.
9325 - name: layers.deaa.enabled
9326 type: RelaxedAtomicBool
9327 #if defined(MOZ_WIDGET_ANDROID)
9328 value: false
9329 #else
9330 value: true
9331 #endif
9332 mirror: always
9333
9334 # Force all possible layers to be always active layers.
9335 - name: layers.force-active
9336 type: bool
9337 value: false
9338 mirror: always
9339
9340 - name: layers.draw-mask-debug
9341 type: RelaxedAtomicBool
9342 value: false
9343 mirror: always
9344
9345 - name: layers.force-synchronous-resize
9346 type: RelaxedAtomicBool
9347 #ifdef MOZ_WAYLAND
9348 # We want to control it by nsWindow::SynchronouslyRepaintOnResize() on Linux/Wayland.
9349 value: false
9350 #else
9351 value: true
9352 #endif
9353 mirror: always
9354
9355 - name: layers.gpu-process.allow-software
9356 type: bool
9357 #if defined(XP_WIN)
9358 value: true
9359 #else
9360 value: false
9361 #endif
9362 mirror: once
9363
9364 - name: layers.gpu-process.enabled
9365 type: bool
9366 #if defined(XP_WIN) || defined(MOZ_WIDGET_ANDROID)
9367 value: true
9368 #elif defined(MOZ_X11)
9369 value: false # we'd like this to be @IS_NIGHTLY_BUILD@, see Bug 1927058
9370 #else
9371 value: false
9372 #endif
9373 mirror: once
9374
9375 - name: layers.gpu-process.force-enabled
9376 type: bool
9377 value: false
9378 mirror: once
9379
9380 - name: layers.gpu-process.ipc_reply_timeout_ms
9381 type: int32_t
9382 value: 10000
9383 mirror: once
9384
9385 - name: layers.gpu-process.extend_ipc_reply_timeout_ms
9386 type: int32_t
9387 value: 20000
9388 mirror: once
9389
9390 # How many unstable GPU process restarts we allow for a given configuration.
9391 - name: layers.gpu-process.max_restarts
9392 type: RelaxedAtomicInt32
9393 #if defined(XP_WIN) || defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_ANDROID)
9394 value: 6
9395 #else
9396 value: 1
9397 #endif
9398 mirror: always
9399
9400 # How many frames we must render before declaring the GPU process stable, and
9401 # allow restarts without it counting against our maximum restarts.
9402 - name: layers.gpu-process.stable.frame-threshold
9403 type: RelaxedAtomicUint32
9404 value: 10
9405 mirror: always
9406
9407 # How many milliseconds the GPU process must have lived before we accept that
9408 # it is stable, and allow restarts without it counting against our maximum
9409 # restarts.
9410 - name: layers.gpu-process.stable.min-uptime-ms
9411 type: RelaxedAtomicInt32
9412 value: 4 * 60000
9413 mirror: always
9414
9415 # Note: This pref will only be used if it is less than layers.gpu-process.max_restarts.
9416 - name: layers.gpu-process.max_restarts_with_decoder
9417 type: RelaxedAtomicInt32
9418 value: 0
9419 mirror: always
9420
9421 - name: layers.gpu-process.startup_timeout_ms
9422 type: int32_t
9423 value: 5000
9424 mirror: once
9425
9426 - name: layers.gpu-process.crash-also-crashes-browser
9427 type: bool
9428 value: false
9429 mirror: always
9430
9431 # Whether to animate simple opacity and transforms on the compositor.
9432 - name: layers.offmainthreadcomposition.async-animations
9433 type: bool
9434 value: true
9435 mirror: always
9436
9437 # Whether to log information about off main thread animations to stderr.
9438 - name: layers.offmainthreadcomposition.log-animations
9439 type: bool
9440 value: false
9441 mirror: always
9442
9443 - name: layers.offmainthreadcomposition.force-disabled
9444 type: bool
9445 value: false
9446 mirror: once
9447
9448 # Compositor target frame rate. NOTE: If vsync is enabled the compositor
9449 # frame rate will still be capped.
9450 # -1 -> default (match layout.frame_rate or 60 FPS)
9451 # 0 -> full-tilt mode: Recomposite even if not transaction occured.
9452 - name: layers.offmainthreadcomposition.frame-rate
9453 type: RelaxedAtomicInt32
9454 value: -1
9455 mirror: always
9456
9457 #ifdef XP_WIN
9458 - name: layers.prefer-opengl
9459 type: bool
9460 value: false
9461 mirror: once
9462 #endif
9463
9464 # Copy-on-write canvas.
9465 - name: layers.shared-buffer-provider.enabled
9466 type: RelaxedAtomicBool
9467 value: true
9468 mirror: always
9469
9470 - name: layers.recycle-allocator-rdd
9471 type: bool
9472 value: true
9473 mirror: once
9474
9475 - name: layers.iosurfaceimage.recycle-limit
9476 type: RelaxedAtomicUint32
9477 value: 15
9478 mirror: always
9479
9480 #---------------------------------------------------------------------------
9481 # Prefs starting with "layout."
9482 #---------------------------------------------------------------------------
9483
9484 # Debug-only pref to force enable the AccessibleCaret. If you want to
9485 # control AccessibleCaret by mouse, you'll need to set
9486 # "layout.accessiblecaret.hide_carets_for_mouse_input" to false.
9487 - name: layout.accessiblecaret.enabled
9488 type: bool
9489 value: false
9490 mirror: always
9491
9492 # Enable the accessible caret on platforms/devices
9493 # that we detect have touch support. Note that this pref is an
9494 # additional way to enable the accessible carets, rather than
9495 # overriding the layout.accessiblecaret.enabled pref.
9496 - name: layout.accessiblecaret.enabled_on_touch
9497 type: bool
9498 value: true
9499 mirror: always
9500
9501 # By default, carets become tilt only when they are overlapping.
9502 - name: layout.accessiblecaret.always_tilt
9503 type: bool
9504 value: false
9505 mirror: always
9506
9507 # Show caret in cursor mode when long tapping on an empty content. This
9508 # also changes the default update behavior in cursor mode, which is based
9509 # on the emptiness of the content, into something more heuristic. See
9510 # AccessibleCaretManager::UpdateCaretsForCursorMode() for the details.
9511 - name: layout.accessiblecaret.caret_shown_when_long_tapping_on_empty_content
9512 type: bool
9513 value: false
9514 mirror: always
9515
9516 # 0 = by default, always hide carets for selection changes due to JS calls.
9517 # 1 = update any visible carets for selection changes due to JS calls,
9518 # but don't show carets if carets are hidden.
9519 # 2 = always show carets for selection changes due to JS calls.
9520 - name: layout.accessiblecaret.script_change_update_mode
9521 type: int32_t
9522 value: 0
9523 mirror: always
9524
9525 # Allow one caret to be dragged across the other caret without any limitation.
9526 # This matches the built-in convention for all desktop platforms.
9527 - name: layout.accessiblecaret.allow_dragging_across_other_caret
9528 type: bool
9529 value: true
9530 mirror: always
9531
9532 # Optionally provide haptic feedback on long-press selection events.
9533 - name: layout.accessiblecaret.hapticfeedback
9534 type: bool
9535 value: false
9536 mirror: always
9537
9538 # Smart phone-number selection on long-press is not enabled by default.
9539 - name: layout.accessiblecaret.extend_selection_for_phone_number
9540 type: bool
9541 value: false
9542 mirror: always
9543
9544 # Keep the accessible carets hidden when the user is using mouse input (as
9545 # opposed to touch/pen/etc.).
9546 - name: layout.accessiblecaret.hide_carets_for_mouse_input
9547 type: bool
9548 value: true
9549 mirror: always
9550
9551 # CSS attributes (width, height, margin-left) of the AccessibleCaret in CSS
9552 # pixels.
9553 - name: layout.accessiblecaret.width
9554 type: float
9555 value: 34.0f
9556 mirror: always
9557
9558 - name: layout.accessiblecaret.height
9559 type: float
9560 value: 36.0f
9561 mirror: always
9562
9563 - name: layout.accessiblecaret.margin-left
9564 type: float
9565 value: -18.5f
9566 mirror: always
9567
9568 - name: layout.accessiblecaret.transition-duration
9569 type: float
9570 value: 250.0f
9571 mirror: always
9572
9573 # Simulate long tap events to select words. Mainly used in manual testing
9574 # with mouse.
9575 - name: layout.accessiblecaret.use_long_tap_injector
9576 type: bool
9577 value: false
9578 mirror: always
9579
9580 # To support magnify glass, whether we dispatch additional chrome event such as
9581 # dragcaret.
9582 - name: layout.accessiblecaret.magnifier.enabled
9583 type: bool
9584 value: @IS_ANDROID@
9585 mirror: always
9586
9587 # One of several prefs affecting the maximum area to pre-render when animating
9588 # a large element on the compositor.
9589 # This pref enables transform (and transform like properties) animations on a
9590 # large element run on the compositor with rendering partial area of the
9591 # element on the main thread instead of rendering the whole area. Once the
9592 # animation tried to composite out of the partial rendered area, the animation
9593 # is rendered again with the latest visible partial area.
9594 - name: layout.animation.prerender.partial
9595 type: RelaxedAtomicBool
9596 value: false
9597 mirror: always
9598
9599 # One of several prefs affecting the maximum area to pre-render when animating
9600 # a large element on the compositor.
9601 # This value is applied to both x and y axes and a perfect square contructed
9602 # by the greater axis value which will be capped by the absolute limits is used
9603 # for the partial pre-render area.
9604 - name: layout.animation.prerender.viewport-ratio-limit
9605 type: AtomicFloat
9606 value: 1.125f
9607 mirror: always
9608
9609 # One of several prefs affecting the maximum area to pre-render when animating
9610 # a large element on the compositor.
9611 - name: layout.animation.prerender.absolute-limit-x
9612 type: RelaxedAtomicUint32
9613 value: 4096
9614 mirror: always
9615
9616 # One of several prefs affecting the maximum area to pre-render when animating
9617 # a large element on the compositor.
9618 - name: layout.animation.prerender.absolute-limit-y
9619 type: RelaxedAtomicUint32
9620 value: 4096
9621 mirror: always
9622
9623 # Test-only pref, if this is true, partial pre-rendered transform animations
9624 # get stuck when it reaches to the pre-rendered boundaries and the pre-render
9625 # region is never updated.
9626 - name: layout.animation.prerender.partial.jank
9627 type: RelaxedAtomicBool
9628 value: false
9629 mirror: always
9630
9631 # Whether to enable CSS Anchor Positioning support.
9632 # https://drafts.csswg.org/css-anchor-position-1/
9633 - name: layout.css.anchor-positioning.enabled
9634 type: RelaxedAtomicBool
9635 value: false
9636 mirror: always
9637 rust: true
9638
9639 # Override DPI. A value of -1 means use the maximum of 96 and the system DPI.
9640 # A value of 0 means use the system DPI. A positive value is used as the DPI.
9641 # This sets the physical size of a device pixel and thus controls the
9642 # interpretation of physical units such as "pt".
9643 - name: layout.css.dpi
9644 type: int32_t
9645 value: -1
9646 mirror: always
9647
9648 # Whether to always underline links.
9649 - name: layout.css.always_underline_links
9650 type: RelaxedAtomicBool
9651 value: false
9652 mirror: always
9653 rust: true
9654
9655 # Whether to respect align-content on blocks.
9656 - name: layout.css.align-content.blocks.enabled
9657 type: RelaxedAtomicBool
9658 value: true
9659 mirror: always
9660 rust: true
9661
9662 # Whether content-box and stroke-box are enabled for transform-box.
9663 - name: layout.css.transform-box-content-stroke.enabled
9664 type: RelaxedAtomicBool
9665 value: true
9666 mirror: always
9667 rust: true
9668
9669 # Whether transition-behavior property is enabled?
9670 - name: layout.css.transition-behavior.enabled
9671 type: RelaxedAtomicBool
9672 value: true
9673 mirror: always
9674 rust: true
9675
9676 # Whether @starting-style is enabled?
9677 - name: layout.css.starting-style-at-rules.enabled
9678 type: RelaxedAtomicBool
9679 value: true
9680 mirror: always
9681 rust: true
9682
9683 # Whether style() container queries are enabled
9684 - name: layout.css.style-queries.enabled
9685 type: RelaxedAtomicBool
9686 value: false
9687 mirror: always
9688 rust: true
9689
9690 # Should we look for counter ancestor scopes first?
9691 - name: layout.css.counter-ancestor-scope.enabled
9692 type: bool
9693 value: true
9694 mirror: always
9695
9696 # Whether the `-moz-control-character-visibility` property is exposed to
9697 # content.
9698 #
9699 # Only for testing purposes.
9700 - name: layout.css.moz-control-character-visibility.enabled
9701 type: RelaxedAtomicBool
9702 value: false
9703 mirror: always
9704 rust: true
9705
9706 # Whether the `-moz-user-input` property is exposed to content.
9707 - name: layout.css.moz-user-input.enabled
9708 type: RelaxedAtomicBool
9709 value: false
9710 mirror: always
9711 rust: true
9712
9713 # This pref controls whether the `prefers-color-scheme` value of iframes images
9714 # reacts to the embedder `color-scheme` in content.
9715 - name: layout.css.iframe-embedder-prefers-color-scheme.content.enabled
9716 type: RelaxedAtomicBool
9717 value: true
9718 mirror: always
9719
9720 # Controls the transparency of the initial about:blank document. Generally you
9721 # don't ever want a white flash in dark mode, but due to backwards compat we
9722 # have some extra control over this, for now at least.
9723 #
9724 # See https://github.com/w3c/csswg-drafts/issues/9624 for iframes.
9725 #
9726 # Values:
9727 # 1: content-inaccessible top-level only.
9728 # 2: frames and content-inaccessible top-level only.
9729 # 3: always
9730 # Others: don't treat this document specially.
9731 - name: layout.css.initial-document-transparency
9732 type: RelaxedAtomicInt32
9733 value: 3
9734 mirror: always
9735
9736 # The minimum contrast ratio between the accent color background and white.
9737 #
9738 # We don't use this for text, so we need a contrast of at least AA (for user
9739 # interface components and graphical objects), which per WCAG is 3:1.
9740 #
9741 # However that causes some colors that are realistically fine to get darkened,
9742 # so we lower it a little bit. Eventually we should maybe use something like
9743 # APCA or so perhaps, see:
9744 #
9745 # * https://ruitina.com/apca-accessible-colour-contrast/
9746 # * https://github.com/w3c/csswg-drafts/issues/7937
9747 #
9748 # See also:
9749 #
9750 # * https://accent-color.glitch.me/
9751 #
9752 # For testing this.
9753 - name: layout.css.accent-color.min-contrast-ratio
9754 type: AtomicFloat
9755 value: 2.4
9756 mirror: always
9757
9758 # The target contrast ratio between the accent color foreground and background
9759 # colors when darkening.
9760 #
9761 # We aim a bit further than the minimum contrast ratio, which seems to provide
9762 # nice results in practice.
9763 - name: layout.css.accent-color.darkening-target-contrast-ratio
9764 type: AtomicFloat
9765 value: 6.0
9766 mirror: always
9767
9768 # Whether the `animation-composition` in css-animations-2 is enabled.
9769 - name: layout.css.animation-composition.enabled
9770 type: bool
9771 value: true
9772 mirror: always
9773
9774 # Is the codepath for using cached scrollbar styles enabled?
9775 - name: layout.css.cached-scrollbar-styles.enabled
9776 type: bool
9777 value: true
9778 mirror: always
9779
9780 # Are implicit tracks in computed grid templates serialized?
9781 - name: layout.css.serialize-grid-implicit-tracks
9782 type: RelaxedAtomicBool
9783 value: true
9784 mirror: always
9785
9786 # Whether the system-ui generic family is enabled.
9787 - name: layout.css.system-ui.enabled
9788 type: RelaxedAtomicBool
9789 value: true
9790 mirror: always
9791 rust: true
9792
9793 # Set the number of device pixels per CSS pixel. A value <= 0 means choose
9794 # automatically based on user settings for the platform (e.g., "UI scale factor"
9795 # on Mac). If browser.display.os-zoom-behavior == 1, then a positive value
9796 # will be multiplied by the text scale factor; otherwise a positive value is
9797 # used as-is. This controls the size of a CSS "px" at 100% full-zoom.
9798 # The size of system fonts is also changed in proportion with the change in
9799 # "px" sizes. Use "ui.textScaleFactor" instead to only change the size of "px".
9800 # This is only used for windows on the screen, not for printing.
9801 - name: layout.css.devPixelsPerPx
9802 type: AtomicFloat
9803 value: -1.0f
9804 mirror: always
9805
9806 # Is support for CSS backdrop-filter enabled?
9807 - name: layout.css.backdrop-filter.enabled
9808 type: bool
9809 value: true
9810 mirror: always
9811
9812 # Do we override the blocklist for CSS backdrop-filter?
9813 - name: layout.css.backdrop-filter.force-enabled
9814 type: bool
9815 value: false
9816 mirror: always
9817
9818 # Is support for rect() enabled?
9819 - name: layout.css.basic-shape-rect.enabled
9820 type: RelaxedAtomicBool
9821 value: true
9822 mirror: always
9823 rust: true
9824
9825 # Is support for shape() enabled?
9826 - name: layout.css.basic-shape-shape.enabled
9827 type: RelaxedAtomicBool
9828 value: @IS_NIGHTLY_BUILD@
9829 mirror: always
9830 rust: true
9831
9832 # Is support for xywh() enabled?
9833 - name: layout.css.basic-shape-xywh.enabled
9834 type: RelaxedAtomicBool
9835 value: true
9836 mirror: always
9837 rust: true
9838
9839 # Whether alt text in content is enabled.
9840 - name: layout.css.content.alt-text.enabled
9841 type: RelaxedAtomicBool
9842 value: true
9843 mirror: always
9844 rust: true
9845
9846 # Should stray control characters be rendered visibly?
9847 - name: layout.css.control-characters.visible
9848 type: RelaxedAtomicBool
9849 value: @IS_NOT_RELEASE_OR_BETA@
9850 mirror: always
9851 rust: true
9852
9853 # Whether the `contain-intrinsic-size` CSS property is enabled
9854 - name: layout.css.contain-intrinsic-size.enabled
9855 type: RelaxedAtomicBool
9856 value: true
9857 mirror: always
9858 rust: true
9859
9860 # Is support for GeometryUtils.convert*FromNode enabled?
9861 - name: layout.css.convertFromNode.enabled
9862 type: bool
9863 value: @IS_NOT_RELEASE_OR_BETA@
9864 mirror: always
9865
9866 - name: layout.css.cross-fade.enabled
9867 type: RelaxedAtomicBool
9868 value: false
9869 mirror: always
9870 rust: true
9871
9872 # Is support for light-dark() on images in content enabled?
9873 - name: layout.css.light-dark.images.enabled
9874 type: RelaxedAtomicBool
9875 value: false
9876 mirror: always
9877 rust: true
9878
9879 # Is support for fit-content() enabled?
9880 - name: layout.css.fit-content-function.enabled
9881 type: RelaxedAtomicBool
9882 value: false
9883 mirror: always
9884 rust: true
9885
9886 # Whether to use tight bounds for floating ::first-letter (legacy Gecko behavior)
9887 # or loose bounds based on overall font metrics (WebKit/Blink-like behavior)?
9888 # Values mean:
9889 # 1 legacy Gecko behavior (tight bounds)
9890 # 0 loose typographic bounds (similar to webkit/blink)
9891 # -1 auto behavior: use loose bounds if reduced line-height (<1em) or negative
9892 # block-start margin is present; otherwise use tight bounds.
9893 - name: layout.css.floating-first-letter.tight-glyph-bounds
9894 type: int32_t
9895 #ifdef NIGHTLY_BUILD
9896 value: -1
9897 #else
9898 value: 1
9899 #endif
9900 mirror: always
9901
9902 # Is support for the @font-palette-values rule and font-palette property enabled?
9903 - name: layout.css.font-palette.enabled
9904 type: RelaxedAtomicBool
9905 value: true
9906 mirror: always
9907 rust: true
9908
9909 # Is support for variation fonts enabled?
9910 - name: layout.css.font-variations.enabled
9911 type: RelaxedAtomicBool
9912 value: true
9913 mirror: always
9914 rust: true
9915
9916 # Is support for the size-adjust @font-face descriptor enabled?
9917 - name: layout.css.size-adjust.enabled
9918 type: RelaxedAtomicBool
9919 value: true
9920 mirror: always
9921 rust: true
9922
9923 # Is support for the tech() function in the @font-face src descriptor enabled?
9924 - name: layout.css.font-tech.enabled
9925 type: RelaxedAtomicBool
9926 value: true
9927 mirror: always
9928 rust: true
9929
9930 # Is support for font-variant-emoji enabled?
9931 - name: layout.css.font-variant-emoji.enabled
9932 type: RelaxedAtomicBool
9933 value: @IS_NIGHTLY_BUILD@
9934 mirror: always
9935 rust: true
9936
9937 # Visibility level of font families available to CSS font-matching:
9938 # 1 - only base system fonts
9939 # 2 - also fonts from optional language packs
9940 # 3 - also user-installed fonts
9941 - name: layout.css.font-visibility
9942 type: int32_t
9943 value: 3
9944 mirror: always
9945
9946 # Is support for GeometryUtils.getBoxQuads enabled?
9947 - name: layout.css.getBoxQuads.enabled
9948 type: bool
9949 value: @IS_NOT_RELEASE_OR_BETA@
9950 mirror: always
9951
9952 # Is support for (linear|radial|conic)-gradient color interpolation methods enabled?
9953 - name: layout.css.gradient-color-interpolation-method.enabled
9954 type: RelaxedAtomicBool
9955 value: true
9956 mirror: always
9957 rust: true
9958
9959 # Should we propagate baseline alignment information from a parent grid into
9960 # its subgrids?
9961 - name: layout.css.grid-subgrid-baselines.enabled
9962 type: RelaxedAtomicBool
9963 value: @IS_NIGHTLY_BUILD@
9964 mirror: always
9965
9966 # Is support for CSS masonry layout enabled?
9967 - name: layout.css.grid-template-masonry-value.enabled
9968 type: RelaxedAtomicBool
9969 #if defined(NIGHTLY_BUILD) || defined(MOZ_THUNDERBIRD)
9970 value: true
9971 #else
9972 value: false
9973 #endif
9974 mirror: always
9975 rust: true
9976
9977 # Perform intrinsic sizing of flexible grid tracks based on grid items that
9978 # span more than one track.
9979 - name: layout.css.grid-flex-spanning-items-intrinsic-sizing.enabled
9980 type: bool
9981 value: true
9982 mirror: always
9983
9984 # Enable the new multi-pass grid track sizing algorithm.
9985 # This features implements two aspects from the CSS Grid Level 2 spec:
9986 # 1. Percent-valued row track size re-resolution:
9987 # https://drafts.csswg.org/css-grid-2/#track-sizes
9988 # 2. Multi-pass grid sizing algorithm:
9989 # https://drafts.csswg.org/css-grid-2/#algo-grid-sizing
9990 - name: layout.css.grid-multi-pass-track-sizing.enabled
9991 type: bool
9992 value: false
9993 mirror: always
9994
9995 # Is support for :has() enabled?
9996 - name: layout.css.has-selector.enabled
9997 type: RelaxedAtomicBool
9998 value: true
9999 mirror: always
10000 rust: true
10001
10002 # Whether the `:has-slotted` pseudo class is enabled
10003 - name: layout.css.has-slotted-selector.enabled
10004 type: RelaxedAtomicBool
10005 value: true
10006 mirror: always
10007 rust: true
10008
10009 # Is support for CSS hyphenate-limit-chars enabled?
10010 - name: layout.css.hyphenate-limit-chars.enabled
10011 type: RelaxedAtomicBool
10012 value: true
10013 mirror: always
10014
10015 # Is support for CSS initial-letter property enabled?
10016 - name: layout.css.initial-letter.enabled
10017 type: bool
10018 value: false
10019 mirror: always
10020
10021 # Is eager first-letter processing during intrinsic size computation enabled?
10022 - name: layout.css.intrinsic-size-first-letter.enabled
10023 type: bool
10024 value: true
10025 mirror: always
10026
10027 # Which model to use for CSS letter-spacing:
10028 # 0 - Gecko legacy model, spacing added to trailing side of letter
10029 # 1 - WebKit/Blink-compatible, spacing always added to right-hand side
10030 # 2 - Symmetrical spacing, half added to each side
10031 - name: layout.css.letter-spacing.model
10032 type: int32_t
10033 #if defined(MOZ_DEV_EDITION) || defined(EARLY_BETA_OR_EARLIER)
10034 value: 2
10035 #else
10036 value: 0
10037 #endif
10038 mirror: always
10039
10040 # Is support for motion-path url enabled?
10041 - name: layout.css.motion-path-url.enabled
10042 type: RelaxedAtomicBool
10043 value: true
10044 mirror: always
10045 rust: true
10046
10047 # Pref to control whether the ::marker property restrictions defined in [1]
10048 # apply.
10049 #
10050 # [1]: https://drafts.csswg.org/css-pseudo-4/#selectordef-marker
10051 - name: layout.css.marker.restricted
10052 type: RelaxedAtomicBool
10053 value: true
10054 mirror: always
10055 rust: true
10056
10057 # Is -moz-osx-font-smoothing enabled? (Only supported in OSX builds)
10058 - name: layout.css.osx-font-smoothing.enabled
10059 type: bool
10060 #if defined(XP_MACOSX)
10061 value: true
10062 #else
10063 value: false
10064 #endif
10065 mirror: always
10066
10067 # Is support for CSS overflow-clip-box enabled for non-UA sheets?
10068 - name: layout.css.overflow-clip-box.enabled
10069 type: bool
10070 value: false
10071 mirror: always
10072
10073 # Is support for CSS overflow: -moz-hidden-unscrollable enabled
10074 - name: layout.css.overflow-moz-hidden-unscrollable.enabled
10075 type: RelaxedAtomicBool
10076 value: @IS_NOT_NIGHTLY_BUILD@
10077 mirror: always
10078 rust: true
10079
10080 # Is support for overscroll-behavior enabled?
10081 - name: layout.css.overscroll-behavior.enabled
10082 type: bool
10083 value: true
10084 mirror: always
10085
10086 # Enables support for @margin rules.
10087 - name: layout.css.margin-rules.enabled
10088 type: RelaxedAtomicBool
10089 value: false
10090 mirror: always
10091 rust: true
10092
10093 # Whether Properties and Values is enabled
10094 - name: layout.css.properties-and-values.enabled
10095 type: RelaxedAtomicBool
10096 value: true
10097 mirror: always
10098 rust: true
10099
10100 # Whether @scope rule is enabled
10101 - name: layout.css.at-scope.enabled
10102 type: RelaxedAtomicBool
10103 value: @IS_NIGHTLY_BUILD@
10104 mirror: always
10105 rust: true
10106
10107 # An override for prefers-color-scheme for content documents.
10108 # 0: Dark
10109 # 1: Light
10110 # 2: Auto (system color scheme unless overridden by browser theme)
10111 - name: layout.css.prefers-color-scheme.content-override
10112 type: RelaxedAtomicInt32
10113 value: 2
10114 mirror: always
10115
10116 # Dictates whether or not the prefers-reduced-transparency media query is enabled.
10117 - name: layout.css.prefers-reduced-transparency.enabled
10118 type: RelaxedAtomicBool
10119 value: false
10120 mirror: always
10121 rust: true
10122
10123 # Dictates whether or not the inverted-colors media query is enabled.
10124 - name: layout.css.inverted-colors.enabled
10125 type: RelaxedAtomicBool
10126 value: false
10127 mirror: always
10128 rust: true
10129
10130 # Is support for -moz-prefixed animation properties enabled?
10131 - name: layout.css.prefixes.animations
10132 type: bool
10133 value: true
10134 mirror: always
10135
10136 # Is support for -moz-border-image enabled?
10137 - name: layout.css.prefixes.border-image
10138 type: bool
10139 value: true
10140 mirror: always
10141
10142 # Is support for -moz-box-sizing enabled?
10143 - name: layout.css.prefixes.box-sizing
10144 type: bool
10145 value: true
10146 mirror: always
10147
10148 # Is support for -moz-prefixed font feature properties enabled?
10149 - name: layout.css.prefixes.font-features
10150 type: bool
10151 value: true
10152 mirror: always
10153
10154 # Is support for -moz-prefixed transform properties enabled?
10155 - name: layout.css.prefixes.transforms
10156 type: bool
10157 value: true
10158 mirror: always
10159
10160 # Is support for -moz-prefixed transition properties enabled?
10161 - name: layout.css.prefixes.transitions
10162 type: bool
10163 value: true
10164 mirror: always
10165
10166 # Enable relative color syntax: https://drafts.csswg.org/css-color-5/#relative-colors
10167 - name: layout.css.relative-color-syntax.enabled
10168 type: RelaxedAtomicBool
10169 value: true
10170 mirror: always
10171 rust: true
10172
10173 # Is CSS error reporting enabled?
10174 - name: layout.css.report_errors
10175 type: bool
10176 value: true
10177 mirror: always
10178
10179 # Are inter-character ruby annotations enabled?
10180 - name: layout.css.ruby.intercharacter.enabled
10181 type: bool
10182 value: false
10183 mirror: always
10184
10185 - name: layout.css.scroll-behavior.damping-ratio
10186 type: AtomicFloat
10187 value: 1.0f
10188 mirror: always
10189
10190 # Tuning of the smooth scroll motion used by CSSOM-View scroll-behavior.
10191 # Spring-constant controls the strength of the simulated MSD
10192 # (Mass-Spring-Damper).
10193 - name: layout.css.scroll-behavior.spring-constant
10194 type: AtomicFloat
10195 value: 250.0f
10196 mirror: always
10197
10198 # Whether the scroll-driven animations generated by CSS is enabled. This
10199 # also include animation-timeline property.
10200 - name: layout.css.scroll-driven-animations.enabled
10201 type: RelaxedAtomicBool
10202 value: @IS_NIGHTLY_BUILD@
10203 mirror: always
10204 rust: true
10205
10206 # When selecting the snap point for CSS scroll snapping, the velocity of the
10207 # scroll frame is clamped to this speed, in CSS pixels / s.
10208 - name: layout.css.scroll-snap.prediction-max-velocity
10209 type: RelaxedAtomicInt32
10210 value: 2000
10211 mirror: always
10212
10213 # When selecting the snap point for CSS scroll snapping, the velocity of the
10214 # scroll frame is integrated over this duration, in seconds. The snap point
10215 # best suited for this position is selected, enabling the user to perform fling
10216 # gestures.
10217 - name: layout.css.scroll-snap.prediction-sensitivity
10218 type: AtomicFloat
10219 value: 0.750f
10220 mirror: always
10221
10222 # Stylo thread-pool size.
10223 # Negative means auto, 0 disables the thread-pool (main-thread styling), other
10224 # numbers override as specified.
10225 # Note that 1 still creates a thread-pool of one thread!
10226 - name: layout.css.stylo-threads
10227 type: RelaxedAtomicInt32
10228 value: -1
10229 mirror: always
10230 rust: true
10231
10232 # Stylo work unit size. This is the amount of nodes we'll process in a single
10233 # unit of work of the thread-pool.
10234 #
10235 # Larger values will increase style sharing cache hits and general DOM locality
10236 # at the expense of decreased opportunities for parallelism. There are some
10237 # measurements in bug 1385982 comments 11, 12, 13 that investigate some
10238 # slightly different values for the work unit size.
10239 #
10240 # If the size is significantly increased, make sure to also review
10241 # stylo-local-work-queue prefs, since we might end up doing too much work
10242 # sequentially.
10243 #
10244 # A value of 0 disables parallelism altogether.
10245 - name: layout.css.stylo-work-unit-size
10246 type: RelaxedAtomicUint32
10247 value: 16
10248 mirror: always
10249 rust: true
10250
10251 # The minimum amount of work that a thread doing styling will try to keep
10252 # locally before sending work to other threads, in a worker.
10253 - name: layout.css.stylo-local-work-queue.in-worker
10254 type: RelaxedAtomicUint32
10255 value: 0
10256 mirror: always
10257 rust: true
10258
10259 # As above but for the main thread. The main thread can't really steal from
10260 # other threads so it might want a bigger min queue size before giving work to
10261 # other threads.
10262 - name: layout.css.stylo-local-work-queue.in-main-thread
10263 type: RelaxedAtomicUint32
10264 value: 32
10265 mirror: always
10266 rust: true
10267
10268 # Are counters for implemented CSS properties enabled?
10269 - name: layout.css.use-counters.enabled
10270 type: bool
10271 value: true
10272 mirror: always
10273
10274 # Are counters for unimplemented CSS properties enabled?
10275 - name: layout.css.use-counters-unimplemented.enabled
10276 type: RelaxedAtomicBool
10277 value: true
10278 mirror: always
10279 rust: true
10280
10281 # Should the :visited selector ever match (otherwise :link matches instead)?
10282 - name: layout.css.visited_links_enabled
10283 type: bool
10284 value: true
10285 mirror: always
10286
10287 # The margin used for detecting relevancy for `content-visibility: auto`.
10288 - name: layout.css.content-visibility-relevant-content-margin
10289 type: float
10290 value: 50 # 50%
10291 mirror: always
10292
10293 # Whether the `hanging` and `each-line` keywords are supported by `text-indent`
10294 - name: layout.css.text-indent-keywords.enabled
10295 type: RelaxedAtomicBool
10296 value: true
10297 mirror: always
10298 rust: true
10299
10300 # Whether the "modern" uppercase mapping of ß to ẞ (rather than SS) is used.
10301 - name: layout.css.text-transform.uppercase-eszett.enabled
10302 type: bool
10303 value: false
10304 mirror: always
10305
10306 - name: layout.css.text-wrap-balance.enabled
10307 type: bool
10308 value: true
10309 mirror: always
10310
10311 # Maximum number of lines to try balancing.
10312 - name: layout.css.text-wrap-balance.limit
10313 type: int32_t
10314 value: 10
10315 mirror: always
10316
10317 - name: layout.css.text-wrap-balance-after-clamp.enabled
10318 type: bool
10319 value: true
10320 mirror: always
10321
10322 - name: layout.css.text-align.justify-only-after-last-tab
10323 type: bool
10324 value: true
10325 mirror: always
10326
10327 # Support for the css Zoom property.
10328 - name: layout.css.zoom.enabled
10329 type: RelaxedAtomicBool
10330 value: true
10331 mirror: always
10332 rust: true
10333
10334 # UA styles for h1 in article/aside/nav/section. See bug 1883896.
10335 - name: layout.css.h1-in-section-ua-styles.enabled
10336 type: RelaxedAtomicBool
10337 value: false
10338 mirror: always
10339
10340 # CSS for android picture-in-picture. See bug 1940052.
10341 - name: layout.css.android-pip.enabled
10342 type: RelaxedAtomicBool
10343 value: true
10344 mirror: always
10345
10346 # The maximum width or height of the cursor we should allow when intersecting
10347 # the UI, in CSS pixels.
10348 - name: layout.cursor.block.max-size
10349 type: uint32_t
10350 value: 32
10351 mirror: always
10352
10353 - name: layout.cursor.disable-for-popups
10354 type: bool
10355 value: true
10356 mirror: always
10357
10358 - name: layout.display-list.build-twice
10359 type: RelaxedAtomicBool
10360 value: false
10361 mirror: always
10362
10363 # Toggle retaining display lists between paints.
10364 - name: layout.display-list.retain
10365 type: RelaxedAtomicBool
10366 value: true
10367 mirror: always
10368
10369 # Toggle retaining display lists between paints.
10370 - name: layout.display-list.retain.chrome
10371 type: RelaxedAtomicBool
10372 value: true
10373 mirror: always
10374
10375 - name: layout.display-list.retain.sc
10376 type: RelaxedAtomicBool
10377 value: false
10378 mirror: always
10379
10380 # Set the maximum number of modified frames allowed before doing a full
10381 # display list rebuild.
10382 - name: layout.display-list.rebuild-frame-limit
10383 type: RelaxedAtomicUint32
10384 value: 500
10385 mirror: always
10386
10387 # Pref to dump the display list to the log. Useful for debugging drawing.
10388 - name: layout.display-list.dump
10389 type: RelaxedAtomicBool
10390 value: false
10391 mirror: always
10392
10393 # Pref to dump the display list to the log. Useful for debugging drawing.
10394 - name: layout.display-list.dump-content
10395 type: RelaxedAtomicBool
10396 value: false
10397 mirror: always
10398
10399 # Pref to dump the display list to the log. Useful for debugging drawing.
10400 - name: layout.display-list.dump-parent
10401 type: RelaxedAtomicBool
10402 value: false
10403 mirror: always
10404
10405 - name: layout.display-list.show-rebuild-area
10406 type: RelaxedAtomicBool
10407 value: false
10408 mirror: always
10409
10410 - name: layout.display-list.improve-fragmentation
10411 type: RelaxedAtomicBool
10412 value: true
10413 mirror: always
10414
10415 # Are dynamic reflow roots enabled?
10416 - name: layout.dynamic-reflow-roots.enabled
10417 type: bool
10418 value: @IS_EARLY_BETA_OR_EARLIER@
10419 mirror: always
10420
10421 # Enables the mechanism to optimize away flex item's final reflow.
10422 # Warning: Disabling the pref will impact the performance. This is useful only for
10423 # debugging flexbox issues.
10424 - name: layout.flexbox.item-final-reflow-optimization.enabled
10425 type: bool
10426 value: true
10427 mirror: always
10428
10429 # Enables the <input type=search> custom layout frame with a clear icon.
10430 # Still needs tests and a web-exposed way to remove that icon, see bug 1654288.
10431 - name: layout.forms.input-type-search.enabled
10432 type: bool
10433 value: false
10434 mirror: always
10435
10436 # Enables the Reveal Password button inside a <input type=password>.
10437 - name: layout.forms.reveal-password-button.enabled
10438 type: bool
10439 value: false
10440 mirror: always
10441
10442 # If enabled, textareas won't include 'overflow:auto' scrollbars in their
10443 # block-axis size (usually height).
10444 - name: layout.forms.textarea-sizing-excludes-auto-scrollbar.enabled
10445 type: bool
10446 value: true
10447 mirror: always
10448
10449 # Pref to control browser frame rate, in Hz. A value <= 0 means choose
10450 # automatically based on knowledge of the platform (or 60Hz if no platform-
10451 # specific information is available).
10452 - name: layout.frame_rate
10453 type: RelaxedAtomicInt32
10454 value: -1
10455 mirror: always
10456
10457 # If it has been this many frame periods since a refresh, assume that painting
10458 # is quiescent (will not happen again soon).
10459 - name: layout.idle_period.required_quiescent_frames
10460 type: uint32_t
10461 value: 2
10462 mirror: always
10463
10464 # The amount of time (milliseconds) needed between an idle period's
10465 # end and the start of the next tick to avoid jank.
10466 - name: layout.idle_period.time_limit
10467 type: uint32_t
10468 value: 1
10469 mirror: always
10470
10471 # The minimum amount of time (milliseconds) required to be remaining
10472 # in the current vsync interval for us to attempt an extra tick, or
10473 # <0 to disable extra ticks entirely.
10474 - name: layout.extra-tick.minimum-ms
10475 type: int32_t
10476 value: 4
10477 mirror: always
10478
10479 # Whether to load the broken image icon eagerly. This is mostly needed for
10480 # reftests, since the broken image icon doesn't block the load event and thus
10481 # there's no easy way to guarantee it's loaded.
10482 - name: layout.image.eager_broken_image_icon
10483 type: bool
10484 value: false
10485 mirror: always
10486
10487 # Enable/disable interruptible reflow, which allows reflows to stop
10488 # before completion (and display the partial results) when user events
10489 # are pending.
10490 - name: layout.interruptible-reflow.enabled
10491 type: bool
10492 value: true
10493 mirror: always
10494
10495 # On Android, don't synth mouse move events after scrolling, as they cause
10496 # unexpected user-visible behaviour. Can remove this after bug 1633450 is
10497 # satisfactorily resolved.
10498 - name: layout.reflow.synthMouseMove
10499 type: bool
10500 value: @IS_NOT_MOBILE@
10501 mirror: always
10502
10503 # This pref determines which side vertical scrollbars should be on.
10504 # 0 = end-side in UI direction
10505 # 1 = end-side in document/content direction
10506 # 2 = right
10507 # 3 = left
10508 - name: layout.scrollbar.side
10509 type: int32_t
10510 value: 0
10511 mirror: always
10512
10513 # This pref is to be set by test code only.
10514 - name: layout.scrollbars.always-layerize-track
10515 type: RelaxedAtomicBool
10516 value: false
10517 mirror: always
10518
10519 - name: layout.scrollbars.click_and_hold_track.continue_to_end
10520 type: bool
10521 # On Linux, click-and-hold on the scrollbar track should continue scrolling
10522 # until the mouse is released. On the other platforms we want to stop
10523 # scrolling as soon as the scrollbar thumb has reached the current mouse
10524 # position.
10525 #ifdef MOZ_WIDGET_GTK
10526 value: true
10527 #else
10528 value: false
10529 #endif
10530 mirror: always
10531
10532 # Whether anchor is kept selected.
10533 - name: layout.selectanchor
10534 type: bool
10535 value: false
10536 mirror: always
10537
10538 # Controls caret style and word-delete during text selection.
10539 # 0: Use platform default
10540 # 1: Caret moves and blinks as when there is no selection; word
10541 # delete deselects the selection and then deletes word.
10542 # 2: Caret moves to selection edge and is not visible during selection;
10543 # word delete deletes the selection (Mac and Linux default).
10544 # 3: Caret moves and blinks as when there is no selection; word delete
10545 # deletes the selection.
10546 # Windows default is 1 for word delete behavior, the rest as for 2.
10547 - name: layout.selection.caret_style
10548 type: int32_t
10549 value: 0
10550 mirror: always
10551
10552 # If layout.show_previous_page is true then during loading of a new page we
10553 # will draw the previous page if the new page has painting suppressed.
10554 - name: layout.show_previous_page
10555 type: bool
10556 value: true
10557 mirror: always
10558
10559 # This will automatically enable inline spellchecking (if it is available) for
10560 # editable elements in HTML.
10561 # 0 = spellcheck nothing
10562 # 1 = check multi-line controls [default]
10563 # 2 = check multi/single line controls
10564 - name: layout.spellcheckDefault
10565 type: int32_t
10566 value: 1
10567 mirror: always
10568
10569 # Treat top level pages as always-active for the purpose of refresh driver
10570 # throttling and such.
10571 #
10572 # Intended for testing automation and so forth.
10573 - name: layout.testing.top-level-always-active
10574 type: bool
10575 value: false
10576 mirror: always
10577
10578 # Pref to stop overlay scrollbars from fading out, for testing purposes.
10579 - name: layout.testing.overlay-scrollbars.always-visible
10580 type: bool
10581 value: false
10582 mirror: always
10583
10584 # Throttled frame rate, in frames per second.
10585 - name: layout.throttled_frame_rate
10586 type: uint32_t
10587 value: 1
10588 mirror: always
10589
10590 # Whether we should throttle in-process iframes in the active tab.
10591 - name: layout.throttle_in_process_iframes
10592 type: bool
10593 value: true
10594 mirror: always
10595
10596 - name: layout.lower_priority_refresh_driver_during_load
10597 type: bool
10598 value: true
10599 mirror: always
10600
10601 # If > 0, nsRefreshDriver will keep ticking this amount of milliseconds after
10602 # top level page load.
10603 - name: layout.keep_ticking_after_load_ms
10604 type: uint32_t
10605 value: 1000
10606 mirror: always
10607
10608 # Pref to control enabling scroll anchoring.
10609 - name: layout.css.scroll-anchoring.enabled
10610 type: bool
10611 value: true
10612 mirror: always
10613
10614 # Pref to control how many consecutive scroll-anchoring adjustments (since the
10615 # most recent user scroll or timeout) we'll average, before we consider whether
10616 # to automatically turn off scroll anchoring. When we hit this threshold, the
10617 # actual decision to disable also depends on the
10618 # min-average-adjustment-threshold pref, see below for more details.
10619 #
10620 # Zero disables the heuristic.
10621 - name: layout.css.scroll-anchoring.max-consecutive-adjustments
10622 type: uint32_t
10623 value: 10
10624 mirror: always
10625
10626 # Whether to reset counting the consecutive scroll-anchoring adjustments during
10627 # running async scrolling by APZ.
10628 - name: layout.css.scroll-anchoring.reset-heuristic-during-animation
10629 type: bool
10630 value: false
10631 mirror: always
10632
10633 # The time after which we reset the max-consecutive-adjustments period, in
10634 # milliseconds.
10635 #
10636 # This prevents sporadic back-and-forth scroll anchoring to trigger the
10637 # max-consecutive-adjustments heuristic.
10638 - name: layout.css.scroll-anchoring.max-consecutive-adjustments-timeout-ms
10639 type: uint32_t
10640 value: 500
10641 mirror: always
10642
10643 # Pref to control whether we should disable scroll anchoring on a scroller
10644 # where at least max-consecutive-adjustments have happened, and which the
10645 # average adjustment ends up being less than this number, in CSS pixels.
10646 #
10647 # So, for example, given max-consecutive-adjustments=10 and
10648 # min-average-adjustment-treshold=3, we'll block scroll anchoring if there have
10649 # been 10 consecutive adjustments without a user scroll or more, and the
10650 # average offset difference between them amount to less than 3 CSS pixels.
10651 - name: layout.css.scroll-anchoring.min-average-adjustment-threshold
10652 type: uint32_t
10653 value: 2
10654 mirror: always
10655
10656 # Pref to control disabling scroll anchoring suppression triggers, see
10657 #
10658 # https://drafts.csswg.org/css-scroll-anchoring/#suppression-triggers
10659 #
10660 # Those triggers should be unnecessary after bug 1561450.
10661 - name: layout.css.scroll-anchoring.suppressions.enabled
10662 type: bool
10663 value: true
10664 mirror: always
10665
10666 - name: layout.css.scroll-anchoring.highlight
10667 type: bool
10668 value: false
10669 mirror: always
10670
10671 # Pref to control whether we reselect scroll anchors if sub-optimal
10672 #
10673 # See https://github.com/w3c/csswg-drafts/issues/6787
10674 - name: layout.css.scroll-anchoring.reselect-if-suboptimal
10675 type: bool
10676 value: true
10677 mirror: always
10678
10679 # Are shared memory User Agent style sheets enabled?
10680 - name: layout.css.shared-memory-ua-sheets.enabled
10681 type: bool
10682 value: true
10683 mirror: always
10684
10685 # Is the CSS 'stretch' keyword enabled, for size-valued properties like 'width'
10686 # and 'height'? (Note: this is unrelated to the 'stretch' value for the
10687 # various alignment properties like 'align-self'; this pref has has
10688 # no influence on the 'stretch' keyword for those alignment properties.)
10689 - name: layout.css.stretch-size-keyword.enabled
10690 type: RelaxedAtomicBool
10691 value: false
10692 mirror: always
10693 rust: true
10694
10695 # Is the '-webkit-fill-available' keyword enabled, as an alias for 'stretch'?
10696 - name: layout.css.webkit-fill-available.enabled
10697 type: RelaxedAtomicBool
10698 value: false
10699 mirror: always
10700 rust: true
10701
10702 # Is support for -webkit-line-clamp on regular blocks enabled?
10703 - name: layout.css.webkit-line-clamp.block.enabled
10704 type: bool
10705 value: false
10706 mirror: always
10707
10708 # Does webkit-line-clamp skip painting clamped lines?
10709 # See bug 1934547.
10710 - name: layout.css.webkit-line-clamp.skip-paint
10711 type: bool
10712 value: false
10713 mirror: always
10714
10715 # Is support for the ::details-content pseudo-element enabled?
10716 - name: layout.css.details-content.enabled
10717 type: RelaxedAtomicBool
10718 value: false
10719 mirror: always
10720 rust: true
10721
10722 # Is 'content:none' supported on (non-pseudo) elements?
10723 - name: layout.css.element-content-none.enabled
10724 type: RelaxedAtomicBool
10725 value: false
10726 mirror: always
10727 rust: true
10728
10729 # Whether we want scrollbar-width: thin to behave as scrollbar-width: auto.
10730 - name: layout.css.scrollbar-width-thin.disabled
10731 type: RelaxedAtomicBool
10732 value: false
10733 mirror: always
10734
10735 # field-sizing CSS property
10736 - name: layout.css.field-sizing.enabled
10737 type: RelaxedAtomicBool
10738 value: false
10739 mirror: always
10740
10741 # Whether supports() conditions in @import is enabled
10742 - name: layout.css.import-supports.enabled
10743 type: RelaxedAtomicBool
10744 value: true
10745 mirror: always
10746 rust: true
10747
10748 # Whether :-moz-broken is supported in content.
10749 - name: layout.css.moz-broken.content.enabled
10750 type: RelaxedAtomicBool
10751 value: false
10752 mirror: always
10753 rust: true
10754
10755 # Whether the modern ::slider-* pseudos are enabled.
10756 - name: layout.css.modern-range-pseudos.enabled
10757 type: RelaxedAtomicBool
10758 value: false
10759 mirror: always
10760 rust: true
10761
10762 # Is matching video-dynamic-range: high allowed?
10763 - name: layout.css.video-dynamic-range.allows-high
10764 type: RelaxedAtomicBool
10765 #if defined(XP_MACOSX) || defined(MOZ_WAYLAND)
10766 value: true
10767 #else
10768 value: false
10769 #endif
10770 mirror: always
10771
10772 # Whether frame visibility tracking is enabled globally.
10773 - name: layout.framevisibility.enabled
10774 type: bool
10775 value: true
10776 mirror: always
10777
10778 # The fraction of the scrollport we allow to horizontally scroll by before we
10779 # schedule an update of frame visibility.
10780 - name: layout.framevisibility.amountscrollbeforeupdatehorizontal
10781 type: int32_t
10782 value: 2
10783 mirror: always
10784
10785 # The fraction of the scrollport we allow to vertically scroll by before we
10786 # schedule an update of frame visibility.
10787 - name: layout.framevisibility.amountscrollbeforeupdatevertical
10788 type: int32_t
10789 value: 2
10790 mirror: always
10791
10792 # The number of scrollports wide to expand when tracking frame visibility.
10793 - name: layout.framevisibility.numscrollportwidths
10794 type: uint32_t
10795 #ifdef ANDROID
10796 value: 1
10797 #else
10798 value: 0
10799 #endif
10800 mirror: always
10801
10802 # The number of scrollports high to expand when tracking frame visibility.
10803 - name: layout.framevisibility.numscrollportheights
10804 type: uint32_t
10805 value: 1
10806 mirror: always
10807
10808 # Test only.
10809 - name: layout.dynamic-toolbar-max-height
10810 type: RelaxedAtomicInt32
10811 value: 0
10812 mirror: always
10813
10814 # Whether outlines should include all overflowing descendants, or just the
10815 # border-box of a given element.
10816 #
10817 # Historically we have included descendants but other browsers have not.
10818 - name: layout.outline.include-overflow
10819 type: bool
10820 value: false
10821 mirror: always
10822
10823 - name: layout.visibility.min-recompute-interval-ms
10824 type: uint32_t
10825 value: 1000
10826 mirror: always
10827
10828 # Controls double click and Alt+Arrow word selection behavior.
10829 - name: layout.word_select.eat_space_to_next_word
10830 type: bool
10831 #ifdef XP_WIN
10832 value: true
10833 #else
10834 value: false
10835 #endif
10836 mirror: always
10837
10838 - name: layout.word_select.stop_at_punctuation
10839 type: RelaxedAtomicBool
10840 value: true
10841 mirror: always
10842
10843 # Whether underscore should be treated as a word-breaking character for
10844 # word selection/arrow-key movement purposes.
10845 - name: layout.word_select.stop_at_underscore
10846 type: bool
10847 value: false
10848 mirror: always
10849
10850 # Whether to draw images in CSS backgrounds if we only have a partial frame.
10851 - name: layout.display_partial_background_images
10852 type: bool
10853 value: true
10854 mirror: always
10855
10856 # Controls whether nsRefreshDriver::IsInHighRateMode() may ever return true.
10857 - name: layout.expose_high_rate_mode_from_refreshdriver
10858 type: bool
10859 value: true
10860 mirror: always
10861
10862 # Whether <details> is forced to be a block, see bug 1856374
10863 # The legacy behavior is 'true', i.e. forcing it to be a block.
10864 # The modern behavior is 'false', i.e. not forcing it to be a block.
10865 - name: layout.details.force-block-layout
10866 type: bool
10867 value: @IS_NOT_NIGHTLY_BUILD@
10868 mirror: always
10869
10870 # Whether table cells can generate scroll boxes.
10871 - name: layout.tables.scrollable-cells
10872 type: bool
10873 value: false
10874 mirror: always
10875
10876 # Whether to disable layer pixel alignment in scroll related stuff.
10877 - name: layout.scroll.disable-pixel-alignment
10878 type: RelaxedAtomicBool
10879 value: false
10880 mirror: always
10881
10882 # Whether scrollIntoView scrolls to `position: fixed` frames visually.
10883 - name: layout.scroll_fixed_content_into_view_visually
10884 type: bool
10885 #if defined(ANDROID)
10886 value: true
10887 #else
10888 value: false
10889 #endif
10890 mirror: always
10891
10892 #---------------------------------------------------------------------------
10893 # Prefs starting with "logging."
10894 #---------------------------------------------------------------------------
10895
10896 # If this pref is true, prefs in the logging.config branch will be cleared on
10897 # startup. This prevents unadvertedly creating huge log files that fill the disk
10898 # when forgetting to remove the logging preferences.
10899 - name: logging.config.clear_on_startup
10900 type: bool
10901 value: true
10902 mirror: never
10903
10904 # Allow setting log modules at runtimes easily with a MOZ_LOG string.
10905 # This preference is empty by default but defined, this makes it easy to use
10906 # especially on mobile by searching for it in about:config.
10907 - name: logging.config.modules
10908 type: String
10909 value: ""
10910 mirror: never
10911
10912 #---------------------------------------------------------------------------
10913 # Prefs starting with "mathml."
10914 #---------------------------------------------------------------------------
10915
10916 # Whether to disable legacy names "thickmathspace", "mediummathspace",
10917 # "thickmathspace" etc for length attributes.
10918 - name: mathml.mathspace_names.disabled
10919 type: bool
10920 value: @IS_NIGHTLY_BUILD@
10921 mirror: always
10922
10923 # Whether to disable support for stretching operators with STIXGeneral fonts.
10924 # macos still has the deprecated STIXGeneral font pre-installed.
10925 - name: mathml.stixgeneral_operator_stretching.disabled
10926 type: bool
10927 value: true
10928 mirror: always
10929
10930 # Whether to disable fallback for mathvariant=italic/bold/bold-italic via
10931 # styling when lacking proper fonts for Mathematical Alphanumeric Symbols.
10932 # We expect all OSes to have relevant fonts, except Android, see bug 1789083.
10933 - name: mathml.mathvariant_styling_fallback.disabled
10934 type: bool
10935 #if defined(ANDROID)
10936 value: false
10937 #else
10938 value: true
10939 #endif
10940 mirror: always
10941
10942 # Whether to disable the MathML3 support for the mathvariant attribute. For
10943 # MathML Core, support is restricted to the <mi> element and to value "normal".
10944 # Corresponding automatic italicization on single-char <mi> element is also
10945 # implemented via text-transform: auto when that flag is enabled.
10946 - name: mathml.legacy_mathvariant_attribute.disabled
10947 type: bool
10948 value: @IS_NIGHTLY_BUILD@
10949 mirror: always
10950 rust: true
10951
10952 # Whether to disable forced centering of binary operators (+, =, ...).
10953 - name: mathml.centered_operators.disabled
10954 type: bool
10955 value: true
10956 mirror: always
10957 rust: true
10958
10959 # Whether to disable extra top/bottom spacing for stretchy operators.
10960 - name: mathml.top_bottom_spacing_for_stretchy_operators.disabled
10961 type: bool
10962 value: true
10963 mirror: always
10964 rust: true
10965
10966 #---------------------------------------------------------------------------
10967 # Prefs starting with "media."
10968 #---------------------------------------------------------------------------
10969
10970
10971 # This pref defines what the blocking policy would be used in blocking autoplay.
10972 # 0 : use sticky activation (default)
10973 # https://html.spec.whatwg.org/multipage/interaction.html#sticky-activation
10974 # 1 : use transient activation (the transient activation duration can be
10975 # adjusted by the pref `dom.user_activation.transient.timeout`)
10976 # https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
10977 # 2 : user input depth (allow autoplay when the play is trigged by user input
10978 # which is determined by the user input depth)
10979 - name: media.autoplay.blocking_policy
10980 type: uint32_t
10981 value: 0
10982 mirror: always
10983
10984 # Whether to allow autoplay on extension background pages.
10985 - name: media.autoplay.allow-extension-background-pages
10986 type: bool
10987 value: true
10988 mirror: always
10989
10990 # Block autoplay, asking for permission by default.
10991 # 0=Allowed, 1=Blocked, 5=All Blocked
10992 - name: media.autoplay.default
10993 type: int32_t
10994 value: 1
10995 mirror: always
10996
10997 # File-backed MediaCache size.
10998 - name: media.cache_size
10999 type: RelaxedAtomicUint32
11000 value: 512000 # Measured in KiB
11001 mirror: always
11002
11003 # Size of file backed MediaCache while on a connection which is cellular (3G,
11004 # etc), and thus assumed to be "expensive".
11005 - name: media.cache_size.cellular
11006 type: RelaxedAtomicUint32
11007 value: 32768 # Measured in KiB
11008 mirror: always
11009
11010 # Multiplier to change the sample rate at which input-only streams run, so as
11011 # to similate clock drift.
11012 - name: media.cubeb.input_drift_factor
11013 type: AtomicFloat
11014 mirror: always
11015 value: 1.f
11016
11017 # Multiplier to change the sample rate at which output-only streams run, so as
11018 # to similate clock drift.
11019 - name: media.cubeb.output_drift_factor
11020 type: AtomicFloat
11021 mirror: always
11022 value: 1.f
11023
11024 # Whether cubeb is sandboxed (AudioIPC)
11025 - name: media.cubeb.sandbox
11026 type: bool
11027 mirror: always
11028 #if defined(XP_LINUX) || defined(XP_WIN) || defined(XP_MACOSX)
11029 value: true
11030 #else
11031 value: false
11032 #endif
11033
11034 # Whether or not to pass AUDCLNT_STREAMOPTIONS_RAW when initializing audio
11035 # streams when using WASAPI.
11036 # 0 - don't use RAW streams
11037 # 1 - use RAW streams for input streams only
11038 # 2 - use RAW streams for output streams only
11039 # 3 - use RAW streams for input and output streams
11040 #if defined (XP_WIN)
11041 - name: media.cubeb.wasapi-raw
11042 type: RelaxedAtomicUint32
11043 mirror: always
11044 value: 0
11045 #endif // XP_WIN
11046
11047 # Whether to make the start of cubeb stream slower, and by how many
11048 # milliseconds.
11049 - name: media.cubeb.slow_stream_init_ms
11050 type: RelaxedAtomicUint32
11051 mirror: always
11052 value: 0
11053
11054 # If a resource is known to be smaller than this size (in kilobytes), a
11055 # memory-backed MediaCache may be used; otherwise the (single shared global)
11056 # file-backed MediaCache is used.
11057 - name: media.memory_cache_max_size
11058 type: uint32_t
11059 value: 8192 # Measured in KiB
11060 mirror: always
11061
11062 # Don't create more memory-backed MediaCaches if their combined size would go
11063 # above this absolute size limit.
11064 - name: media.memory_caches_combined_limit_kb
11065 type: uint32_t
11066 value: 524288
11067 mirror: always
11068
11069 # Don't create more memory-backed MediaCaches if their combined size would go
11070 # above this relative size limit (a percentage of physical memory).
11071 - name: media.memory_caches_combined_limit_pc_sysmem
11072 type: uint32_t
11073 value: 5 # A percentage
11074 mirror: always
11075
11076 # When a network connection is suspended, don't resume it until the amount of
11077 # buffered data falls below this threshold (in seconds).
11078 - name: media.cache_resume_threshold
11079 type: RelaxedAtomicUint32
11080 value: 30
11081 mirror: always
11082 - name: media.cache_resume_threshold.cellular
11083 type: RelaxedAtomicUint32
11084 value: 10
11085 mirror: always
11086
11087 # Stop reading ahead when our buffered data is this many seconds ahead of the
11088 # current playback position. This limit can stop us from using arbitrary
11089 # amounts of network bandwidth prefetching huge videos.
11090 - name: media.cache_readahead_limit
11091 type: RelaxedAtomicUint32
11092 value: 60
11093 mirror: always
11094 - name: media.cache_readahead_limit.cellular
11095 type: RelaxedAtomicUint32
11096 value: 30
11097 mirror: always
11098
11099 # MediaCapabilities
11100 - name: media.mediacapabilities.drop-threshold
11101 type: RelaxedAtomicInt32
11102 value: 95
11103 mirror: always
11104
11105 - name: media.mediacapabilities.from-database
11106 type: RelaxedAtomicBool
11107 value: @IS_NIGHTLY_BUILD@
11108 mirror: always
11109
11110 # AudioSink
11111 - name: media.resampling.enabled
11112 type: RelaxedAtomicBool
11113 value: false
11114 mirror: always
11115
11116 # libcubeb backend implements .get_preferred_channel_layout
11117 - name: media.forcestereo.enabled
11118 type: RelaxedAtomicBool
11119 #if defined(XP_WIN) || defined(XP_DARWIN) || defined(MOZ_PULSEAUDIO)
11120 value: false
11121 #else
11122 value: true
11123 #endif
11124 mirror: always
11125
11126 # MediaSource
11127
11128 # Whether to enable MediaSource support.
11129 - name: media.mediasource.enabled
11130 type: RelaxedAtomicBool
11131 value: true
11132 mirror: always
11133
11134 - name: media.mediasource.mp4.enabled
11135 type: RelaxedAtomicBool
11136 value: true
11137 mirror: always
11138
11139 - name: media.mediasource.webm.enabled
11140 type: RelaxedAtomicBool
11141 value: true
11142 mirror: always
11143
11144 # Check if vp9 is enabled by default in mediasource. False on Android.
11145 # If disabled, vp9 will only be enabled under some conditions:
11146 # - h264 HW decoding is not supported
11147 # - mp4 is not enabled
11148 # - Device was deemed fast enough to decode VP9 via the VP9Benchmark utility
11149 # - A VP9 HW decoder is present.
11150 - name: media.mediasource.vp9.enabled
11151 type: RelaxedAtomicBool
11152 value: @IS_NOT_MOBILE@
11153 mirror: always
11154
11155 # Whether to enable MediaSource v2 support.
11156 - name: media.mediasource.experimental.enabled
11157 type: RelaxedAtomicBool
11158 value: false
11159 mirror: always
11160
11161 # Whether to enable experimental requestVideoFrameCallback support
11162 - name: media.rvfc.enabled
11163 type: bool
11164 value: true
11165 mirror: always
11166
11167 # true for talos tests so that VideoSink passes on the most recently decoded
11168 # frame to exercise the compositor even when the frame is out of date because
11169 # the decoder is stressed.
11170 # If this were true for normal playback, then presentation of such late decoded
11171 # video frames would be out of sync with audio, and VideoPlaybackQuality
11172 # metrics would provide no indication of the poor playback. [1]
11173 # For normal playback, this is false, which does not restore A/V sync in this
11174 # situation, but some out-of-date frames are dropped. The dropped frame count
11175 # is reported to content in VideoPlaybackQuality metrics.
11176 # [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1258870#c6
11177 - name: media.ruin-av-sync.enabled
11178 type: RelaxedAtomicBool
11179 value: false
11180 mirror: always
11181
11182 # Encrypted Media Extensions
11183 - name: media.eme.enabled
11184 type: bool
11185 #if defined(XP_LINUX) && !defined(MOZ_WIDGET_ANDROID)
11186 # On Linux EME is visible but disabled by default. This is so that the "Play
11187 # DRM content" checkbox in the Firefox UI is unchecked by default. DRM
11188 # requires downloading and installing proprietary binaries, which users on an
11189 # open source operating systems didn't opt into. The first time a site using
11190 # EME is encountered, the user will be prompted to enable DRM, whereupon the
11191 # EME plugin binaries will be downloaded if permission is granted.
11192 value: false
11193 #else
11194 value: true
11195 #endif
11196 mirror: always
11197
11198 # Whether we expose the functionality proposed in
11199 # https://w3c.github.io/encrypted-media/#ref-for-dom-mediakeysystemmediacapability-encryptionscheme-2
11200 # I.e. if true, apps calling navigator.requestMediaKeySystemAccess() can pass
11201 # an optional encryption scheme as part of MediaKeySystemMediaCapability
11202 # objects. If a scheme is present when we check for support, we must ensure we
11203 # support that scheme in order to provide key system access.
11204 - name: media.eme.encrypted-media-encryption-scheme.enabled
11205 type: bool
11206 value: true
11207 mirror: always
11208
11209 # Do we need explicit approval from the application to allow access to EME?
11210 # If true, Gecko will ask for permission before allowing MediaKeySystemAccess.
11211 # At time of writing this is aimed at GeckoView, and setting this to true
11212 # outside of GeckoView or test environments will likely break EME.
11213 - name: media.eme.require-app-approval
11214 type: bool
11215 value: false
11216 mirror: always
11217
11218 - name: media.eme.audio.blank
11219 type: RelaxedAtomicBool
11220 value: false
11221 mirror: always
11222
11223 - name: media.eme.video.blank
11224 type: RelaxedAtomicBool
11225 value: false
11226 mirror: always
11227
11228 - name: media.eme.chromium-api.video-shmems
11229 type: RelaxedAtomicUint32
11230 value: 6
11231 mirror: always
11232
11233 # Is support for MediaKeys.getStatusForPolicy enabled?
11234 - name: media.eme.hdcp-policy-check.enabled
11235 type: bool
11236 value: true
11237 mirror: always
11238
11239 - name: media.eme.max-throughput-ms
11240 type: RelaxedAtomicUint32
11241 value: 500
11242 mirror: always
11243
11244 - name: media.clearkey.persistent-license.enabled
11245 type: bool
11246 value: false
11247 mirror: always
11248
11249 # Are test specific clearkey key systems enabled and exposed?
11250 - name: media.clearkey.test-key-systems.enabled
11251 type: RelaxedAtomicBool
11252 value: false
11253 mirror: always
11254
11255 - name: media.cloneElementVisually.testing
11256 type: bool
11257 value: false
11258 mirror: always
11259
11260 # Does the GMPlugin process initialize minimal XPCOM
11261 - name: media.gmp.use-minimal-xpcom
11262 type: RelaxedAtomicBool
11263 value: true
11264 mirror: always
11265
11266 # Does the GMPlugin process use native event processing
11267 - name: media.gmp.use-native-event-processing
11268 type: RelaxedAtomicBool
11269 value: @IS_NOT_XP_MACOSX@
11270 mirror: always
11271
11272 #if defined(XP_LINUX) && defined(MOZ_SANDBOX)
11273 # Whether to allow, on a Linux system that doesn't support the necessary
11274 # sandboxing features, loading Gecko Media Plugins unsandboxed. However, EME
11275 # CDMs will not be loaded without sandboxing even if this pref is changed.
11276 - name: media.gmp.insecure.allow
11277 type: RelaxedAtomicBool
11278 value: false
11279 mirror: always
11280 #endif
11281
11282 # (When reading the next line, know that preprocessor.py doesn't
11283 # understand parentheses, but && is higher precedence than ||.)
11284 #if defined(XP_WIN) && defined(_ARM64_) || defined(XP_MACOSX)
11285 # These prefs control whether or not we will allow x86/x64 plugins
11286 # to run on Windows ARM or Apple Silicon machines. This requires
11287 # launching the GMP child process executable in x86/x64 mode. We
11288 # expect to allow this for Widevine until an arm64 version of
11289 # Widevine and Clearkey is made available. We don't expect to need
11290 # to allow this for OpenH264.
11291 #
11292 # For Apple Silicon and OSX, it will be for universal builds and
11293 # whether or not it can use the x64 Widevine plugin.
11294 #
11295 # For Windows ARM, it will be for ARM builds and whether or not it
11296 # can use x86 Widevine or Clearkey plugins.
11297
11298 # May a Widevine GMP x64 process be executed on ARM builds.
11299 - name: media.gmp-widevinecdm.allow-x64-plugin-on-arm64
11300 type: RelaxedAtomicBool
11301 value: true
11302 mirror: always
11303
11304 # May an OpenH264 GMP x64 process be executed on ARM builds.
11305 - name: media.gmp-gmpopenh264.allow-x64-plugin-on-arm64
11306 type: RelaxedAtomicBool
11307 value: false
11308 mirror: always
11309
11310 # May a Clearkey GMP x64 process be executed on ARM builds.
11311 - name: media.gmp-gmpclearkey.allow-x64-plugin-on-arm64
11312 type: RelaxedAtomicBool
11313 value: false
11314 mirror: always
11315 #endif
11316
11317 # Specifies whether the PDMFactory can create a test decoder that just outputs
11318 # blank frames/audio instead of actually decoding. The blank decoder works on
11319 # all platforms.
11320 - name: media.use-blank-decoder
11321 type: RelaxedAtomicBool
11322 value: false
11323 mirror: always
11324
11325 - name: media.gpu-process-decoder
11326 type: RelaxedAtomicBool
11327 #if defined(XP_WIN)
11328 value: true
11329 #else
11330 value: false
11331 #endif
11332 mirror: always
11333
11334 - name: media.ffvpx-hw.enabled
11335 type: RelaxedAtomicBool
11336 #if defined(MOZ_WIDGET_GTK)
11337 value: true
11338 #elif defined(XP_WIN)
11339 value: @IS_NIGHTLY_BUILD@
11340 #else
11341 value: false
11342 #endif
11343 mirror: always
11344
11345 # The codecs in the vendored ffmpeg copy are usually prefered to the other
11346 # codecs. This allows changing this policy for testing purposes.
11347 - name: media.prefer-non-ffvpx
11348 type: RelaxedAtomicBool
11349 value: false
11350 mirror: always
11351
11352 - name: media.rdd-process.enabled
11353 type: RelaxedAtomicBool
11354 #if defined(XP_WIN)
11355 value: true
11356 #elif defined(XP_MACOSX)
11357 value: true
11358 #elif defined(XP_LINUX) && !defined(ANDROID)
11359 value: true
11360 #elif defined(XP_FREEBSD)
11361 value: true
11362 #elif defined(XP_OPENBSD)
11363 value: true
11364 #elif defined(XP_SOLARIS)
11365 value: true
11366 #else
11367 value: false
11368 #endif
11369 mirror: always
11370
11371 - name: media.rdd-retryonfailure.enabled
11372 type: RelaxedAtomicBool
11373 value: true
11374 mirror: always
11375
11376 - name: media.rdd-process.startup_timeout_ms
11377 type: RelaxedAtomicInt32
11378 value: 5000
11379 mirror: always
11380
11381 # Specifies how many times we restart RDD process after crash till we give up.
11382 # After first RDD restart we disable HW acceleration on Linux.
11383 - name: media.rdd-process.max-crashes
11384 type: RelaxedAtomicInt32
11385 value: 2
11386 mirror: always
11387
11388 #ifdef MOZ_FFMPEG
11389 - name: media.rdd-ffmpeg.enabled
11390 type: RelaxedAtomicBool
11391 value: true
11392 mirror: always
11393 #endif
11394
11395
11396 - name: media.rdd-ffvpx.enabled
11397 type: RelaxedAtomicBool
11398 #if defined(XP_WIN)
11399 value: true
11400 #elif defined(XP_MACOSX)
11401 value: true
11402 #elif defined(XP_LINUX) && !defined(ANDROID)
11403 value: true
11404 #elif defined(XP_FREEBSD)
11405 value: true
11406 #elif defined(XP_OPENBSD)
11407 value: true
11408 #elif defined(XP_SOLARIS)
11409 value: true
11410 #else
11411 value: false
11412 #endif
11413 mirror: always
11414
11415 #ifdef MOZ_WMF
11416 - name: media.rdd-wmf.enabled
11417 type: RelaxedAtomicBool
11418 value: true
11419 mirror: always
11420 #endif
11421
11422 #ifdef MOZ_APPLEMEDIA
11423 - name: media.rdd-applemedia.enabled
11424 type: RelaxedAtomicBool
11425 value: true
11426 mirror: always
11427 #endif
11428
11429 - name: media.rdd-vorbis.enabled
11430 type: RelaxedAtomicBool
11431 #if defined(XP_WIN)
11432 value: true
11433 #elif defined(XP_MACOSX)
11434 value: true
11435 #elif defined(XP_LINUX) && !defined(ANDROID)
11436 value: true
11437 #elif defined(XP_FREEBSD)
11438 value: true
11439 #elif defined(XP_OPENBSD)
11440 value: true
11441 #elif defined(XP_SOLARIS)
11442 value: true
11443 #else
11444 value: false
11445 #endif
11446 mirror: always
11447
11448 - name: media.rdd-vpx.enabled
11449 type: RelaxedAtomicBool
11450 #if defined(XP_WIN)
11451 value: true
11452 #elif defined(XP_MACOSX)
11453 value: true
11454 #elif defined(XP_LINUX) && !defined(ANDROID)
11455 value: true
11456 #elif defined(XP_FREEBSD)
11457 value: true
11458 #elif defined(XP_OPENBSD)
11459 value: true
11460 #elif defined(XP_SOLARIS)
11461 value: true
11462 #else
11463 value: false
11464 #endif
11465 mirror: always
11466
11467 - name: media.rdd-wav.enabled
11468 type: RelaxedAtomicBool
11469 #if defined(XP_WIN)
11470 value: true
11471 #elif defined(XP_MACOSX)
11472 value: true
11473 #elif defined(XP_LINUX) && !defined(ANDROID)
11474 value: true
11475 #elif defined(XP_FREEBSD)
11476 value: true
11477 #elif defined(XP_OPENBSD)
11478 value: true
11479 #elif defined(XP_SOLARIS)
11480 value: true
11481 #else
11482 value: false
11483 #endif
11484 mirror: always
11485
11486 - name: media.rdd-opus.enabled
11487 type: RelaxedAtomicBool
11488 #if defined(XP_WIN)
11489 value: true
11490 #elif defined(XP_MACOSX)
11491 value: true
11492 #elif defined(XP_LINUX) && !defined(ANDROID)
11493 value: true
11494 #elif defined(XP_FREEBSD)
11495 value: true
11496 #elif defined(XP_OPENBSD)
11497 value: true
11498 #elif defined(XP_SOLARIS)
11499 value: true
11500 #else
11501 value: false
11502 #endif
11503 mirror: always
11504
11505 - name: media.rdd-webaudio.batch.size
11506 type: RelaxedAtomicInt32
11507 value: 100
11508 mirror: always
11509
11510 # This pref is here to control whether we want to perform audio decoding by
11511 # using the IPC actor within the Utility process rather than the RDD process.
11512 # When it is set to true, then the utility process will take precedence over RDD
11513 # to perform audio decoding.
11514 - name: media.utility-process.enabled
11515 type: RelaxedAtomicBool
11516 #if defined(XP_WIN)
11517 value: true
11518 #elif defined(XP_MACOSX)
11519 value: true
11520 #elif defined(XP_LINUX) || defined(ANDROID)
11521 value: true
11522 #elif defined(XP_FREEBSD)
11523 value: true
11524 #elif defined(XP_OPENBSD)
11525 value: true
11526 #elif defined(XP_SOLARIS)
11527 value: true
11528 #else
11529 value: false
11530 #endif
11531 mirror: always
11532
11533 # Specifies how many times we restart Utility process after crash till we give
11534 # up.
11535 - name: media.utility-process.max-crashes
11536 type: RelaxedAtomicInt32
11537 value: 2
11538 mirror: always
11539
11540 #ifdef MOZ_FFMPEG
11541 - name: media.utility-ffmpeg.enabled
11542 type: RelaxedAtomicBool
11543 value: true
11544 mirror: always
11545 #endif
11546
11547 - name: media.utility-ffvpx.enabled
11548 type: RelaxedAtomicBool
11549 value: true
11550 mirror: always
11551
11552 #ifdef MOZ_WMF
11553 - name: media.utility-wmf.enabled
11554 type: RelaxedAtomicBool
11555 value: true
11556 mirror: always
11557 #endif
11558
11559 #ifdef MOZ_APPLEMEDIA
11560 - name: media.utility-applemedia.enabled
11561 type: RelaxedAtomicBool
11562 value: true
11563 mirror: always
11564 #endif
11565
11566 - name: media.utility-vorbis.enabled
11567 type: RelaxedAtomicBool
11568 value: true
11569 mirror: always
11570
11571 - name: media.utility-wav.enabled
11572 type: RelaxedAtomicBool
11573 value: true
11574 mirror: always
11575
11576 - name: media.utility-opus.enabled
11577 type: RelaxedAtomicBool
11578 value: true
11579 mirror: always
11580
11581 #ifdef ANDROID
11582 # Enable the MediaCodec PlatformDecoderModule by default.
11583 - name: media.android-media-codec.enabled
11584 type: RelaxedAtomicBool
11585 value: true
11586 mirror: always
11587
11588 # Bug 1771196
11589 # Dont yet enable AndroidDecoderModule on Utility
11590 - name: media.utility-android-media-codec.enabled
11591 type: RelaxedAtomicBool
11592 value: false
11593 mirror: always
11594
11595 - name: media.android-media-codec.preferred
11596 type: RelaxedAtomicBool
11597 value: true
11598 mirror: always
11599 #endif # ANDROID
11600
11601 # Now we will completely disable the ability to perform audio decoding outside
11602 # of Utility.
11603 - name: media.allow-audio-non-utility
11604 type: RelaxedAtomicBool
11605 value: @IS_IOS@
11606 mirror: always
11607
11608 #ifdef MOZ_OMX
11609 - name: media.omx.enabled
11610 type: bool
11611 value: false
11612 mirror: always
11613 #endif
11614
11615 # Allow ffmpeg decoder to decode directly onto shmem buffer
11616 - name: media.ffmpeg.customized-buffer-allocation
11617 type: RelaxedAtomicBool
11618 value: true
11619 mirror: always
11620
11621 # Disable falling back to software decoders in case of frame drop
11622 - name: media.ffmpeg.disable-software-fallback
11623 type: RelaxedAtomicBool
11624 value: false
11625 mirror: always
11626
11627 #ifdef MOZ_FFMPEG
11628 - name: media.ffmpeg.enabled
11629 type: RelaxedAtomicBool
11630 #if defined(XP_MACOSX)
11631 value: false
11632 #else
11633 value: true
11634 #endif
11635 mirror: always
11636
11637 - name: media.libavcodec.allow-obsolete
11638 type: bool
11639 value: false
11640 mirror: always
11641 #endif # MOZ_FFMPEG
11642
11643 # Allow using ffmpeg encoder
11644 - name: media.ffmpeg.encoder.enabled
11645 type: RelaxedAtomicBool
11646 #if !defined(MOZ_WIDGET_ANDROID)
11647 value: true
11648 #else
11649 value: false
11650 #endif
11651 mirror: always
11652
11653 # A high quantizer value allows the encoder to use higher compression, but
11654 # resulting in lower quality for parts of the video. Using a lower value
11655 # restricts excessive compression, improving video quality but potentially
11656 # increasing file size. The quantizer's value range is controlled by the min
11657 # and max values below. The lower the value is, the finer the quantizer will be
11658 # Set AVCodecContext's qmin value to ffmpeg encoder
11659 - name: media.ffmpeg.encoder.quantizer-min
11660 type: RelaxedAtomicInt32
11661 value: 10 # An empirical value for better performance
11662 mirror: always
11663
11664 # Set AVCodecContext's qmax value to ffmpeg encoder
11665 - name: media.ffmpeg.encoder.quantizer-max
11666 type: RelaxedAtomicInt32
11667 value: 35 # An empirical value for better quality of the video output
11668 mirror: always
11669
11670 # Set the FFmpeg encoder's cpu-used option, only for the AV1 encoder in quality
11671 # mode currently. While values from 6 to 9 are generally used for real-time
11672 # encoding in libaom, we opt to prioritize speed over quality in this case.
11673 - name: media.ffmpeg.encoder.cpu-used
11674 type: RelaxedAtomicInt32
11675 value: 7
11676 mirror: always
11677
11678 # Allow using openh264 decoding with ffmpeg
11679 - name: media.ffmpeg.allow-openh264
11680 type: RelaxedAtomicBool
11681 value: @IS_NOT_NIGHTLY_BUILD@
11682 mirror: always
11683
11684 #ifdef MOZ_WIDGET_GTK
11685 # Force to copy dmabuf video frames
11686 # Used for debugging/troubleshooting only
11687 # 0 - force disable
11688 # 1 - force enable
11689 # 2 - default
11690 - name: media.ffmpeg.vaapi.force-surface-zero-copy
11691 type: uint32_t
11692 value: 2
11693 mirror: once
11694 #endif # MOZ_WIDGET_GTK
11695
11696 # Set to true in marionette tests to disable the sanity test
11697 # which would lead to unnecessary start of the RDD process.
11698 - name: media.sanity-test.disabled
11699 type: RelaxedAtomicBool
11700 value: false
11701 mirror: always
11702
11703 #ifdef MOZ_WMF
11704
11705 - name: media.wmf.enabled
11706 type: RelaxedAtomicBool
11707 value: true
11708 mirror: always
11709
11710 # Whether DD should consider WMF-disabled a WMF failure, useful for testing.
11711 - name: media.decoder-doctor.wmf-disabled-is-failure
11712 type: RelaxedAtomicBool
11713 value: false
11714 mirror: always
11715
11716 - name: media.wmf.dxva.d3d11.enabled
11717 type: RelaxedAtomicBool
11718 value: true
11719 mirror: always
11720
11721 - name: media.wmf.dxva.max-videos
11722 type: RelaxedAtomicUint32
11723 value: 8
11724 mirror: always
11725
11726 - name: media.wmf.use-nv12-format
11727 type: RelaxedAtomicBool
11728 value: true
11729 mirror: always
11730
11731 - name: media.wmf.zero-copy-nv12-textures
11732 type: bool
11733 value: true
11734 mirror: once
11735 # Enable hardware decoded video no copy even when it is blocked.
11736 - name: media.wmf.zero-copy-nv12-textures-force-enabled
11737 type: bool
11738 value: false
11739 mirror: once
11740
11741 - name: media.wmf.force.allow-p010-format
11742 type: RelaxedAtomicBool
11743 value: false
11744 mirror: always
11745
11746 - name: media.wmf.use-sync-texture
11747 type: bool
11748 value: true
11749 mirror: once
11750
11751 - name: media.wmf.low-latency.enabled
11752 type: RelaxedAtomicBool
11753 value: true
11754 mirror: always
11755
11756 - name: media.wmf.skip-blacklist
11757 type: RelaxedAtomicBool
11758 value: false
11759 mirror: always
11760
11761 - name: media.wmf.amd.highres.enabled
11762 type: RelaxedAtomicBool
11763 value: true
11764 mirror: always
11765
11766 - name: media.wmf.allow-unsupported-resolutions
11767 type: RelaxedAtomicBool
11768 value: true
11769 mirror: always
11770
11771 - name: media.wmf.vp9.enabled
11772 type: RelaxedAtomicBool
11773 value: true
11774 mirror: always
11775
11776 - name: media.wmf.av1.enabled
11777 type: RelaxedAtomicBool
11778 value: true
11779 mirror: always
11780
11781 # Using Windows Media Foundation Media Engine for encrypted playback
11782 # 0 : disable, 1 : enable for encrypted and clear,
11783 # 2 : enable for encrypted only, 3 : enable for clear only
11784 - name: media.wmf.media-engine.enabled
11785 type: RelaxedAtomicUint32
11786 value: 2
11787 mirror: always
11788
11789 # Testing purpose, enable media engine on channel decoder as well.
11790 - name: media.wmf.media-engine.channel-decoder.enabled
11791 type: RelaxedAtomicBool
11792 value: false
11793 mirror: always
11794
11795 # The amount of video raw data the engine stream will queue
11796 - name: media.wmf.media-engine.raw-data-threshold.video
11797 type: RelaxedAtomicInt32
11798 value: 500000
11799 mirror: always
11800
11801 # The amount of audio raw data the engine stream will queue
11802 - name: media.wmf.media-engine.raw-data-threshold.audio
11803 type: RelaxedAtomicInt32
11804 value: 2000000
11805 mirror: always
11806
11807 # Specifies how many times we restart MFCDM process after crash till we give up.
11808 - name: media.wmf.media-engine.max-crashes
11809 type: RelaxedAtomicInt32
11810 value: 2
11811 mirror: always
11812
11813 # Bypass the gfx block list check for the media engine playback.
11814 - name: media.wmf.media-engine.bypass-gfx-blocklist
11815 type: RelaxedAtomicBool
11816 value: false
11817 mirror: always
11818
11819 # [TEST-ONLY] Use Media Foundation Clearkey CDM for EME related testing.
11820 - name: media.eme.wmf.clearkey.enabled
11821 type: RelaxedAtomicBool
11822 value: false
11823 mirror: always
11824
11825 # [TEST-ONLY] use Media Foundation clearkey CDM dll to mock as an external CDM,
11826 # external CDM like Widevine and PlayReady so that we won't be interfered by
11827 # unexpected behaviors caused by the external library.
11828 - name: media.eme.wmf.use-mock-cdm-for-external-cdms
11829 type: RelaxedAtomicBool
11830 value: false
11831 mirror: always
11832
11833 # Enable PlayReady DRM for EME
11834 - name: media.eme.playready.enabled
11835 type: RelaxedAtomicBool
11836 value: true
11837 mirror: always
11838
11839 # Use IsTypeSupportedEx for PlayReady
11840 - name: media.eme.playready.istypesupportedex
11841 type: RelaxedAtomicBool
11842 value: true
11843 mirror: always
11844
11845 # Enable Widevine experiment DRM for EME
11846 - name: media.eme.widevine.experiment.enabled
11847 type: RelaxedAtomicBool
11848 value: false
11849 mirror: always
11850
11851 # Enable origin filter for MFCDM support
11852 # 0 : disabled, 1 : enabled allowed list, 2 : enabled blocked list,
11853 # 3 : enabled allowed by default via Remote Settings
11854 # 4 : enabled blocked by default via Remote Settings
11855 - name: media.eme.mfcdm.origin-filter.enabled
11856 type: RelaxedAtomicUint32
11857 #ifdef NIGHTLY_BUILD
11858 value: 3
11859 #else
11860 value: 4
11861 #endif
11862 mirror: always
11863
11864 #endif # MOZ_WMF
11865
11866 - name: media.hevc.enabled
11867 type: RelaxedAtomicBool
11868 value: true
11869 mirror: always
11870
11871 - name: media.decoder-doctor.testing
11872 type: bool
11873 value: false
11874 mirror: always
11875
11876 - name: media.hardware-video-decoding.enabled
11877 type: bool
11878 value: true
11879 mirror: once
11880
11881 - name: media.hardware-video-decoding.force-enabled
11882 type: bool
11883 value: false
11884 mirror: once
11885
11886 # Whether to check the decoder supports recycling.
11887 - name: media.decoder.recycle.enabled
11888 type: RelaxedAtomicBool
11889 value: @IS_ANDROID@
11890 mirror: always
11891
11892 # Should MFR try to skip to the next key frame?
11893 - name: media.decoder.skip-to-next-key-frame.enabled
11894 type: RelaxedAtomicBool
11895 value: true
11896 mirror: always
11897
11898 # The delay time (ms) before releasing an audio wakelock.
11899 - name: media.wakelock.audio.delay-releasing.ms
11900 type: RelaxedAtomicUint32
11901 value: 10000
11902 mirror: always
11903
11904 # When video continues later than the current media time for this period of
11905 # time, then it will trigger skip-to-next-keyframe mechanism. As this aims to
11906 # solve the drop frames issue where video decoding too slow for high
11907 # resolution videos. eg. 4k+. Therefore, the value is is determined by the
11908 # telemetry probe `video_inter_keyframe_max_ms` in the key of `AV,h>2160` which
11909 # shows that 95% video's key frame interval are less than ~5000. We use its
11910 # half value as a threashold to decide whether we should keep decoding in the
11911 # current video position or jump to the next keyframe in order to decode future
11912 # frames in advance.
11913 - name: media.decoder.skip_when_video_too_slow_ms
11914 type: RelaxedAtomicInt32
11915 value: 2500
11916 mirror: always
11917
11918 # True if we want to decode in batches.
11919 - name: media.gmp.decoder.decode_batch
11920 type: RelaxedAtomicBool
11921 value: false
11922 mirror: always
11923
11924 # True if we allow use of any decoders found in GMP plugins.
11925 - name: media.gmp.decoder.enabled
11926 type: RelaxedAtomicBool
11927 value: true
11928 mirror: always
11929
11930 # True if we want to request the multithreaded GMP decoder.
11931 - name: media.gmp.decoder.multithreaded
11932 type: RelaxedAtomicBool
11933 value: false
11934 mirror: always
11935
11936 # True if we want to try using the GMP plugin decoders first.
11937 - name: media.gmp.decoder.preferred
11938 type: RelaxedAtomicBool
11939 value: false
11940 mirror: always
11941
11942 # True if we want to reorder frames from the decoder based on the timestamp.
11943 - name: media.gmp.decoder.reorder_frames
11944 type: RelaxedAtomicBool
11945 value: true
11946 mirror: always
11947
11948 # True if we allow use of any encoders found in GMP plugins.
11949 - name: media.gmp.encoder.enabled
11950 type: RelaxedAtomicBool
11951 value: false
11952 mirror: always
11953
11954 # True if we want to request the multithreaded GMP encoder.
11955 - name: media.gmp.encoder.multithreaded
11956 type: RelaxedAtomicBool
11957 value: false
11958 mirror: always
11959
11960 # True if we want to try using the GMP plugin encoders first.
11961 - name: media.gmp.encoder.preferred
11962 type: RelaxedAtomicBool
11963 value: false
11964 mirror: always
11965
11966 # Whether to suspend decoding of videos in background tabs.
11967 - name: media.suspend-background-video.enabled
11968 type: RelaxedAtomicBool
11969 value: true
11970 mirror: always
11971
11972 # Delay, in ms, from time window goes to background to suspending
11973 # video decoders. Defaults to 10 seconds.
11974 - name: media.suspend-background-video.delay-ms
11975 type: RelaxedAtomicUint32
11976 value: 10000
11977 mirror: always
11978
11979 - name: media.dormant-on-pause-timeout-ms
11980 type: RelaxedAtomicInt32
11981 value: 5000
11982 mirror: always
11983
11984 # AudioTrack and VideoTrack support
11985 - name: media.track.enabled
11986 type: bool
11987 value: false
11988 mirror: always
11989
11990
11991 # This pref disables the reception of RTCP. It is used for testing.
11992 - name: media.webrtc.net.force_disable_rtcp_reception
11993 type: ReleaseAcquireAtomicBool
11994 value: false
11995 mirror: always
11996
11997 # This pref disables using PQ crypto for WebRTC DTLS code.
11998 - name: media.webrtc.enable_pq_dtls
11999 type: RelaxedAtomicBool
12000 value: @IS_EARLY_BETA_OR_EARLIER@
12001 mirror: always
12002
12003 # This pref controls whether dispatch testing-only events.
12004 - name: media.webvtt.testing.events
12005 type: bool
12006 value: false
12007 mirror: always
12008
12009 - name: media.webspeech.synth.force_global_queue
12010 type: bool
12011 value: false
12012 mirror: always
12013
12014 - name: media.webspeech.test.enable
12015 type: bool
12016 value: false
12017 mirror: always
12018
12019 - name: media.webspeech.test.fake_fsm_events
12020 type: bool
12021 value: false
12022 mirror: always
12023
12024 - name: media.webspeech.test.fake_recognition_service
12025 type: bool
12026 value: false
12027 mirror: always
12028
12029 #ifdef MOZ_WEBSPEECH
12030 - name: media.webspeech.recognition.enable
12031 type: bool
12032 value: false
12033 mirror: always
12034 #endif
12035
12036 - name: media.webspeech.recognition.force_enable
12037 type: bool
12038 value: false
12039 mirror: always
12040
12041 #ifdef MOZ_WEBSPEECH
12042 - name: media.webspeech.synth.enabled
12043 type: bool
12044 value: true
12045 mirror: always
12046 #endif # MOZ_WEBSPEECH
12047
12048 - name: media.encoder.webm.enabled
12049 type: RelaxedAtomicBool
12050 value: true
12051 mirror: always
12052
12053 - name: media.audio-max-decode-error
12054 type: uint32_t
12055 #if defined(RELEASE_OR_BETA)
12056 value: 3
12057 #else
12058 # Zero tolerance in pre-release builds to detect any decoder regression.
12059 value: 0
12060 #endif
12061 mirror: always
12062
12063 - name: media.video-max-decode-error
12064 type: uint32_t
12065 #if defined(RELEASE_OR_BETA)
12066 value: 2
12067 #else
12068 # Zero tolerance in pre-release builds to detect any decoder regression.
12069 value: 0
12070 #endif
12071 mirror: always
12072
12073 # Are video stats enabled? (Disabling can help prevent fingerprinting.)
12074 - name: media.video_stats.enabled
12075 type: bool
12076 value: true
12077 mirror: always
12078
12079 # forces the number of dropped frames to 0
12080 - name: media.video.dropped_frame_stats.enabled
12081 type: bool
12082 value: true
12083 mirror: always
12084
12085 # Opus
12086 - name: media.opus.enabled
12087 type: RelaxedAtomicBool
12088 value: true
12089 mirror: always
12090
12091 # Wave
12092 - name: media.wave.enabled
12093 type: RelaxedAtomicBool
12094 value: true
12095 mirror: always
12096
12097 # Ogg
12098 - name: media.ogg.enabled
12099 type: RelaxedAtomicBool
12100 value: true
12101 mirror: always
12102
12103 # WebM
12104 - name: media.webm.enabled
12105 type: RelaxedAtomicBool
12106 value: true
12107 mirror: always
12108
12109 # AV1
12110 - name: media.av1.enabled
12111 type: RelaxedAtomicBool
12112 value: true
12113 mirror: always
12114
12115 - name: media.av1.use-dav1d
12116 type: RelaxedAtomicBool
12117 value: true
12118 mirror: always
12119
12120 - name: media.av1.new-thread-count-strategy
12121 type: RelaxedAtomicBool
12122 value: false
12123 mirror: always
12124
12125 - name: media.av1.force-thread-count
12126 type: RelaxedAtomicInt32
12127 value: 0
12128 mirror: always
12129
12130 - name: media.flac.enabled
12131 type: RelaxedAtomicBool
12132 value: true
12133 mirror: always
12134
12135 # Hls
12136 - name: media.hls.enabled
12137 type: RelaxedAtomicBool
12138 #if defined(ANDROID)
12139 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
12140 #else
12141 value: false
12142 #endif
12143 mirror: always
12144
12145 # Max number of HLS players that can be created concurrently. Used only on
12146 # Android and when "media.hls.enabled" is true.
12147 #ifdef ANDROID
12148 - name: media.hls.max-allocations
12149 type: uint32_t
12150 value: 20
12151 mirror: always
12152 #endif
12153
12154 - name: media.mp4.enabled
12155 type: RelaxedAtomicBool
12156 value: true
12157 mirror: always
12158
12159 - name: media.mp4.sniff_iso_brand
12160 type: RelaxedAtomicBool
12161 value: true
12162 mirror: always
12163
12164 # Error/warning handling, Decoder Doctor.
12165 #
12166 # Set to true to force demux/decode warnings to be treated as errors.
12167 - name: media.playback.warnings-as-errors
12168 type: RelaxedAtomicBool
12169 value: false
12170 mirror: always
12171
12172 # Resume video decoding when the cursor is hovering on a background tab to
12173 # reduce the resume latency and improve the user experience.
12174 - name: media.resume-background-video-on-tabhover
12175 type: bool
12176 value: true
12177 mirror: always
12178
12179 # Media Seamless Looping
12180 - name: media.seamless-looping
12181 type: RelaxedAtomicBool
12182 value: true
12183 mirror: always
12184
12185 - name: media.seamless-looping-video
12186 type: RelaxedAtomicBool
12187 value: true
12188 mirror: always
12189
12190 - name: media.autoplay.block-event.enabled
12191 type: bool
12192 value: false
12193 mirror: always
12194
12195 - name: media.media-capabilities.screen.enabled
12196 type: RelaxedAtomicBool
12197 value: false
12198 mirror: always
12199
12200 - name: media.benchmark.vp9.fps
12201 type: RelaxedAtomicUint32
12202 value: 0
12203 mirror: always
12204
12205 - name: media.benchmark.vp9.threshold
12206 type: RelaxedAtomicUint32
12207 value: 150
12208 mirror: always
12209
12210 - name: media.benchmark.vp9.versioncheck
12211 type: RelaxedAtomicUint32
12212 value: 0
12213 mirror: always
12214
12215 - name: media.benchmark.frames
12216 type: RelaxedAtomicUint32
12217 value: 300
12218 mirror: always
12219
12220 - name: media.benchmark.timeout
12221 type: RelaxedAtomicUint32
12222 value: 1000
12223 mirror: always
12224
12225 - name: media.test.video-suspend
12226 type: RelaxedAtomicBool
12227 value: false
12228 mirror: always
12229
12230 - name: media.test.null.decoder.creation-failure
12231 type: RelaxedAtomicBool
12232 value: false
12233 mirror: always
12234
12235 # MediaCapture prefs follow
12236
12237 # Enables navigator.mediaDevices and getUserMedia() support. See also
12238 # media.peerconnection.enabled
12239 - name: media.navigator.enabled
12240 type: bool
12241 value: true
12242 mirror: always
12243
12244 # Expose the deprecated method navigator.mozGetUserMedia().
12245 - name: media.navigator.mozgetusermedia.enabled
12246 type: bool
12247 value: true
12248 mirror: always
12249
12250 # This pref turns off window-focus checks on the navigator.mediaDevices methods,
12251 # for partner testing frameworks.
12252 # Prefer "focusmanager.testmode", which is already set by default for
12253 # web-platform tests.
12254 - name: media.devices.unfocused.enabled
12255 type: bool
12256 value: false
12257 mirror: always
12258
12259 # This pref turns off [SecureContext] on the navigator.mediaDevices object, for
12260 # more compatible legacy behavior.
12261 - name: media.devices.insecure.enabled
12262 type: bool
12263 value: false
12264 mirror: always
12265
12266 # If the above pref is also enabled, this pref enabled getUserMedia() support
12267 # in http, bypassing the instant NotAllowedError you get otherwise.
12268 - name: media.getusermedia.insecure.enabled
12269 type: bool
12270 value: false
12271 mirror: always
12272
12273 # Enable tab sharing
12274 - name: media.getusermedia.browser.enabled
12275 type: RelaxedAtomicBool
12276 value: false
12277 mirror: always
12278
12279 # The getDisplayMedia method is always SecureContext regardless of the above two
12280 # prefs. But it is not implemented on android, and can be turned off elsewhere.
12281 - name: media.getdisplaymedia.enabled
12282 type: bool
12283 value: @IS_NOT_MOBILE@
12284 mirror: always
12285
12286 # The getDisplayMedia prompt uses getDisplayMedia under the hood to show previews.
12287 # This can be turned off if, e.g. on systems with known issues like X11, or if
12288 # previews are not desired.
12289 - name: media.getdisplaymedia.previews.enabled
12290 type: bool
12291 value: @IS_NOT_ANDROID@
12292 mirror: always
12293
12294 #if defined(MOZ_WEBRTC) && defined(XP_MACOSX)
12295 # Use the libwebrtc ScreenCaptureKit desktop capture backend on Mac by default.
12296 # When disabled, or on a host where not supported (< macOS 14), the older
12297 # CoreGraphics backend is used instead.
12298 - name: media.getdisplaymedia.screencapturekit.enabled
12299 type: bool
12300 value: true
12301 mirror: once
12302
12303 # Use SCContentSharingPicker for source picking when the libwebrtc
12304 # ScreenCaptureKit desktop capture backend is used. When this is true and the
12305 # backend supports SCContentSharingPicker, this takes precendence over the
12306 # enumeration pref below.
12307 - name: media.getdisplaymedia.screencapturekit.picker.enabled
12308 type: bool
12309 value: true
12310 mirror: once
12311
12312 # Use the libwebrtc ScreenCaptureKit desktop capture backend on Mac for screen
12313 # enumeration when enabled.
12314 # When this is false and the backend is used (see above), the older CoreGraphics
12315 # backend is used to enumerate CGDirectDisplayIDs, which the ScreenCaptureKit
12316 # backend understand as well.
12317 - name: media.getdisplaymedia.screencapturekit.enumeration.enabled
12318 type: bool
12319 value: false
12320 mirror: once
12321 #endif
12322
12323 # Turn off any cameras (but not mics) while in the background. This is desirable
12324 # on mobile.
12325 - name: media.getusermedia.camera.background.mute.enabled
12326 type: bool
12327 value: @IS_ANDROID@
12328 mirror: always
12329
12330 # Use the libwebrtc AVFoundation camera backend on Mac by default. When
12331 # disabled, an older forked capture module is used.
12332 - name: media.getusermedia.camera.macavf.enabled
12333 type: bool
12334 value: true
12335 mirror: once
12336
12337 # Tell the audio backend to prefer a stream adapted for voice when processing is
12338 # enabled through constraints (possibly defaults). Whether it has any effect
12339 # depends on the backend.
12340 - name: media.getusermedia.microphone.prefer_voice_stream_with_processing.enabled
12341 type: RelaxedAtomicBool
12342 value: true
12343 mirror: always
12344
12345 # Tell the audio backend to create a voice stream for later re-use before asking
12346 # the user for microphone permissions, if approving those permissions would
12347 # result in a voice stream when created later on.
12348 - name: media.getusermedia.microphone.voice_stream_priming.enabled
12349 type: RelaxedAtomicBool
12350 value: @IS_XP_MACOSX@
12351 mirror: always
12352
12353 # This pref turns on legacy (non-spec) exposure of camera and microphone
12354 # information from enumerateDevices and devicechange ahead of successful
12355 # getUserMedia calls. Should only be turned on to resolve web compat issues,
12356 # since doing so reveals more user fingerprinting information to trackers.
12357 #
12358 # In this mode, camera and microphone device labels are exposed if the site has a
12359 # persisted permission to either kind, as well as while actively capturing either
12360 # kind (temporary and tab-specific grace-period permissions do not count).
12361 - name: media.devices.enumerate.legacy.enabled
12362 type: bool
12363 value: false
12364 mirror: always
12365
12366 # Turns on legacy (non-spec) exposure of camera and microphone information
12367 # from enumerateDevices and devicechange ahead of successful getUserMedia
12368 # calls only for certain domains (ignored if above pref is true).
12369 - name: media.devices.enumerate.legacy.allowlist
12370 type: String
12371 value: "slack.com,*.slack.com"
12372 mirror: never
12373
12374 # WebRTC prefs follow
12375
12376 # Enables auto refresh of peerconnection stats by default
12377 - name: media.aboutwebrtc.auto_refresh.peerconnection_section
12378 type: bool
12379 value: @IS_NOT_NIGHTLY_BUILD@
12380 mirror: always
12381
12382 # Enables auto refresh of the transport connection log by default
12383 - name: media.aboutwebrtc.auto_refresh.connection_log_section
12384 type: bool
12385 value: false
12386 mirror: always
12387
12388 # Enables auto refresh of user config by default
12389 - name: media.aboutwebrtc.auto_refresh.user_modified_config_section
12390 type: bool
12391 value: true
12392 mirror: always
12393
12394 # Enables auto refresh of media context by default
12395 - name: media.aboutwebrtc.auto_refresh.media_ctx_section
12396 type: bool
12397 value: false
12398 mirror: always
12399
12400 # Enables RTCPeerConnection support. Note that, when true, this pref enables
12401 # navigator.mediaDevices and getUserMedia() support as well.
12402 # See also media.navigator.enabled
12403 - name: media.peerconnection.enabled
12404 type: RelaxedAtomicBool
12405 value: true
12406 mirror: always
12407
12408 - name: media.peerconnection.scripttransform.enabled
12409 type: RelaxedAtomicBool
12410 value: true
12411 mirror: always
12412
12413 #ifdef MOZ_WEBRTC
12414 # Use MediaDataDecoder API for VP8/VP9 in WebRTC. This includes hardware
12415 # acceleration for decoding.
12416 - name: media.navigator.mediadatadecoder_vpx_enabled
12417 type: RelaxedAtomicBool
12418 #if defined(NIGHTLY_BUILD) || defined(MOZ_WIDGET_GTK)
12419 value: true
12420 #else
12421 value: false
12422 #endif
12423 mirror: always
12424
12425 # Use MediaDataDecoder API for H264 in WebRTC. This includes hardware
12426 # acceleration for decoding.
12427 - name: media.navigator.mediadatadecoder_h264_enabled
12428 type: RelaxedAtomicBool
12429 #if defined(_ARM64_) && defined(XP_WIN)
12430 value: false
12431 #else
12432 value: true
12433 #endif
12434 mirror: always
12435
12436 #if defined(MOZ_WIDGET_GTK)
12437 # Use hardware acceleration for VP8 decoding on Linux.
12438 - name: media.navigator.mediadatadecoder_vp8_hardware_enabled
12439 type: RelaxedAtomicBool
12440 value: false
12441 mirror: always
12442 #endif
12443
12444 # Interval in milliseconds at which to gather WebRTC stats for use in about:webrtc.
12445 - name: media.aboutwebrtc.hist.poll_interval_ms
12446 type: RelaxedAtomicUint32
12447 value: 250
12448 mirror: always
12449
12450 # History time depth in seconds to keep for webrtc:stats for use in about:webrtc.
12451 - name: media.aboutwebrtc.hist.storage_window_s
12452 type: RelaxedAtomicUint32
12453 value: 60
12454 mirror: always
12455
12456 # Time in minutes to retain peer connection stats after closing.
12457 - name: media.aboutwebrtc.hist.prune_after_m
12458 type: RelaxedAtomicUint32
12459 value: 60 * 24 * 2
12460 mirror: always
12461
12462 # Max number of closed PC stats histories to retain
12463 - name: media.aboutwebrtc.hist.closed_stats_to_retain
12464 type: RelaxedAtomicUint32
12465 value: 8
12466 mirror: always
12467
12468 # Gather PeerConnection stats history for display in about:webrtc. If
12469 # disabled history will only gather when about:webrtc is open. Additionally,
12470 # if disabled and when about:webrtc is not in the foreground history data
12471 # will become sparse.
12472 - name: media.aboutwebrtc.hist.enabled
12473 type: RelaxedAtomicBool
12474 #if defined(MOZ_WIDGET_ANDROID)
12475 value: false
12476 #else
12477 value: @IS_NIGHTLY_BUILD@
12478 #endif
12479 mirror: always
12480
12481 #endif # MOZ_WEBRTC
12482
12483 # HTMLMediaElement.allowedToPlay should be exposed to web content when
12484 # block autoplay rides the trains to release. Until then, Nightly only.
12485 - name: media.allowed-to-play.enabled
12486 type: bool
12487 value: @IS_NIGHTLY_BUILD@
12488 mirror: always
12489
12490 # Is support for HTMLMediaElement.seekToNextFrame enabled?
12491 - name: media.seekToNextFrame.enabled
12492 type: bool
12493 value: false
12494 mirror: always
12495
12496 # Is the Audio Output Devices API enabled?
12497 - name: media.setsinkid.enabled
12498 type: bool
12499 #if defined(MOZ_WIDGET_ANDROID)
12500 value: false # bug 1473346
12501 #else
12502 value: true
12503 #endif
12504 mirror: always
12505
12506 # Turn on this pref can enable test-only events for media element.
12507 - name: media.testing-only-events
12508 type: bool
12509 value: false
12510 mirror: always
12511
12512 - name: media.useAudioChannelService.testing
12513 type: bool
12514 value: false
12515 mirror: always
12516
12517 - name: media.audioFocus.management
12518 type: bool
12519 #if defined(MOZ_WIDGET_ANDROID)
12520 value: true
12521 #else
12522 value: false
12523 #endif
12524 mirror: always
12525
12526 - name: media.hardwaremediakeys.enabled
12527 type: bool
12528 value: true
12529 mirror: always
12530
12531 # If this pref is on, then `media.mediacontrol.stopcontrol.timer.ms` would take
12532 # effect and determine the timing to stop controlling media.
12533 - name: media.mediacontrol.stopcontrol.timer
12534 type: bool
12535 value: true
12536 mirror: always
12537
12538 # If media is being paused after a certain period, then we would think that
12539 # media doesn't need to be controlled anymore. Therefore, that media would stop
12540 # listening to the media control key events. The value of this pref is how long
12541 # media would stop listening to the event after it's paused. The default value
12542 # is set to 24 hrs (24*60*60*1000)
12543 - name: media.mediacontrol.stopcontrol.timer.ms
12544 type: RelaxedAtomicUint32
12545 value: 86400000
12546 mirror: always
12547
12548 # If this pref is on, we would stop controlling media after it reaches to the
12549 # end.
12550 - name: media.mediacontrol.stopcontrol.aftermediaends
12551 type: bool
12552 value: true
12553 mirror: always
12554
12555 # We would only use media control to control media which duration is longer
12556 # than this value.
12557 - name: media.mediacontrol.eligible.media.duration.s
12558 type: AtomicFloat
12559 value: 3.0f
12560 mirror: always
12561
12562 # Encoder creation strategy for WebRTC
12563 # 0: prefer builtin WebRTC encoder (including OpenH264 via GMP)
12564 # 1: prefer PlatformEncoderModule
12565 - name: media.webrtc.encoder_creation_strategy
12566 type: RelaxedAtomicUint32
12567 #ifdef ANDROID
12568 value: 1
12569 #else
12570 value: 0
12571 #endif
12572 mirror: always
12573
12574 #if defined(XP_MACOSX)
12575 - name: media.webrtc.capture.allow-iosurface
12576 type: RelaxedAtomicBool
12577 value: true
12578 mirror: always
12579 #endif
12580
12581 #if defined(XP_WIN)
12582 - name: media.webrtc.capture.allow-directx
12583 type: RelaxedAtomicBool
12584 value: true
12585 mirror: always
12586
12587 - name: media.webrtc.capture.screen.allow-wgc
12588 type: RelaxedAtomicBool
12589 value: false
12590 mirror: always
12591
12592 - name: media.webrtc.capture.window.allow-wgc
12593 type: RelaxedAtomicBool
12594 value: false
12595 mirror: always
12596
12597 - name: media.webrtc.capture.wgc.allow-zero-hertz
12598 type: RelaxedAtomicBool
12599 value: false
12600 mirror: always
12601 #endif
12602
12603 #if defined(MOZ_WIDGET_GTK)
12604 - name: media.webrtc.capture.allow-pipewire
12605 type: RelaxedAtomicBool
12606 value: true
12607 mirror: always
12608
12609 - name: media.webrtc.camera.allow-pipewire
12610 type: bool
12611 value: false
12612 mirror: once
12613 #endif
12614
12615 - name: media.block-autoplay-until-in-foreground
12616 type: bool
12617 #if !defined(MOZ_WIDGET_ANDROID)
12618 value: true
12619 #else
12620 value: false
12621 #endif
12622 mirror: always
12623
12624 - name: media.webrtc.hw.h264.enabled
12625 type: bool
12626 #if defined(MOZ_WIDGET_ANDROID)
12627 value: true
12628 #else
12629 value: false
12630 #endif
12631 mirror: always
12632
12633 - name: media.webrtc.codec.video.av1.enabled
12634 type: RelaxedAtomicBool
12635 #if defined(MOZ_AV1)
12636 value: true
12637 #endif
12638 mirror: always
12639
12640 # If true, then AV1 will be used as the preferred codec for WebRTC video.
12641 # After the AV1 codec is enabled by default, this pref will be renamed.
12642 - name: media.webrtc.codec.video.av1.experimental_preferred
12643 type: bool
12644 value: false
12645 mirror: always
12646
12647 - name: media.webrtc.simulcast.av1.enabled
12648 type: RelaxedAtomicBool
12649 value: true
12650 mirror: always
12651
12652 - name: media.webrtc.simulcast.h264.enabled
12653 type: RelaxedAtomicBool
12654 value: true
12655 mirror: always
12656
12657 - name: media.webrtc.simulcast.vp9.enabled
12658 type: RelaxedAtomicBool
12659 value: @IS_EARLY_BETA_OR_EARLIER@
12660 mirror: always
12661
12662 - name: media.peerconnection.video.use_dd
12663 type: RelaxedAtomicBool
12664 value: true
12665 mirror: always
12666
12667 - name: media.webrtc.tls_tunnel_for_all_proxy
12668 type: bool
12669 value: true
12670 mirror: always
12671
12672 - name: media.webrtc.disallow_HTTPS_upgrade_for_TURN
12673 type: bool
12674 value: true
12675 mirror: always
12676
12677 # If true, then we require explicit approval from the embedding app (ex. Fenix)
12678 # on GeckoView to know if we can allow audible, inaudible media or both kinds
12679 # of media to autoplay.
12680 - name: media.geckoview.autoplay.request
12681 type: bool
12682 value: false
12683 mirror: always
12684
12685 # This is used in testing only, in order to skip the prompting process. This
12686 # pref works only when enabling the pref `media.geckoview.autoplay.request`.
12687 # 0=prompt as normal, 1=allow all, 2=deny all, 3=allow audible request,
12688 # 4=deny audible request, 5=allow inaudible request, 6=deny inaudible request.
12689 # 7=leave all requests pending.
12690 - name: media.geckoview.autoplay.request.testing
12691 type: uint32_t
12692 value: 0
12693 mirror: always
12694
12695 - name: media.mediacontrol.testingevents.enabled
12696 type: bool
12697 value: false
12698 mirror: always
12699
12700 #if defined(XP_MACOSX)
12701 - name: media.macos.screenrecording.oscheck.enabled
12702 type: bool
12703 value: true
12704 mirror: always
12705 #endif
12706
12707 # When the playback rate of an HTMLMediaElement is greater than this value, or
12708 # lower than the inverse of this value, the audio is muted.
12709 - name: media.audio.playbackrate.muting_threshold
12710 type: uint32_t
12711 value: 8
12712 mirror: always
12713
12714 # The interval of time in milliseconds between attempts to reopen any
12715 # previously unavailable audio device.
12716 - name: media.audio.device.retry.ms
12717 type: RelaxedAtomicInt32
12718 value: 1000
12719 mirror: always
12720
12721 # Time-stretch algorithm single processing sequence length in milliseconds.
12722 # This determines to how long sequences the original sound is chopped in the
12723 # time-stretch algorithm.
12724 - name: media.audio.playbackrate.soundtouch_sequence_ms
12725 type: RelaxedAtomicInt32
12726 value: 10
12727 mirror: always
12728
12729 # Time-stretch algorithm seeking window length in milliseconds for algorithm
12730 # that finds the best possible overlapping location. This determines from how
12731 # wide window the algorithm may look for an optimal joining location when mixing
12732 # the sound sequences back together.
12733 - name: media.audio.playbackrate.soundtouch_seekwindow_ms
12734 type: RelaxedAtomicInt32
12735 value: 15
12736 mirror: always
12737
12738 # Time-stretch algorithm overlap length in milliseconds. When the chopped sound
12739 # sequences are mixed back together, to form a continuous sound stream, this
12740 # parameter defines over how long period the two consecutive sequences are let
12741 # to overlap each other.
12742 - name: media.audio.playbackrate.soundtouch_overlap_ms
12743 type: RelaxedAtomicInt32
12744 value: 8
12745 mirror: always
12746
12747 # The duration, in milliseconds, of decoded audio to keep around in the
12748 # AudioSink ring-buffer. New decoding operations are started when this limit is
12749 # reached. The total size of the ring-buffer is slightly bigger than this.
12750 - name: media.audio.audiosink.threshold_ms
12751 type: AtomicFloat
12752 #if defined(XP_MACOSX) && defined(MOZ_AARCH64)
12753 value: 1000.0
12754 #else
12755 value: 200.0
12756 #endif
12757 mirror: always
12758
12759 - name: media.video-wakelock
12760 type: RelaxedAtomicBool
12761 value: true
12762 mirror: always
12763
12764 # On Mac, enables using the `<Brand> Media Plugin Helper` executable as the
12765 # GMP child process instead of the plugin-container executable.
12766 #if defined(XP_MACOSX)
12767 - name: media.plugin_helper_process.enabled
12768 type: RelaxedAtomicBool
12769 value: true
12770 mirror: always
12771 #endif
12772
12773 # When this is true, the protection mask that Firefox replies to Widevine API
12774 # QueryOutputProtectionStatus is `kProtectionHDCP` when no potential capturing.
12775 - name: media.widevine.hdcp-protection-mask
12776 type: RelaxedAtomicBool
12777 value: true
12778 mirror: always
12779
12780 #---------------------------------------------------------------------------
12781 # Prefs starting with "memory."
12782 #---------------------------------------------------------------------------
12783
12784 - name: memory.phc.enabled
12785 type: bool
12786 value: true
12787 mirror: always
12788
12789 - name: memory.phc.min_ram_mb
12790 type: uint32_t
12791 value: 8000
12792 mirror: always
12793
12794 - name: memory.phc.avg_delay.first
12795 type: uint32_t
12796 value: 65536
12797 mirror: always
12798
12799 - name: memory.phc.avg_delay.normal
12800 type: uint32_t
12801 value: 16384
12802 mirror: always
12803
12804 - name: memory.phc.avg_delay.page_reuse
12805 type: uint32_t
12806 value: 262144
12807 mirror: always
12808
12809 - name: memory.phc.avg_delay.content.first
12810 type: uint32_t
12811 value: 16384
12812 mirror: always
12813
12814 - name: memory.phc.avg_delay.content.normal
12815 type: uint32_t
12816 value: 4096
12817 mirror: always
12818
12819 - name: memory.phc.avg_delay.content.page_reuse
12820 type: uint32_t
12821 value: 262144
12822 mirror: always
12823
12824 # Tell mozjemalloc and the TaskController to use lazy purge.
12825 - name: memory.lazypurge.enable
12826 type: bool
12827 value: true
12828 mirror: always
12829
12830 # If lazy purge is enabled, the maximum delay we wait for idle time in MS.
12831 - name: memory.lazypurge.maximum_delay
12832 type: uint32_t
12833 value: 5000
12834 mirror: always
12835
12836 # If lazy purge is enabled, the minimum idle budget we wait for in MS.
12837 - name: memory.lazypurge.minimum_idle_budget
12838 type: uint32_t
12839 value: 5
12840 mirror: always
12841
12842 # If lazy purge is enabled, the minimum time we wait with purge after some
12843 # memory was reused (tracked per arena).
12844 - name: memory.lazypurge.reuse_grace_period
12845 type: uint32_t
12846 value: 500
12847 mirror: always
12848
12849 #---------------------------------------------------------------------------
12850 # Prefs starting with "middlemouse."
12851 #---------------------------------------------------------------------------
12852
12853 # If set and browser.tabs.opentabfor.middleclick is not set, middle clicking on
12854 # a link opens the link in a new window.
12855 - name: middlemouse.openNewWindow
12856 type: bool
12857 #if defined(ANDROID) || !defined(XP_MACOSX) && defined(XP_UNIX)
12858 value: true
12859 #else
12860 value: false
12861 #endif
12862 mirror: always
12863
12864 #---------------------------------------------------------------------------
12865 # Prefs starting with "midi."
12866 #---------------------------------------------------------------------------
12867
12868 - name: midi.testing
12869 type: RelaxedAtomicBool
12870 value: false
12871 mirror: always
12872
12873 #---------------------------------------------------------------------------
12874 # Prefs starting with "mousewheel."
12875 #---------------------------------------------------------------------------
12876
12877 # This affects how line scrolls from wheel events will be accelerated.
12878 # Factor to be multiplied for constant acceleration.
12879 - name: mousewheel.acceleration.factor
12880 type: RelaxedAtomicInt32
12881 value: 10
12882 mirror: always
12883
12884 # This affects how line scrolls from wheel events will be accelerated.
12885 # Number of mousewheel clicks when acceleration starts.
12886 # Acceleration can be turned off if pref is set to -1.
12887 - name: mousewheel.acceleration.start
12888 type: RelaxedAtomicInt32
12889 value: -1
12890 mirror: always
12891
12892 # Auto-dir is a feature which treats any single-wheel scroll as a scroll in the
12893 # only one scrollable direction if the target has only one scrollable
12894 # direction. For example, if the user scrolls a vertical wheel inside a target
12895 # which is horizontally scrollable but vertical unscrollable, then the vertical
12896 # scroll is converted to a horizontal scroll for that target.
12897 # Note that auto-dir only takes effect for |mousewheel.*.action|s and
12898 # |mousewheel.*.action.override_x|s whose values are 1.
12899 - name: mousewheel.autodir.enabled
12900 type: bool
12901 value: false
12902 mirror: always
12903
12904 # When a wheel scroll is converted due to auto-dir, which side the converted
12905 # scroll goes towards is decided by one thing called "honoured target". If the
12906 # content of the honoured target horizontally starts from right to left, then
12907 # an upward scroll maps to a rightward scroll and a downward scroll maps to a
12908 # leftward scroll; otherwise, an upward scroll maps to a leftward scroll and a
12909 # downward scroll maps to a rightward scroll.
12910 # If this pref is set to false, then consider the scrolling target as the
12911 # honoured target.
12912 # If set to true, then consider the root element in the document where the
12913 # scrolling target is as the honoured target. But note that there's one
12914 # exception: for targets in an HTML document, the real root element(I.e. the
12915 # <html> element) is typically not considered as a root element, but the <body>
12916 # element is typically considered as a root element. If there is no <body>
12917 # element, then consider the <html> element instead.
12918 - name: mousewheel.autodir.honourroot
12919 type: bool
12920 value: false
12921 mirror: always
12922
12923 - name: mousewheel.system_scroll_override.enabled
12924 type: RelaxedAtomicBool
12925 #if defined(XP_WIN) || defined(MOZ_WIDGET_GTK)
12926 value: true
12927 #else
12928 value: false
12929 #endif
12930 mirror: always
12931
12932 # Prefs for overriding the system mouse wheel scrolling speed on
12933 # content of the web pages. When
12934 # "mousewheel.system_scroll_override.enabled" is true and the
12935 # system scrolling speed isn't customized by the user, the content scrolling
12936 # speed is multiplied by the following factors. The value will be used as
12937 # 1/100. E.g., 200 means 2.00.
12938 # NOTE: Even if "mousewheel.system_scroll_override.enabled" is
12939 # true, when Gecko detects the user customized the system scrolling speed
12940 # settings, the override isn't executed.
12941 - name: mousewheel.system_scroll_override.horizontal.factor
12942 type: RelaxedAtomicInt32
12943 value: 200
12944 mirror: always
12945 - name: mousewheel.system_scroll_override.vertical.factor
12946 type: RelaxedAtomicInt32
12947 value: 200
12948 mirror: always
12949
12950 # Mouse wheel scroll transaction is held even if the mouse cursor is moved.
12951 - name: mousewheel.transaction.ignoremovedelay
12952 type: RelaxedAtomicInt32
12953 value: 100
12954 mirror: always
12955
12956 # Mouse wheel scroll transaction period of time (in milliseconds).
12957 - name: mousewheel.transaction.timeout
12958 type: RelaxedAtomicInt32
12959 value: 1500
12960 mirror: always
12961
12962 # Mouse wheel scroll position is determined by GetMessagePos rather than
12963 # LPARAM msg value
12964 - name: mousewheel.ignore_cursor_position_in_lparam
12965 type: RelaxedAtomicBool
12966 value: false
12967 mirror: always
12968
12969 # If line-height is lower than this value (in device pixels), 1 line scroll
12970 # scrolls this height.
12971 - name: mousewheel.min_line_scroll_amount
12972 type: int32_t
12973 value: 5
12974 mirror: always
12975
12976 # Timeout period (in milliseconds) when the mouse wheel event is no longer
12977 # handled as the same series.
12978 - name: mousewheel.scroll_series_timeout
12979 type: RelaxedAtomicInt32
12980 value: 80
12981 mirror: always
12982
12983 #---------------------------------------------------------------------------
12984 # Prefs starting with "mozilla."
12985 #---------------------------------------------------------------------------
12986
12987 - name: mozilla.widget.raise-on-setfocus
12988 type: bool
12989 value: true
12990 mirror: once
12991
12992 #---------------------------------------------------------------------------
12993 # Prefs starting with "network."
12994 #---------------------------------------------------------------------------
12995
12996 # Force less-secure NTLMv1 when needed (NTLMv2 is the default).
12997 - name: network.auth.force-generic-ntlm-v1
12998 type: RelaxedAtomicBool
12999 value: false
13000 mirror: always
13001
13002 # Sub-resources HTTP-authentication:
13003 # 0 - don't allow sub-resources to open HTTP authentication credentials
13004 # dialogs
13005 # 1 - allow sub-resources to open HTTP authentication credentials dialogs,
13006 # but don't allow it for cross-origin sub-resources
13007 # 2 - allow the cross-origin authentication as well.
13008 - name: network.auth.subresource-http-auth-allow
13009 type: uint32_t
13010 value: 2
13011 mirror: always
13012
13013 # Sub-resources HTTP-authentication for cross-origin images:
13014 # - true: It is allowed to present http auth. dialog for cross-origin images.
13015 # - false: It is not allowed.
13016 # If network.auth.subresource-http-auth-allow has values 0 or 1 this pref does
13017 # not have any effect.
13018 - name: network.auth.subresource-img-cross-origin-http-auth-allow
13019 type: bool
13020 value: false
13021 mirror: always
13022
13023 # Resources that are triggered by some non-web-content:
13024 # - true: They are allow to present http auth. dialog
13025 # - false: They are not allow to present http auth. dialog.
13026 - name: network.auth.non-web-content-triggered-resources-http-auth-allow
13027 type: bool
13028 value: false
13029 mirror: always
13030
13031 # Whether to show anti-spoof confirmation prompts when navigating to a url
13032 # with userinfo
13033 - name: network.auth.confirmAuth.enabled
13034 type: bool
13035 value: false
13036 mirror: always
13037
13038 # Whether to display auth prompts if X-Frame-Options header will block loading
13039 # page
13040 - name: network.auth.supress_auth_prompt_for_XFO_failures
13041 type: bool
13042 value: true
13043 mirror: always
13044
13045 # whether to redirect the channel for auth redirects. See Bug 1820807
13046 - name: network.auth.use_redirect_for_retries
13047 type: RelaxedAtomicBool
13048 value: @IS_EARLY_BETA_OR_EARLIER@
13049 mirror: always
13050
13051 # When true, authentication challenges will be sorted even if
13052 # an authentication is already in progress. This may cause issues sometimes.
13053 - name: network.auth.sort_challenge_in_progress
13054 type: RelaxedAtomicBool
13055 value: false
13056 mirror: always
13057
13058 # When true, the hashing of the certificate will be done with the hashing
13059 # algorithm specified in the cert instead of SHA256.
13060 - name: network.auth.sspi_detect_hash
13061 type: RelaxedAtomicBool
13062 value: true
13063 mirror: always
13064
13065 # When true, Negotiate authentication sends a tls-server-end-point channel
13066 # binding token, as required by servers with Windows Extended Protection
13067 # enabled. Only has an effect when the SSPI auth module is in use.
13068 - name: network.auth.negotiate_channel_binding
13069 type: RelaxedAtomicBool
13070 value: true
13071 mirror: always
13072
13073 # See the full list of values in nsICookieService.idl.
13074 - name: network.cookie.cookieBehavior
13075 type: RelaxedAtomicInt32
13076 value: 0 # accept all cookies
13077 mirror: always
13078
13079 # Maximum client-side cookie life-time cap. Measured in seconds, set to 0 to
13080 # disable.
13081 - name: network.cookie.maxageCap
13082 type: RelaxedAtomicUint32
13083 value: 34560000
13084 mirror: always
13085
13086 # The cookieBehavior to be used in Private Browsing mode.
13087 - name: network.cookie.cookieBehavior.pbmode
13088 type: RelaxedAtomicInt32
13089 value: 0 # accept all cookies
13090 mirror: always
13091
13092 # Changes cookieBehavior=5 to block third-party cookies by default
13093 - name: network.cookie.cookieBehavior.optInPartitioning
13094 type: bool
13095 value: false
13096 mirror: always
13097
13098 # Changes cookieBehavior=5 to block third-party cookies in the private browsing
13099 # mode.
13100 - name: network.cookie.cookieBehavior.optInPartitioning.pbmode
13101 type: bool
13102 value: false
13103 mirror: always
13104
13105 # Whether to block third-party tracker cookie and storage access when
13106 # cookieBehavior=5.
13107 - name: network.cookie.cookieBehavior.trackerCookieBlocking
13108 type: bool
13109 value: @IS_NOT_NIGHTLY_BUILD@
13110 mirror: always
13111
13112 # Whether to support CHIPS(Cookies Having Independent Partitioned State).
13113 - name: network.cookie.CHIPS.enabled
13114 type: RelaxedAtomicBool
13115 value: @IS_NIGHTLY_BUILD@
13116 mirror: always
13117
13118 # Updated to match the target count when we migrate the unpartitioned CHIPS
13119 # cookies to their first-party partition.
13120 - name: network.cookie.CHIPS.lastMigrateDatabase
13121 type: RelaxedAtomicUint32
13122 value: 0
13123 mirror: always
13124
13125 # Used to increase the number of times we want to have migrated the database.
13126 # This lets us remotely perform a database migration with Nimbus.
13127 - name: network.cookie.CHIPS.migrateDatabaseTarget
13128 type: RelaxedAtomicUint32
13129 value: 1
13130 mirror: always
13131
13132 # Stale threshold for cookies in seconds.
13133 - name: network.cookie.staleThreshold
13134 type: uint32_t
13135 value: 60
13136 mirror: always
13137
13138 # Enable CHIPS partition byte limit enforcement
13139 # This pref will only be consulted if CHIPS itself is enabled
13140 - name: network.cookie.chips.partitionLimitEnabled
13141 type: bool
13142 value: true
13143 mirror: always
13144
13145 # CHIPS partition limit DryRun mode disables purging/rejection
13146 # but still checks for capacity overflow and reports telemetry
13147 - name: network.cookie.chips.partitionLimitDryRun
13148 type: bool
13149 value: true
13150 mirror: always
13151
13152 # The actual CHIPS parition limit in bytes
13153 - name: network.cookie.chips.partitionLimitByteCapacity
13154 type: RelaxedAtomicInt32
13155 value: 10240 # 10KiB
13156 mirror: always
13157
13158 - name: network.cookie.sameSite.laxByDefault
13159 type: RelaxedAtomicBool
13160 value: false
13161 mirror: always
13162
13163 - name: network.cookie.sameSite.laxByDefaultWarningsForBeta
13164 type: RelaxedAtomicBool
13165 value: false
13166 mirror: always
13167
13168 # lax-by-default 2 minutes tollerance for unsafe methods. The value is in seconds.
13169 - name: network.cookie.sameSite.laxPlusPOST.timeout
13170 type: uint32_t
13171 value: 120
13172 mirror: always
13173
13174 # For lax-by-default cookies ignore cross-site redirects when the final
13175 # redirect is same-site again.
13176 # https://github.com/httpwg/http-extensions/issues/2104
13177 - name: network.cookie.sameSite.laxByDefault.allowBoomerangRedirect
13178 type: bool
13179 value: true
13180 mirror: always
13181
13182 - name: network.cookie.sameSite.noneRequiresSecure
13183 type: bool
13184 value: true
13185 mirror: always
13186
13187 - name: network.cookie.sameSite.schemeful
13188 type: bool
13189 value: @IS_NIGHTLY_BUILD@
13190 mirror: always
13191
13192 - name: network.cookie.sameSite.crossSiteIframeSetCheck
13193 type: bool
13194 value: true
13195 mirror: always
13196
13197 # If we should not store "persistent" cookies at all, i.e., make the
13198 # "persistent" storage be like "private" storage. This value is only read when
13199 # instantiating persistent storage for the cookie service, which usually only
13200 # happens when the cookie service singleton is created.
13201 - name: network.cookie.noPersistentStorage
13202 type: bool
13203 value: false
13204 mirror: always
13205
13206 # If true then any cookies containing unicode will be rejected
13207 - name: network.cookie.blockUnicode
13208 type: RelaxedAtomicBool
13209 value: false
13210 mirror: always
13211
13212 # If true cookies loaded from the sqlite DB that have a creation or
13213 # last accessed time that is in the future will be fixed and the
13214 # timestamps will be set to the current time.
13215 - name: network.cookie.fixup_on_db_load
13216 type: RelaxedAtomicBool
13217 value: true
13218 mirror: always
13219
13220 # If true content types of multipart/x-mixed-replace cannot set a cookie
13221 - name: network.cookie.prevent_set_cookie_from_multipart
13222 type: RelaxedAtomicBool
13223 value: true
13224 mirror: always
13225
13226 # Use sever time (Date header) to adjust the expire cookie attribute
13227 - name: network.cookie.useServerTime
13228 type: RelaxedAtomicBool
13229 value: true
13230 mirror: always
13231
13232 # When true, Firefox will reject nameless cookies that contain `=` in value.
13233 - name: network.cookie.block_nameless_with_equal_char
13234 type: RelaxedAtomicBool
13235 value: true
13236 mirror: always
13237
13238 # If we should attempt to race the cache and network.
13239 - name: network.http.rcwn.enabled
13240 type: bool
13241 value: true
13242 mirror: always
13243
13244 - name: network.http.rcwn.cache_queue_normal_threshold
13245 type: uint32_t
13246 value: 8
13247 mirror: always
13248
13249 - name: network.http.rcwn.cache_queue_priority_threshold
13250 type: uint32_t
13251 value: 2
13252 mirror: always
13253
13254 # We might attempt to race the cache with the network only if a resource
13255 # is smaller than this size.
13256 - name: network.http.rcwn.small_resource_size_kb
13257 type: uint32_t
13258 value: 256
13259 mirror: always
13260
13261 - name: network.http.rcwn.min_wait_before_racing_ms
13262 type: uint32_t
13263 value: 0
13264 mirror: always
13265
13266 - name: network.http.rcwn.max_wait_before_racing_ms
13267 type: uint32_t
13268 value: 500
13269 mirror: always
13270
13271 # Whether to send the Referer header in response to a meta refresh, or
13272 # in response to a Refresh header.
13273 - name: network.http.referer.sendFromRefresh
13274 type: bool
13275 value: true
13276 mirror: always
13277
13278 # false=real referer, true=spoof referer (use target URI as referer).
13279 - name: network.http.referer.spoofSource
13280 type: bool
13281 value: false
13282 mirror: always
13283
13284 # Check whether we need to hide referrer when leaving a .onion domain.
13285 # false=allow onion referer, true=hide onion referer (use empty referer).
13286 - name: network.http.referer.hideOnionSource
13287 type: bool
13288 value: true
13289 mirror: always
13290
13291 # Include an origin header on non-GET and non-HEAD requests regardless of CORS.
13292 # 0=never send, 1=send when same-origin only, 2=always send.
13293 - name: network.http.sendOriginHeader
13294 type: uint32_t
13295 value: 2
13296 mirror: always
13297
13298 # Include an idempotency-key header for POST requests
13299 - name: network.http.idempotencyKey.enabled
13300 type: RelaxedAtomicBool
13301 value: @IS_NIGHTLY_BUILD@
13302 mirror: always
13303
13304 # Whether to respect the redirected-tainted origin flag
13305 # https://fetch.spec.whatwg.org/#concept-request-tainted-origin
13306 - name: network.http.origin.redirectTainted
13307 type: bool
13308 value: true
13309 mirror: always
13310
13311 # Bug 1965430: Use TriggeringPrincipal instead of LoadingPrincipal to
13312 # determine the request origin when computing redirect-taint. This fixes
13313 # top-level navigational POST redirects (e.g., form submissions) where
13314 # LoadingPrincipal is null. Set to false to revert to the old behavior.
13315 - name: network.http.origin.useTriggeringPrincipal
13316 type: RelaxedAtomicBool
13317 value: true
13318 mirror: always
13319
13320 # If true, cross origin fetch (or XHR) requests would be keyed
13321 # with a different cache key.
13322 - name: network.fetch.cache_partition_cross_origin
13323 type: RelaxedAtomicBool
13324 value: true
13325 mirror: always
13326
13327 # If true, when browser code itself makes network requests, default to
13328 # omitting credentials.
13329 - name: network.fetch.systemDefaultsToOmittingCredentials
13330 type: RelaxedAtomicBool
13331 value: true
13332 mirror: always
13333
13334 # Prefs allowing granular control of referers.
13335 # 0=don't send any, 1=send only on clicks, 2=send on image requests as well
13336 - name: network.http.sendRefererHeader
13337 type: uint32_t
13338 value: 2
13339 mirror: always
13340 do_not_use_directly: true
13341
13342 # Whether to add urgency and incremental to request headers
13343 - name: network.http.priority_header.enabled
13344 type: RelaxedAtomicBool
13345 value: true
13346 mirror: always
13347
13348 # The maximum allowed length for a referrer header - 4096 default.
13349 # 0 means no limit.
13350 - name: network.http.referer.referrerLengthLimit
13351 type: uint32_t
13352 value: 4096
13353 mirror: always
13354
13355 # 0=always send, 1=send iff base domains match, 2=send iff hosts match.
13356 - name: network.http.referer.XOriginPolicy
13357 type: uint32_t
13358 value: 0
13359 mirror: always
13360 do_not_use_directly: true
13361
13362 # 0=full URI, 1=scheme+host+port+path, 2=scheme+host+port.
13363 - name: network.http.referer.trimmingPolicy
13364 type: uint32_t
13365 value: 0
13366 mirror: always
13367 do_not_use_directly: true
13368
13369 # 0=full URI, 1=scheme+host+port+path, 2=scheme+host+port.
13370 - name: network.http.referer.XOriginTrimmingPolicy
13371 type: uint32_t
13372 value: 0
13373 mirror: always
13374 do_not_use_directly: true
13375
13376 # Set the default Referrer Policy; to be used unless overriden by the site.
13377 # 0=no-referrer, 1=same-origin, 2=strict-origin-when-cross-origin,
13378 # 3=no-referrer-when-downgrade.
13379 - name: network.http.referer.defaultPolicy
13380 type: uint32_t
13381 value: 2
13382 mirror: always
13383
13384 # Set the default Referrer Policy applied to third-party trackers when the
13385 # default cookie policy is set to reject third-party trackers, to be used
13386 # unless overriden by the site.
13387 # 0=no-referrer, 1=same-origin, 2=strict-origin-when-cross-origin,
13388 # 3=no-referrer-when-downgrade.
13389 # Trim referrers from trackers to origins by default.
13390 - name: network.http.referer.defaultPolicy.trackers
13391 type: uint32_t
13392 value: 2
13393 mirror: always
13394
13395 # Set the Private Browsing Default Referrer Policy, to be used
13396 # unless overriden by the site.
13397 # 0=no-referrer, 1=same-origin, 2=strict-origin-when-cross-origin,
13398 # 3=no-referrer-when-downgrade.
13399 - name: network.http.referer.defaultPolicy.pbmode
13400 type: uint32_t
13401 value: 2
13402 mirror: always
13403
13404 # Set to ignore referrer policies which is less restricted than the default for
13405 # cross-site requests, including 'unsafe-url', 'no-referrer-when-downgrade' and
13406 # 'origin-when-cross-origin'.
13407 - name: network.http.referer.disallowCrossSiteRelaxingDefault
13408 type: bool
13409 value: true
13410 mirror: always
13411
13412 # Whether we ignore less restricted referrer policies for top navigations.
13413 - name: network.http.referer.disallowCrossSiteRelaxingDefault.top_navigation
13414 type: bool
13415 value: false
13416 mirror: always
13417
13418
13419 # Set to ignore referrer policies which is less restricted than the default for
13420 # cross-site requests in the private browsing mode, including 'unsafe-url',
13421 # 'no-referrer-when-downgrade' and 'origin-when-cross-origin'.
13422 - name: network.http.referer.disallowCrossSiteRelaxingDefault.pbmode
13423 type: bool
13424 value: true
13425 mirror: always
13426
13427 # Whether we ignore less restricted referrer policies for top navigations in the
13428 # private browsing mode.
13429 - name: network.http.referer.disallowCrossSiteRelaxingDefault.pbmode.top_navigation
13430 type: bool
13431 value: true
13432 mirror: always
13433
13434 # Set the Private Browsing Default Referrer Policy applied to third-party
13435 # trackers when the default cookie policy is set to reject third-party
13436 # trackers, to be used unless overriden by the site.
13437 # 0=no-referrer, 1=same-origin, 2=strict-origin-when-cross-origin,
13438 # 3=no-referrer-when-downgrade.
13439 # No need to change this pref for trimming referrers from trackers since in
13440 # private windows we already trim all referrers to origin only.
13441 - name: network.http.referer.defaultPolicy.trackers.pbmode
13442 type: uint32_t
13443 value: 2
13444 mirror: always
13445
13446 # Whether certain http header values should be censored out in logs.
13447 # Specifically filters out "authorization" and "proxy-authorization".
13448 - name: network.http.sanitize-headers-in-logs
13449 type: RelaxedAtomicBool
13450 value: true
13451 mirror: always
13452
13453 # Whether network error logging is enabled.
13454 - name: network.http.network_error_logging.enabled
13455 type: RelaxedAtomicBool
13456 value: false
13457 mirror: always
13458
13459 # Whether or not we use Windows for SSO to Microsoft sites.
13460 - name: network.http.windows-sso.enabled
13461 type: RelaxedAtomicBool
13462 value: false
13463 mirror: always
13464
13465 # Whether windows-sso is enabled for the default (0) container.
13466 # To enable SSO for additional containers, add a new pref like
13467 # `network.http.windows-sso.container-enabled.${containerId}` = true
13468 - name: network.http.windows-sso.container-enabled.0
13469 type: bool
13470 value: true
13471 mirror: never
13472
13473 # Whether or not we use MS Entra SSO to network.microsoft-sso-authority-list sites.
13474 - name: network.http.microsoft-entra-sso.enabled
13475 type: RelaxedAtomicBool
13476 value: false
13477 mirror: always
13478
13479 # Whether microsoft-entra-sso is enabled for the default (0) container.
13480 # To enable SSO for additional containers, add a new pref like
13481 # `network.http.microsoft-entra-sso.container-enabled.${containerId}` = true
13482 - name: network.http.microsoft-entra-sso.container-enabled.0
13483 type: bool
13484 value: true
13485 mirror: never
13486
13487 # To specify the list of trusted Microsoft Single Sign-On (SSO) authority URLs
13488 # This is needed for macOS unlike Windows where we send every URL to SSO
13489 - name: network.microsoft-sso-authority-list
13490 type: String
13491 value: >-
13492 login.microsoft.com,
13493 login.microsoftonline.com,
13494 sts.windows.net,
13495 login.partner.microsoftonline.cn,
13496 login.chinacloudapi.cn,
13497 login.microsoftonline.us,
13498 login-us.microsoftonline.com
13499 mirror: never
13500
13501 # Whether to fallback to old mime-type parser when CMimeType::Parse fails
13502 - name: network.http.fallback_to_net_parse_ct
13503 type: RelaxedAtomicBool
13504 value: true
13505 mirror: always
13506
13507 # The factor by which to increase the keepalive timeout when the
13508 # NS_HTTP_LARGE_KEEPALIVE flag is used for a connection
13509 - name: network.http.largeKeepaliveFactor
13510 type: RelaxedAtomicUint32
13511 #if defined(ANDROID)
13512 value: 10
13513 #else
13514 value: 20
13515 #endif
13516 mirror: always
13517
13518 # Max size, in bytes, for received HTTP response header.
13519 - name: network.http.max_response_header_size
13520 type: RelaxedAtomicUint32
13521 value: 393216
13522 mirror: always
13523
13524 # Whether or not we give more priority to active tab.
13525 - name: network.http.active_tab_priority
13526 type: RelaxedAtomicBool
13527 #if defined(ANDROID)
13528 value: false
13529 #else
13530 value: true
13531 #endif
13532 mirror: always
13533
13534 # Treat all Unicode labels as confusable/unsafe so that they show up
13535 # as Punycode in the UI.
13536 - name: network.IDN_show_punycode
13537 type: RelaxedAtomicBool
13538 value: false
13539 mirror: always
13540
13541 # If set to true, IOService.offline depends on IOService.connectivity.
13542 - name: network.offline-mirrors-connectivity
13543 type: RelaxedAtomicBool
13544 value: false
13545 mirror: always
13546
13547 # If set to true, disallow localhost connections when offline.
13548 - name: network.disable-localhost-when-offline
13549 type: RelaxedAtomicBool
13550 value: false
13551 mirror: always
13552
13553 # If set to true, Firefox will use the file extension of a URL
13554 # to sniff its content type. When false, nsUnknownDecoder will
13555 # use the file extension only for file URLs
13556 - name: network.sniff.use_extension
13557 type: RelaxedAtomicBool
13558 value: false
13559 mirror: always
13560
13561 # Enables the predictive service.
13562 - name: network.predictor.enabled
13563 type: bool
13564 value: true
13565 mirror: always
13566
13567 # Disable requests to 0.0.0.0
13568 # See Bug 1889130
13569 - name: network.socket.ip_addr_any.disabled
13570 type: RelaxedAtomicBool
13571 value: @IS_EARLY_BETA_OR_EARLIER@
13572 mirror: always
13573
13574 # Set true to allow resolving proxy for localhost
13575 - name: network.proxy.allow_hijacking_localhost
13576 type: RelaxedAtomicBool
13577 value: false
13578 mirror: always
13579
13580 # This pref will still treat localhost URLs as secure even when hijacked
13581 # during testing. This is necessary for automated testing to check that we
13582 # actually treat localhost as a secure origin.
13583 - name: network.proxy.testing_localhost_is_secure_when_hijacked
13584 type: RelaxedAtomicBool
13585 value: false
13586 mirror: always
13587
13588 # The timeout used when calling DhcpRequestParams. The call may sometimes hang
13589 # after resuming from suspend.
13590 - name: network.proxy.dhcp_wpad_timeout_sec
13591 type: AtomicFloat
13592 value: 5.0
13593 mirror: always
13594
13595 # When true, we only allow one outstanding GetPacFromDHCP runnable
13596 - name: network.proxy.dhcp_wpad_only_one_outstanding
13597 type: RelaxedAtomicBool
13598 value: true
13599 mirror: always
13600
13601 # Allow CookieJarSettings to be unblocked for channels without a document.
13602 # This is for testing only.
13603 - name: network.cookieJarSettings.unblocked_for_testing
13604 type: bool
13605 value: false
13606 mirror: always
13607
13608 - name: network.predictor.enable-hover-on-ssl
13609 type: bool
13610 value: false
13611 mirror: always
13612
13613 - name: network.predictor.enable-prefetch
13614 type: bool
13615 value: @IS_EARLY_BETA_OR_EARLIER@
13616 mirror: always
13617
13618 - name: network.predictor.page-degradation.day
13619 type: int32_t
13620 value: 0
13621 mirror: always
13622 - name: network.predictor.page-degradation.week
13623 type: int32_t
13624 value: 5
13625 mirror: always
13626 - name: network.predictor.page-degradation.month
13627 type: int32_t
13628 value: 10
13629 mirror: always
13630 - name: network.predictor.page-degradation.year
13631 type: int32_t
13632 value: 25
13633 mirror: always
13634 - name: network.predictor.page-degradation.max
13635 type: int32_t
13636 value: 50
13637 mirror: always
13638
13639 - name: network.predictor.subresource-degradation.day
13640 type: int32_t
13641 value: 1
13642 mirror: always
13643 - name: network.predictor.subresource-degradation.week
13644 type: int32_t
13645 value: 10
13646 mirror: always
13647 - name: network.predictor.subresource-degradation.month
13648 type: int32_t
13649 value: 25
13650 mirror: always
13651 - name: network.predictor.subresource-degradation.year
13652 type: int32_t
13653 value: 50
13654 mirror: always
13655 - name: network.predictor.subresource-degradation.max
13656 type: int32_t
13657 value: 100
13658 mirror: always
13659
13660 - name: network.predictor.prefetch-rolling-load-count
13661 type: int32_t
13662 value: 10
13663 mirror: always
13664
13665 - name: network.predictor.prefetch-min-confidence
13666 type: int32_t
13667 value: 100
13668 mirror: always
13669 - name: network.predictor.preconnect-min-confidence
13670 type: int32_t
13671 value: 90
13672 mirror: always
13673 - name: network.predictor.preresolve-min-confidence
13674 type: int32_t
13675 value: 60
13676 mirror: always
13677
13678 - name: network.predictor.prefetch-force-valid-for
13679 type: int32_t
13680 value: 10
13681 mirror: always
13682
13683 - name: network.predictor.max-resources-per-entry
13684 type: int32_t
13685 value: 100
13686 mirror: always
13687
13688 # This is selected in concert with max-resources-per-entry to keep memory
13689 # usage low-ish. The default of the combo of the two is ~50k.
13690 - name: network.predictor.max-uri-length
13691 type: uint32_t
13692 value: 500
13693 mirror: always
13694
13695 # A testing flag.
13696 - name: network.predictor.doing-tests
13697 type: bool
13698 value: false
13699 mirror: always
13700
13701 # Indicates whether the `fetchpriority` attribute for elements which support it
13702 # (e.g. `<script>`) is enabled.
13703 - name: network.fetchpriority.enabled
13704 type: RelaxedAtomicBool
13705 value: true
13706 mirror: always
13707
13708 # When true, the channel's urgency will be adjusted based on the
13709 # channel's nsISupportsPriority.
13710 - name: network.fetchpriority.adjust_urgency
13711 type: RelaxedAtomicBool
13712 value: true
13713 mirror: always
13714
13715 # Adjustments to apply to the internal priority of <link rel=preload as=script
13716 # fetchpriority=low/high/auto> and equivalent Link header with respect to the
13717 # case when network.fetchpriority is disabled.
13718 # - When the flag is disabled, Gecko currently sets priority to HIGHEST.
13719 # - When the flag is enabled, it respectively maps to LOW/HIGHEST/HIGHEST.
13720 - name: network.fetchpriority.adjustments.link-preload-script.low
13721 type: int32_t
13722 value: 30
13723 mirror: always
13724 - name: network.fetchpriority.adjustments.link-preload-script.high
13725 type: int32_t
13726 value: 0
13727 mirror: always
13728 - name: network.fetchpriority.adjustments.link-preload-script.auto
13729 type: int32_t
13730 value: 0
13731 mirror: always
13732
13733 # Adjustments to apply to the internal priority of <script type="module"
13734 # fetchpriority=low/high/auto> with respect to the case when
13735 # network.fetchpriority is disabled.
13736 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13737 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13738 - name: network.fetchpriority.adjustments.module-script.low
13739 type: int32_t
13740 value: 10
13741 mirror: always
13742 - name: network.fetchpriority.adjustments.module-script.high
13743 type: int32_t
13744 value: -10
13745 mirror: always
13746 - name: network.fetchpriority.adjustments.module-script.auto
13747 type: int32_t
13748 value: 0
13749 mirror: always
13750
13751 # Adjustments to apply to the internal priority of async or defer <script
13752 # fetchpriority=low/high/auto> with respect to the case when
13753 # network.fetchpriority is disabled.
13754 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13755 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13756 - name: network.fetchpriority.adjustments.async-or-defer-script.low
13757 type: int32_t
13758 value: 10
13759 mirror: always
13760 - name: network.fetchpriority.adjustments.async-or-defer-script.high
13761 type: int32_t
13762 value: -10
13763 mirror: always
13764 - name: network.fetchpriority.adjustments.async-or-defer-script.auto
13765 type: int32_t
13766 value: 0
13767 mirror: always
13768
13769 # Adjustments to apply to the internal priority of <script
13770 # fetchpriority=low/high/auto> inside the <head>, with respect to the case when
13771 # network.fetchpriority is disabled.
13772 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13773 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13774 - name: network.fetchpriority.adjustments.script-in-head.low
13775 type: int32_t
13776 value: 10
13777 mirror: always
13778 - name: network.fetchpriority.adjustments.script-in-head.high
13779 type: int32_t
13780 value: -10
13781 mirror: always
13782 - name: network.fetchpriority.adjustments.script-in-head.auto
13783 type: int32_t
13784 value: 0
13785 mirror: always
13786
13787 # Adjustments to apply to the internal priority of <script
13788 # fetchpriority=low/high/auto> (other than the scripts handled above) with
13789 # respect to the case when network.fetchpriority is disabled.
13790 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13791 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13792 - name: network.fetchpriority.adjustments.other-script.low
13793 type: int32_t
13794 value: 10
13795 mirror: always
13796 - name: network.fetchpriority.adjustments.other-script.high
13797 type: int32_t
13798 value: -10
13799 mirror: always
13800 - name: network.fetchpriority.adjustments.other-script.auto
13801 type: int32_t
13802 value: 0
13803 mirror: always
13804
13805 # Adjustments to apply to the internal priority of <link rel=preload as=font
13806 # fetchpriority=low/high/auto> with respect to the case when
13807 # network.fetchpriority is disabled.
13808 # - When the flag is disabled, Gecko currently sets priority to HIGH.
13809 # - When the flag is enabled, it respectively maps to LOW/HIGH/HIGH.
13810 - name: network.fetchpriority.adjustments.link-preload-font.low
13811 type: int32_t
13812 value: 20
13813 mirror: always
13814 - name: network.fetchpriority.adjustments.link-preload-font.high
13815 type: int32_t
13816 value: -10
13817 mirror: always
13818 - name: network.fetchpriority.adjustments.link-preload-font.auto
13819 type: int32_t
13820 value: 0
13821 mirror: always
13822
13823 # Adjustments to apply to the internal priority of <link rel=preload as=fetch
13824 # fetchpriority=low/high/auto> with respect to the case when
13825 # network.fetchpriority is disabled.
13826 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13827 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13828 - name: network.fetchpriority.adjustments.link-preload-fetch.low
13829 type: int32_t
13830 value: 10
13831 mirror: always
13832 - name: network.fetchpriority.adjustments.link-preload-fetch.high
13833 type: int32_t
13834 value: -10
13835 mirror: always
13836 - name: network.fetchpriority.adjustments.link-preload-fetch.auto
13837 type: int32_t
13838 value: 0
13839 mirror: always
13840
13841 # Adjustments to apply to the internal priority of deferred style for
13842 # fetchpriority=low/high/auto> with respect to the case when
13843 # network.fetchpriority is disabled.
13844 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13845 # - When the flag is enabled, it respectively maps to LOW/NORMAL/NORMAL.
13846 - name: network.fetchpriority.adjustments.deferred-style.low
13847 type: int32_t
13848 value: 10
13849 mirror: always
13850 - name: network.fetchpriority.adjustments.deferred-style.high
13851 type: int32_t
13852 value: 0
13853 mirror: always
13854 - name: network.fetchpriority.adjustments.deferred-style.auto
13855 type: int32_t
13856 value: 0
13857 mirror: always
13858
13859 # Adjustments to apply to the internal priority of <link rel=preload as=style
13860 # fetchpriority=low/high/auto> with respect to the case when
13861 # network.fetchpriority is disabled.
13862 # - When the flag is disabled, Gecko currently sets priority to HIGHEST.
13863 # - When the flag is enabled, it respectively maps to HIGH/HIGHEST/HIGHEST.
13864 - name: network.fetchpriority.adjustments.link-preload-style.low
13865 type: int32_t
13866 value: 10
13867 mirror: always
13868 - name: network.fetchpriority.adjustments.link-preload-style.high
13869 type: int32_t
13870 value: 0
13871 mirror: always
13872 - name: network.fetchpriority.adjustments.link-preload-style.auto
13873 type: int32_t
13874 value: 0
13875 mirror: always
13876
13877 # Adjustments to apply to the internal priority of other non-deferred
13878 # stylesheet load for fetchpriority=low/high/auto with respect to the case when
13879 # network.fetchpriority is disabled.
13880 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13881 # - When the flag is enabled, it respectively maps to HIGH/HIGHEST/NORMAL.
13882 - name: network.fetchpriority.adjustments.non-deferred-style.low
13883 type: int32_t
13884 value: 0
13885 mirror: always
13886 - name: network.fetchpriority.adjustments.non-deferred-style.high
13887 type: int32_t
13888 value: -20
13889 mirror: always
13890 - name: network.fetchpriority.adjustments.non-deferred-style.auto
13891 type: int32_t
13892 value: 0
13893 mirror: always
13894
13895 # Adjustments to apply to the internal priority of global fetch API
13896 # for fetchpriority=low/high/auto with respect to the case when
13897 # network.fetchpriority is disabled.
13898 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13899 # - When the flag is enabled, it respectively maps to LOW/HIGH/NORMAL.
13900 - name: network.fetchpriority.adjustments.global-fetch-api.low
13901 type: RelaxedAtomicInt32
13902 value: 10
13903 mirror: always
13904 - name: network.fetchpriority.adjustments.global-fetch-api.high
13905 type: RelaxedAtomicInt32
13906 value: -10
13907 mirror: always
13908 - name: network.fetchpriority.adjustments.global-fetch-api.auto
13909 type: RelaxedAtomicInt32
13910 value: 0
13911 mirror: always
13912
13913 # Adjustments to apply to the internal priority of <link rel=preload as=images
13914 # fetchpriority=low/high/auto> and <img fetchpriority=low/high/auto> with
13915 # respect to the case when network.fetchpriority is disabled.
13916 # - When the flag is disabled, Gecko currently sets priority to LOW.
13917 # - When the flag is enabled, it respectively maps to LOW/LOW/HIGH.
13918 # The image code can currently further adjust the priority for image load, see
13919 # imgRequest::BoostPriority and AdjustPriorityForImages.
13920 - name: network.fetchpriority.adjustments.images.low
13921 type: int32_t
13922 value: 10
13923 mirror: always
13924 - name: network.fetchpriority.adjustments.images.high
13925 type: int32_t
13926 value: -20
13927 mirror: always
13928 - name: network.fetchpriority.adjustments.images.auto
13929 type: int32_t
13930 value: 0
13931 mirror: always
13932
13933 # Adjustments to apply to the internal priority of <audio>, <track>, <video>,
13934 # or <link rel=preload as=audio/track/video> with respect to the case when
13935 # network.fetchpriority is disabled.
13936 # - When the flag is disabled, Gecko currently sets priority to NORMAL.
13937 # - When the flag is enabled, it respectively maps to LOW/LOW/HIGH.
13938 - name: network.fetchpriority.adjustments.media.low
13939 type: int32_t
13940 value: 10
13941 mirror: always
13942 - name: network.fetchpriority.adjustments.media.high
13943 type: int32_t
13944 value: 0
13945 mirror: always
13946 - name: network.fetchpriority.adjustments.media.auto
13947 type: int32_t
13948 value: 0
13949 mirror: always
13950
13951 # Enables `<link rel="preconnect">` tag and `Link: rel=preconnect` response header
13952 # handling.
13953 - name: network.preconnect
13954 type: RelaxedAtomicBool
13955 value: true
13956 mirror: always
13957
13958 # Enables `<link rel="modulepreload">` tag and `Link: rel=modulepreload`
13959 # response header handling.
13960 - name: network.modulepreload
13961 type: RelaxedAtomicBool
13962 value: true
13963 mirror: always
13964
13965 # Enable 103 Early Hint status code (RFC 8297)
13966 - name: network.early-hints.enabled
13967 type: RelaxedAtomicBool
13968 value: true
13969 mirror: always
13970
13971 # Enable sending 103 (Early Hints) responses over HTTP/1.1
13972 - name: network.early-hints.over-http-v1-1.enabled
13973 type: RelaxedAtomicBool
13974 value: true
13975 mirror: always
13976
13977 # Enable `Link: rel=preconnect` in 103 Early Hint response.
13978 - name: network.early-hints.preconnect.enabled
13979 type: RelaxedAtomicBool
13980 value: true
13981 mirror: always
13982
13983 # The max number of speculative connections we allow for `Link: rel=preconnect`.
13984 # When 0, the speculative connection created due to `Link: rel=preconnect` will
13985 # be limited by "network.http.speculative-parallel-limit".
13986 - name: network.early-hints.preconnect.max_connections
13987 type: uint32_t
13988 value: 10
13989 mirror: always
13990
13991 # How long we should wait for EarlyHintPreloader to be used.
13992 # Under normal circumstances it should be used immidiately.
13993 - name: network.early-hints.parent-connect-timeout
13994 type: uint32_t
13995 value: 10000
13996 mirror: always
13997
13998 # Whether to use the network process or not
13999 # Start a separate socket process. Performing networking on the socket process
14000 # is control by a sepparate pref
14001 # ("network.http.network_access_on_socket_process.enabled").
14002 # Changing these prefs requires a restart.
14003 - name: network.process.enabled
14004 type: RelaxedAtomicBool
14005 mirror: always
14006 #if defined(ANDROID) || defined(MOZ_THUNDERBIRD) || defined(XP_IOS)
14007 value: false # see bug 1641427
14008 #else
14009 value: true
14010 #endif
14011
14012 # Whether we can send OnDataAvailable to content process directly.
14013 - name: network.send_ODA_to_content_directly
14014 type: RelaxedAtomicBool
14015 value: true
14016 mirror: always
14017
14018 # Whether we can send OnDataFinished to html5parser in content process directly
14019 - name: network.send_OnDataFinished.html5parser
14020 type: RelaxedAtomicBool
14021 value: true
14022 mirror: always
14023
14024 # Whether we can send OnDataFinished in the content process
14025 - name: network.send_OnDataFinished
14026 type: RelaxedAtomicBool
14027 value: true
14028 mirror: always
14029
14030 # Whether we can send OnDataFinished to content process directly.
14031 - name: network.send_OnDataFinished.nsInputStreamPump
14032 type: RelaxedAtomicBool
14033 value: true
14034 mirror: always
14035
14036 # Whether we can send OnDataFinished to cssLoader in content process.
14037 - name: network.send_OnDataFinished.cssLoader
14038 type: RelaxedAtomicBool
14039 value: true
14040 mirror: always
14041
14042 # Whether we can send send OnDataFinished only after dispatching
14043 # all the progress events on the main thread
14044 - name: network.send_OnDataFinished_after_progress_updates
14045 type: RelaxedAtomicBool
14046 value: false
14047 mirror: always
14048
14049 # Perform all network access on the socket process.
14050 # The pref requires "network.process.enabled" to be true.
14051 # Changing these prefs requires a restart.
14052 - name: network.http.network_access_on_socket_process.enabled
14053 type: RelaxedAtomicBool
14054 mirror: always
14055 value: false
14056
14057 # Telemetry of traffic categories. Whether or not to enable HttpTrafficAnalyzer.
14058 - name: network.traffic_analyzer.enabled
14059 type: RelaxedAtomicBool
14060 value: true
14061 mirror: always
14062
14063 # Whether DNS resolution is limited to literals and cached entries.
14064 - name: network.dns.disabled
14065 type: RelaxedAtomicBool
14066 value: false
14067 mirror: always
14068
14069 - name: network.dns.disablePrefetchFromHTTPS
14070 type: bool
14071 value: false
14072 mirror: always
14073
14074 # For testing purpose only: allow dns prefetch through proxies
14075 - name: network.dns.prefetch_via_proxy
14076 type: bool
14077 value: false
14078 mirror: always
14079
14080 # Max time to shutdown the resolver threads
14081 - name: network.dns.resolver_shutdown_timeout_ms
14082 type: uint32_t
14083 value: 2000
14084 mirror: always
14085
14086 # When true on Windows DNS resolutions for single label domains
14087 # (domains that don't contain a dot) will be resolved using the DnsQuery
14088 # API instead of PR_GetAddrInfoByName
14089 - name: network.dns.dns_query_single_label
14090 type: RelaxedAtomicBool
14091 value: false
14092 mirror: always
14093
14094 # Use platform DNS APIs (where available) to resolve HTTPS queries
14095 - name: network.dns.native_https_query
14096 type: RelaxedAtomicBool
14097 #if !defined(XP_MACOSX)
14098 value: true
14099 #else
14100 value: false
14101 #endif
14102 mirror: always
14103
14104 # DnsQuery_A is broken for HTTPS queries on Windows 10.
14105 # Once it gets fixed, we can flip this pref to enable it.
14106 # Changes might not take effect until restart.
14107 - name: network.dns.native_https_query_win10
14108 type: RelaxedAtomicBool
14109 value: false
14110 mirror: always
14111
14112 # When true, the HTTPS query will actually call the native
14113 # platform API. When false it will return before the call
14114 # to the platform API
14115 # This pref is necessary because having a HTTPS record
14116 # could cause channels to connect to a different port,
14117 # which is not desirable in automation.
14118 - name: network.dns.native_https_query_in_automation
14119 type: RelaxedAtomicBool
14120 value: false
14121 mirror: always
14122
14123 # When resolving a native HTTPS query with native APIs
14124 # the Android implementation has a max timeout
14125 - name: network.dns.native_https_timeout_android
14126 type: RelaxedAtomicInt32
14127 value: 20000
14128 mirror: always
14129
14130 # When resolving a native HTTPS query with native APIs
14131 # the MacOS implementation has a max timeout
14132 - name: network.dns.native_https_timeout_mac
14133 type: RelaxedAtomicInt32
14134 value: 5000
14135 mirror: always
14136
14137 # When this pref is true, we copy the host name to a fresh string before
14138 # calling into getaddrinfo.
14139 - name: network.dns.copy_string_before_call
14140 type: RelaxedAtomicBool
14141 value: true
14142 mirror: always
14143
14144 - name: network.dns.max_high_priority_threads
14145 type: RelaxedAtomicUint32
14146 value: 40
14147 mirror: always
14148
14149 - name: network.dns.max_any_priority_threads
14150 type: RelaxedAtomicUint32
14151 value: 24
14152 mirror: always
14153
14154 # This makes it so NS_HTTP_REFRESH_DNS is only
14155 # set on DNS resolutions when LOAD_FRESH_CONNECTION is set.
14156 # That's because we don't need to refresh DNS on
14157 # every page reload.
14158 - name: network.dns.only_refresh_on_fresh_connection
14159 type: RelaxedAtomicBool
14160 value: true
14161 mirror: always
14162
14163 # When true, DNS resolutions will downgrade DNS
14164 # from AF_UNSPEC to AF_INET when no non-local IPv6 addresses are
14165 # available.
14166 - name: network.dns.skip_ipv6_when_no_addresses
14167 type: RelaxedAtomicBool
14168 value: false
14169 mirror: always
14170
14171 # This preference specifies a list of domains for which DNS lookups will be
14172 # IPv4 only. Works around broken DNS servers which can't handle IPv6 lookups
14173 # and/or allows the user to disable IPv6 on a per-domain basis. See bug 68796.
14174 - name: network.dns.ipv4OnlyDomains
14175 type: String
14176 value: ""
14177 mirror: never
14178
14179 # This is the number of dns cache entries allowed
14180 - name: network.dnsCacheEntries
14181 type: RelaxedAtomicUint32
14182 value: 800
14183 mirror: always
14184
14185 # In the absence of OS TTLs, the DNS cache TTL value
14186 - name: network.dnsCacheExpiration
14187 type: RelaxedAtomicUint32
14188 value: 60
14189 mirror: always
14190
14191 # Get TTL; not supported on all platforms; nop on the unsupported ones.
14192 - name: network.dns.get-ttl
14193 type: RelaxedAtomicBool
14194 #if defined(XP_WIN)
14195 value: true
14196 #else
14197 value: false
14198 #endif
14199 mirror: always
14200
14201 # For testing purposes! Makes the native resolver resolve IPv4 "localhost"
14202 # instead of the actual given name.
14203 - name: network.dns.native-is-localhost
14204 type: RelaxedAtomicBool
14205 value: false
14206 mirror: always
14207
14208 # The grace period allows the DNS cache to use expired entries, while kicking off
14209 # a revalidation in the background.
14210 - name: network.dnsCacheExpirationGracePeriod
14211 type: RelaxedAtomicUint32
14212 value: 60
14213 mirror: always
14214
14215 # This preference can be used to turn off DNS prefetch.
14216 - name: network.dns.disablePrefetch
14217 type: RelaxedAtomicBool
14218 value: false
14219 mirror: always
14220
14221 # This preference controls whether .onion hostnames are
14222 # rejected before being given to DNS. RFC 7686
14223 - name: network.dns.blockDotOnion
14224 type: RelaxedAtomicBool
14225 value: true
14226 mirror: always
14227
14228 # These domains are treated as localhost equivalent
14229 - name: network.dns.localDomains
14230 type: String
14231 value: ""
14232 mirror: never
14233
14234 # When non empty all non-localhost DNS queries (including IP addresses)
14235 # resolve to this value. The value can be a name or an IP address.
14236 # domains mapped to localhost with localDomains stay localhost.
14237 - name: network.dns.forceResolve
14238 type: String
14239 value: ""
14240 mirror: never
14241
14242 # Contols whether or not "localhost" should resolve when offline
14243 - name: network.dns.offline-localhost
14244 type: RelaxedAtomicBool
14245 value: true
14246 mirror: always
14247
14248 # Defines how much longer resolver threads should stay idle before are shut down.
14249 # A negative value will keep the thread alive forever.
14250 - name: network.dns.resolver-thread-extra-idle-time-seconds
14251 type: RelaxedAtomicInt32
14252 value: 60
14253 mirror: always
14254
14255 # When true, the DNS code will always set the AI_CANONNAME
14256 # when calling getaddrinfo
14257 - name: network.dns.always_ai_canonname
14258 type: RelaxedAtomicBool
14259 value: true
14260 mirror: always
14261
14262 # The proxy type. See nsIProtocolProxyService.idl
14263 # PROXYCONFIG_DIRECT = 0
14264 # PROXYCONFIG_MANUAL = 1
14265 # PROXYCONFIG_PAC = 2
14266 # PROXYCONFIG_WPAD = 4
14267 # PROXYCONFIG_SYSTEM = 5
14268 - name: network.proxy.type
14269 type: RelaxedAtomicUint32
14270 value: 5
14271 mirror: always
14272
14273 # Whether to use WPAD while configuring proxy with system settings
14274 - name: network.proxy.system_wpad
14275 type: bool
14276 value: false
14277 mirror: always
14278
14279 # Whether to allow the use of WPAD while configuring proxy with system settings
14280 - name: network.proxy.system_wpad.allowed
14281 type: bool
14282 value: false
14283 mirror: always
14284
14285 # Whether the SOCKS5 proxy should be in charge of DNS resolution. Making it a
14286 # SOCKS5h proxy by convention
14287 - name: network.proxy.socks5_remote_dns
14288 type: RelaxedAtomicBool
14289 value: true
14290 mirror: always
14291
14292 # Whether the SOCKS4 proxy should be in charge of DNS resolution. Making it a
14293 # SOCKS4a proxy.
14294 - name: network.proxy.socks_remote_dns
14295 type: RelaxedAtomicBool
14296 value: false
14297 mirror: always
14298
14299 # When receiving a network change event, the time (in ms) we wait to reload the
14300 # PAC url.
14301 - name: network.proxy.reload_pac_delay
14302 type: RelaxedAtomicUint32
14303 value: 2000
14304 mirror: always
14305
14306 # When parsing "SOCKS" in PAC string, the default version of SOCKS that will be
14307 # used.
14308 - name: network.proxy.default_pac_script_socks_version
14309 type: RelaxedAtomicUint32
14310 value: 4
14311 mirror: always
14312
14313 # Whether to force failover to direct for system requests.
14314 #ifdef MOZ_PROXY_DIRECT_FAILOVER
14315 - name: network.proxy.failover_direct
14316 type: bool
14317 value: true
14318 mirror: always
14319 #endif
14320
14321 # Whether to allow a bypass flag to be set on httpChannel that will
14322 # prevent proxies from being used for that specific request.
14323 - name: network.proxy.allow_bypass
14324 type: bool
14325 #ifdef MOZ_PROXY_BYPASS_PROTECTION
14326 value: false
14327 #else
14328 value: true
14329 #endif
14330 mirror: always
14331
14332 - name: network.proxy.parse_pac_on_socket_process
14333 type: RelaxedAtomicBool
14334 value: false
14335 mirror: always
14336
14337 - name: network.proxy.detect_system_proxy_changes
14338 type: RelaxedAtomicBool
14339 value: false
14340 mirror: always
14341
14342 # If all non-direct proxies have failed, we retry all of them in case they
14343 # are online now.
14344 - name: network.proxy.retry_failed_proxies
14345 type: RelaxedAtomicBool
14346 value: true
14347 mirror: always
14348
14349 # Some requests during a page load are marked as "tail", mainly trackers, but not only.
14350 # This pref controls whether such requests are put to the tail, behind other requests
14351 # emerging during page loading process.
14352 - name: network.http.tailing.enabled
14353 type: bool
14354 value: true
14355 mirror: always
14356
14357 # Priority urgency of tailed request. Default to 6, which is a very low priority
14358 - name: network.http.tailing.urgency
14359 type: RelaxedAtomicUint32
14360 value: 6
14361 mirror: always
14362
14363 # Tailing: When the page load has not yet reached DOMContentLoaded point, tail requestes are delayed
14364 # by (non-tailed requests count + 1) * delay-quantum milliseconds.
14365 - name: network.http.tailing.delay-quantum
14366 type: int32_t
14367 value: 600
14368 mirror: always
14369
14370 # Tailing: The same as above, but applied after the document load reached DOMContentLoaded event.
14371 - name: network.http.tailing.delay-quantum-after-domcontentloaded
14372 type: int32_t
14373 value: 100
14374 mirror: always
14375
14376 # Tailing: Upper limit for the calculated delay, prevents long standing and comet-like requests tail forever. This is in milliseconds as well.
14377 - name: network.http.tailing.delay-max
14378 type: int32_t
14379 value: 6000
14380 mirror: always
14381
14382 # Tailing: Total limit we delay tailed requests since a page load beginning.
14383 - name: network.http.tailing.total-max
14384 type: int32_t
14385 value: 45000
14386 mirror: always
14387
14388 # When true, the default Accept request header will include the supported mime
14389 # types for images.
14390 - name: network.http.accept_include_images
14391 type: RelaxedAtomicBool
14392 value: false
14393 mirror: always
14394
14395 # Whether to run proxy checks when processing Alt-Svc headers.
14396 - name: network.http.altsvc.proxy_checks
14397 type: bool
14398 value: true
14399 mirror: always
14400
14401 - name: network.http.stale_while_revalidate.enabled
14402 type: RelaxedAtomicBool
14403 value: true
14404 mirror: always
14405
14406 # Capacity of the above cache, in kilobytes.
14407 - name: network.ssl_tokens_cache_capacity
14408 type: RelaxedAtomicUint32
14409 value: 2048
14410 mirror: always
14411
14412 # How many records we store per entry
14413 - name: network.ssl_tokens_cache_records_per_entry
14414 type: RelaxedAtomicUint32
14415 value: 2
14416 mirror: always
14417
14418 # The maximum allowed length for a URL - 1MB default.
14419 - name: network.standard-url.max-length
14420 type: RelaxedAtomicUint32
14421 value: 1048576
14422 mirror: always
14423
14424 # If true, use the HSTS preload list.
14425 - name: network.stricttransportsecurity.preloadlist
14426 type: RelaxedAtomicBool
14427 value: true
14428 mirror: always
14429
14430 # DNS Trusted Recursive Resolver
14431 # 0 - default off, 1 - reserved/off, 2 - TRR first, 3 - TRR only,
14432 # 4 - reserved/off, 5 off by choice
14433 - name: network.trr.mode
14434 type: RelaxedAtomicUint32
14435 value: 0
14436 mirror: always
14437
14438 # Default global TRR provider
14439 - name: network.trr.default_provider_uri
14440 type: String
14441 value: "https://mozilla.cloudflare-dns.com/dns-query"
14442 mirror: never
14443
14444 # If true, retry TRR for recoverable errors once.
14445 - name: network.trr.retry_on_recoverable_errors
14446 type: RelaxedAtomicBool
14447 value: true
14448 mirror: always
14449
14450 # If true, don't fallback to native DNS upon network errors.
14451 - name: network.trr.strict_native_fallback
14452 type: RelaxedAtomicBool
14453 value: false
14454 mirror: always
14455
14456 # If true, we'll fallback to native if the retry also times out.
14457 - name: network.trr.strict_native_fallback_allow_timeouts
14458 type: RelaxedAtomicBool
14459 value: true
14460 mirror: always
14461
14462 # Single TRR request timeout (ms) when strict native fallback is enabled.
14463 - name: network.trr.strict_fallback_request_timeout_ms
14464 type: RelaxedAtomicUint32
14465 value: 6000
14466 mirror: always
14467
14468 # If false, the temporary blocklisting feature is disabled.
14469 # This is useful for tests to prevent bleeding extra reqs
14470 # between tasks, since we may attempt to look up the
14471 # parent domain in the background when blocklisting a host.
14472 - name: network.trr.temp_blocklist
14473 type: RelaxedAtomicBool
14474 value: true
14475 mirror: always
14476
14477 # TRR blocklist entry expire time (in seconds). Default is one minute.
14478 # Meant to survive basically a page load.
14479 - name: network.trr.temp_blocklist_duration_sec
14480 type: RelaxedAtomicUint32
14481 value: 60
14482 mirror: always
14483
14484 # Single TRR request timeout, in milliseconds
14485 - name: network.trr.request_timeout_ms
14486 type: RelaxedAtomicUint32
14487 value: 1500
14488 mirror: always
14489
14490 # Single TRR request timeout, in milliseconds for mode 3
14491 - name: network.trr.request_timeout_mode_trronly_ms
14492 type: RelaxedAtomicUint32
14493 value: 30000
14494 mirror: always
14495
14496 # Similar to network.http.http2.ping-timeout, but this is used when the
14497 # Http/2 connection is connected to the TRR server.
14498 - name: network.trr.ping_timeout
14499 type: RelaxedAtomicUint32
14500 value: 3000
14501 mirror: always
14502
14503 # The timeout of the TRR confirmation request
14504 - name: network.trr.confirmation_timeout_ms
14505 type: RelaxedAtomicUint32
14506 value: 6000
14507 mirror: always
14508
14509 # The timeout of the TRR confirmation request
14510 - name: network.trr.confirmation_telemetry_enabled
14511 type: RelaxedAtomicBool
14512 value: true
14513 mirror: always
14514
14515 # Whether to send the Accept-Language header for TRR requests
14516 - name: network.trr.send_accept-language_headers
14517 type: RelaxedAtomicBool
14518 value: false
14519 mirror: always
14520
14521 # Whether to send an empty Accept-Encoding header for TRR requests
14522 - name: network.trr.send_empty_accept-encoding_headers
14523 type: RelaxedAtomicBool
14524 value: true
14525 mirror: always
14526
14527 # Whether to send the User-Agent header for TRR requests
14528 - name: network.trr.send_user-agent_headers
14529 type: RelaxedAtomicBool
14530 value: false
14531 mirror: always
14532
14533 # If we should wait for captive portal confirmation before enabling TRR
14534 - name: network.trr.wait-for-portal
14535 type: RelaxedAtomicBool
14536 value: false
14537 mirror: always
14538
14539 # If we should wait for TRR service confirmation to complete before enabling
14540 # TRR for lookups when fallback is enabled. Confirmation is always skipped when
14541 # global mode is TRR-only (no fallback).
14542 - name: network.trr.wait-for-confirmation
14543 type: RelaxedAtomicBool
14544 value: false
14545 mirror: always
14546
14547 # Normally when confirmation fails we wait for the confirmation to succeed
14548 # before attempting to do TRR. When this pref is true, we optimistically
14549 # assume the confirmation will succeed and might attempt TRR anyway.
14550 # If network.trr.wait-for-confirmation is true, this pref is ignored.
14551 - name: network.trr.attempt-when-retrying-confirmation
14552 type: RelaxedAtomicBool
14553 value: false
14554 mirror: always
14555
14556 # Use GET (rather than POST)
14557 - name: network.trr.useGET
14558 type: RelaxedAtomicBool
14559 value: false
14560 mirror: always
14561
14562 # Allow RFC1918 address in responses?
14563 - name: network.trr.allow-rfc1918
14564 type: RelaxedAtomicBool
14565 value: false
14566 mirror: always
14567
14568 # When true, it only sends AAAA when the system has IPv6 connectivity
14569 - name: network.trr.skip-AAAA-when-not-supported
14570 type: RelaxedAtomicBool
14571 value: true
14572 mirror: always
14573
14574 # Whether to apply split horizon mitigations when using TRR.
14575 # These include adding the DNS suffix to the excluded domains
14576 - name: network.trr.split_horizon_mitigations
14577 type: RelaxedAtomicBool
14578 value: true
14579 mirror: always
14580
14581 # Explicitly disable ECS (EDNS Client Subnet, RFC 7871)
14582 - name: network.trr.disable-ECS
14583 type: RelaxedAtomicBool
14584 value: true
14585 mirror: always
14586
14587 # When true, the DNS+TRR cache will be cleared when a relevant TRR pref
14588 # changes. (uri, bootstrapAddress, excluded-domains)
14589 - name: network.trr.clear-cache-on-pref-change
14590 type: RelaxedAtomicBool
14591 value: true
14592 mirror: always
14593
14594 # After this many failed TRR requests in a row, consider TRR borked
14595 - name: network.trr.max-fails
14596 type: RelaxedAtomicUint32
14597 value: 15
14598 mirror: always
14599
14600 # When the TRR confirmation is set to CONFIRM_FAILED due to many failures in
14601 # a row, we set a timer to retry. This has an exponential backoff up to
14602 # network.trr.max-retry-timeout-ms (64 seconds by default)
14603 - name: network.trr.retry-timeout-ms
14604 type: RelaxedAtomicUint32
14605 value: 125
14606 mirror: always
14607
14608 - name: network.trr.max-retry-timeout-ms
14609 type: RelaxedAtomicUint32
14610 value: 64000
14611 mirror: always
14612
14613 # Retry with no TRR when the response contained only 0.0.0.0 or ::
14614 - name: network.trr.fallback-on-zero-response
14615 type: RelaxedAtomicBool
14616 value: false
14617 mirror: always
14618
14619 # If true we parse the /etc/hosts file and exclude any host names from TRR.
14620 # Reading the file is only done once, when TRR is first enabled - this could be
14621 # soon after startup or when the pref is flipped.
14622 - name: network.trr.exclude-etc-hosts
14623 type: RelaxedAtomicBool
14624 value: true
14625 mirror: always
14626
14627 # Whether to add padding in the doh dns queries (rfc 7830)
14628 - name: network.trr.padding
14629 type: RelaxedAtomicBool
14630 value: true
14631 mirror: always
14632
14633 # The block size to pad to. Capped at 1024 bytes.
14634 # Setting it to 0 doesn't add additional padding, but allows the server to
14635 # respond with padding (RFC7930 Sec 4)
14636 - name: network.trr.padding.length
14637 type: RelaxedAtomicUint32
14638 value: 128
14639 mirror: always
14640
14641 # Whether to skip the NS check for the blocked host.
14642 # Note this is used for test only.
14643 - name: network.trr.skip-check-for-blocked-host
14644 type: RelaxedAtomicBool
14645 value: false
14646 mirror: always
14647
14648 # Whether to use the connection info that is generated asynchronously.
14649 - name: network.trr.async_connInfo
14650 type: RelaxedAtomicBool
14651 value: false
14652 mirror: always
14653
14654 # If true, a failed TRR request that contains an extended DNS error
14655 # matching the hardFail condition in DNSPacket.cpp will not be
14656 # retried with native DNS
14657 - name: network.trr.hard_fail_on_extended_error
14658 type: RelaxedAtomicBool
14659 value: true
14660 mirror: always
14661
14662 # The base URL of the `Learn more` button for skip reasons
14663 - name: network.trr_ui.skip_reason_learn_more_url
14664 type: String
14665 value: "https://firefox-source-docs.mozilla.org/networking/dns/trr-skip-reasons.html#"
14666 mirror: never
14667
14668 # Use Oblivious HTTP when making TRR requests.
14669 - name: network.trr.use_ohttp
14670 type: RelaxedAtomicBool
14671 value: false
14672 mirror: always
14673
14674 # Oblivious HTTP relay URI for TRR requests.
14675 - name: network.trr.ohttp.relay_uri
14676 type: String
14677 value: ""
14678 mirror: never
14679
14680 # URI from which to fetch the configuration for the Oblivious HTTP gateway for TRR requests.
14681 - name: network.trr.ohttp.config_uri
14682 type: String
14683 value: ""
14684 mirror: never
14685
14686 # The URI used for the target DoH server when network.trr.use_ohttp is true
14687 - name: network.trr.ohttp.uri
14688 type: String
14689 value: ""
14690 mirror: never
14691
14692 # The idle timeout for the HTTP/3 connection that is used for DoH
14693 - name: network.trr.idle_timeout_for_http3_conn
14694 type: RelaxedAtomicUint32
14695 #ifdef EARLY_BETA_OR_EARLIER
14696 value: 400
14697 #else
14698 value: 30
14699 #endif
14700 mirror: always
14701
14702 # When this pref is true, GeckoViewStartup.sys.mjs will initialize the DoHController
14703 # and Fenix will automatically select the TRR provider when the browser is in
14704 # "Default protection" mode (ie network.trr.mode is 0).
14705 # The selected provider depends on remote settings and the user's region.
14706 # If a rollout hasn't started in the user's region, then Fenix will continue using
14707 # the system DNS settings.
14708 - name: network.android_doh.autoselect_enabled
14709 type: RelaxedAtomicBool
14710 value: false
14711 mirror: always
14712
14713 # Allow the network changed event to get sent when a network topology or setup
14714 # change is noticed while running.
14715 - name: network.notify.changed
14716 type: RelaxedAtomicBool
14717 value: true
14718 mirror: always
14719
14720 # Allow network detection of IPv6 related changes (bug 1245059)
14721 - name: network.notify.IPv6
14722 type: RelaxedAtomicBool
14723 #ifdef XP_WIN
14724 value: false
14725 #else
14726 value: true
14727 #endif
14728 mirror: always
14729
14730 # Whether to check the dnsSuffix on network changes
14731 - name: network.notify.dnsSuffixList
14732 type: RelaxedAtomicBool
14733 value: true
14734 mirror: always
14735
14736 # Whether to check the registry for proxies on network changes that indicate
14737 # that TRR should not be used.
14738 - name: network.notify.checkForProxies
14739 type: RelaxedAtomicBool
14740 value: true
14741 mirror: always
14742
14743 # Whether to check the registry for NRPT rules on network changes that
14744 # indicate that TRR should not be used.
14745 - name: network.notify.checkForNRPT
14746 type: RelaxedAtomicBool
14747 value: true
14748 mirror: always
14749
14750 # Whether NotifyIpInterfaceChange should be called immediately after
14751 # registration in order to record the initial state of the network adapters.
14752 - name: network.notify.initial_call
14753 type: RelaxedAtomicBool
14754 value: true
14755 mirror: always
14756
14757 # Whether to check for DNS resolvers
14758 - name: network.notify.resolvers
14759 type: RelaxedAtomicBool
14760 value: true
14761 mirror: always
14762
14763 # Whether to use the rust implemented DefaultURI for unknown scheme types
14764 - name: network.url.useDefaultURI
14765 type: RelaxedAtomicBool
14766 value: true
14767 mirror: always
14768
14769 # Allows use of a protocol exception list that will bypass defaultURI parser
14770 - name: network.url.simple_uri_unknown_schemes_enabled
14771 type: RelaxedAtomicBool
14772 value: true
14773 mirror: always
14774
14775 # A list of schemes to allow for bypassing defaultURI as default
14776 # This is only used when network.url.simple_uri_unknown_schemes_enabled is true
14777 - name: network.url.simple_uri_unknown_schemes
14778 type: String
14779 value: ""
14780 mirror: never
14781
14782 # The maximum allowed length for a URL - 512MB default.
14783 # If 0 that means no limit.
14784 - name: network.url.max-length
14785 type: RelaxedAtomicUint32
14786 value: 512 * 1024 * 1024
14787 mirror: always
14788
14789 # When true, if all the cyrillic characters in a label
14790 # are latin confusables and on a non-cyrillic domain
14791 # the label will be displayed as punycode.
14792 - name: network.idn.punycode_cyrillic_confusables
14793 type: RelaxedAtomicBool
14794 value: true
14795 mirror: always
14796
14797 # Force remapping of remote port numbers to allow reaching local testing
14798 # servers or port forwarders listening on non-standard ports. Note that
14799 # this is not changing the origin URL in the addressbar, only internally
14800 # the port number used. This is intended to be used along with the
14801 # `network.dns.forceResolve` preference.
14802 #
14803 # The form is:
14804 # "80,443,808-888=8080; 563=8081"
14805 # this will remap ports for HTTP, HTTPS and the range of 808-888 included
14806 # to use port 8080, and port 563 to go to 8081.
14807 - name: network.socket.forcePort
14808 type: String
14809 value: ""
14810 mirror: never
14811
14812 # Try and use HTTP2 when using SSL
14813 - name: network.http.http2.enabled
14814 type: RelaxedAtomicBool
14815 value: true
14816 mirror: always
14817
14818 - name: network.http.http2.enabled.deps
14819 type: RelaxedAtomicBool
14820 value: false
14821 mirror: always
14822
14823 # When true, Firefox will send Extensivle prioritization scheme
14824 # PRIORITY_UPDATE frames.
14825 - name: network.http.http2.priority_updates
14826 type: RelaxedAtomicBool
14827 value: false
14828 mirror: always
14829
14830 # This pref controls whether to send the
14831 # SETTINGS_NO_RFC7540_PRIORITIES when stream dependencies
14832 # are disabled, and extensible prioritization scheme is in use.
14833 # defaults to false as some servers panic when they see this (bug 1928600)
14834 - name: network.http.http2.send_NO_RFC7540_PRI
14835 type: RelaxedAtomicBool
14836 value: false
14837 mirror: always
14838
14839 # This pref controls whether to send PRIORITY_UPDATE
14840 # frames for pushed streams.
14841 - name: network.http.http2.push_priority_update
14842 type: RelaxedAtomicBool
14843 value: false
14844 mirror: always
14845
14846 - name: network.http.http2.enforce-tls-profile
14847 type: RelaxedAtomicBool
14848 value: true
14849 mirror: always
14850
14851 - name: network.http.http2.chunk-size
14852 type: RelaxedAtomicInt32
14853 value: 16000
14854 mirror: always
14855
14856 - name: network.http.http2.timeout
14857 type: RelaxedAtomicInt32
14858 value: 170
14859 mirror: always
14860
14861 - name: network.http.http2.coalesce-hostnames
14862 type: RelaxedAtomicBool
14863 value: true
14864 mirror: always
14865
14866 # When true, origin A and origin B will be coalesced if they have an overlap
14867 # in IP addresses as advertized by DNS, regardless if the existing connection
14868 # to origin A is not to an IP present in B's DNS response.
14869 # When false, an existing connection will only be reused if the
14870 # connection's remote IP is also present in B's DNS response.
14871 - name: network.http.http2.aggressive_coalescing
14872 type: RelaxedAtomicBool
14873 value: false
14874 mirror: always
14875
14876 - name: network.http.http2.ping-threshold
14877 type: RelaxedAtomicInt32
14878 value: 58
14879 mirror: always
14880
14881 - name: network.http.http2.ping-timeout
14882 type: RelaxedAtomicInt32
14883 value: 8
14884 mirror: always
14885
14886 - name: network.http.http2.send-buffer-size
14887 type: RelaxedAtomicInt32
14888 value: 0
14889 mirror: always
14890
14891 # When true, Firefox will send a SETTINGS_MAX_CONCURRENT_STREAMS
14892 # parameter when push is disabled. Chrome doesn't send this,
14893 # so some servers misbehave when we do. See Bug 1919750.
14894 - name: network.http.http2.send-push-max-concurrent-frame
14895 type: RelaxedAtomicBool
14896 value: false
14897 mirror: always
14898
14899 - name: network.http.http2.push-allowance
14900 type: RelaxedAtomicInt32
14901 value: 131072 # 128KB
14902 mirror: always
14903
14904 - name: network.http.http2.pull-allowance
14905 type: RelaxedAtomicInt32
14906 value: 12582912 # 12MB
14907 mirror: always
14908
14909 - name: network.http.http2.default-concurrent
14910 type: RelaxedAtomicInt32
14911 value: 100
14912 mirror: always
14913
14914 - name: network.http.http2.default-hpack-buffer
14915 type: RelaxedAtomicInt32
14916 value: 65536 # 64K
14917 mirror: always
14918
14919 - name: network.http.http2.websockets
14920 type: RelaxedAtomicBool
14921 value: true
14922 mirror: always
14923
14924 - name: network.http.http2.enable-hpack-dump
14925 type: RelaxedAtomicBool
14926 value: false
14927 mirror: always
14928
14929 - name: network.http.move_to_pending_list_after_network_change
14930 type: RelaxedAtomicBool
14931 value: true
14932 mirror: always
14933
14934 # Enable HTTP/3
14935 - name: network.http.http3.enable
14936 type: RelaxedAtomicBool
14937 value: true
14938 mirror: always
14939
14940 # Receive buffer size of QUIC socket
14941 - name: network.http.http3.recvBufferSize
14942 type: RelaxedAtomicInt32
14943 value: 1048576
14944 mirror: always
14945
14946 # Use NSPR for HTTP3 UDP IO
14947 - name: network.http.http3.use_nspr_for_io
14948 type: RelaxedAtomicBool
14949 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
14950 mirror: always
14951 rust: true
14952
14953 # Set IP ECN marks on HTTP3/QUIC UDP datagrams. Noop if
14954 # network.http.http3.use_nspr_for_io is true.
14955 - name: network.http.http3.ecn_mark
14956 type: RelaxedAtomicBool
14957 value: @IS_EARLY_BETA_OR_EARLIER@
14958 mirror: always
14959 rust: true
14960
14961 # Report IP ECN marks from HTTP3/QUIC UDP datagrams via QUIC ACKs back to the
14962 # sender. Noop if network.http.http3.use_nspr_for_io is true.
14963 - name: network.http.http3.ecn_report
14964 type: RelaxedAtomicBool
14965 value: true
14966 mirror: always
14967 rust: true
14968
14969 # Poll UDP socket via PR_POLL_WRITE on WOULD_BLOCK. Noop if
14970 # network.http.http3.use_nspr_for_io is true.
14971 #
14972 # See <https://phabricator.services.mozilla.com/D239162> for details.
14973 - name: network.http.http3.pr_poll_write
14974 type: RelaxedAtomicBool
14975 value: true
14976 mirror: always
14977 rust: true
14978
14979 - name: network.http.http3.enable_qlog
14980 type: RelaxedAtomicBool
14981 value: false
14982 mirror: always
14983
14984 - name: network.http.http3.enable_0rtt
14985 type: RelaxedAtomicBool
14986 value: true
14987 mirror: always
14988
14989 # When a h3 transaction is inserted in the pending queue, the time (ms) we wait
14990 # to create a TCP backup connection.
14991 - name: network.http.http3.backup_timer_delay
14992 type: RelaxedAtomicUint32
14993 value: 100
14994 mirror: always
14995
14996 # The global half open sockets allowed for creating a backup connection.
14997 - name: network.http.http3.parallel_fallback_conn_limit
14998 type: RelaxedAtomicUint32
14999 value: 32
15000 mirror: always
15001
15002 # Connection-level flow control limit
15003 - name: network.http.http3.max_data
15004 type: RelaxedAtomicUint32
15005 value: 25165824
15006 mirror: always
15007
15008 # Stream-level flow control limit
15009 - name: network.http.http3.max_stream_data
15010 type: RelaxedAtomicUint32
15011 value: 12582912
15012 mirror: always
15013
15014 # Enable http3 network priority as described in
15015 # <https://www.rfc-editor.org/rfc/rfc9218.html>.
15016 - name: network.http.http3.priority
15017 type: RelaxedAtomicBool
15018 value: true
15019 mirror: always
15020
15021 # Depriorizing background tabs notifies websites when switching to or from the
15022 # tab while still loading resources for the website. On one hand it might
15023 # improve performance when switching to an tab with a website using the same
15024 # QUIC connection. On the other hand it sends more data to the website and
15025 # might be a privacy concern.
15026 - name: network.http.http3.send_background_tabs_deprioritization
15027 type: RelaxedAtomicBool
15028 value: false
15029 mirror: always
15030
15031 - name: network.http.http3.version_negotiation.enabled
15032 type: RelaxedAtomicBool
15033 value: false
15034 mirror: always
15035
15036 # When a Http/3 connection failed, whether to retry with a different IP address.
15037 - name: network.http.http3.retry_different_ip_family
15038 type: RelaxedAtomicBool
15039 value: @IS_EARLY_BETA_OR_EARLIER@
15040 mirror: always
15041
15042 # This is for testing purpose. When true, nsUDPSocket::SendWithAddress and
15043 # neqo_http3conn_process_output_and_send will return NS_ERROR_CONNECTION_REFUSED
15044 # for address "::1".
15045 - name: network.http.http3.block_loopback_ipv6_addr
15046 type: RelaxedAtomicBool
15047 value: false
15048 mirror: always
15049 rust: true
15050
15051 # The congestion control algorithm with which to configure neqo.
15052 # 0 => NewReno
15053 # 1 => Cubic
15054 - name: network.http.http3.cc_algorithm
15055 type: RelaxedAtomicUint32
15056 value: 1
15057 mirror: always
15058 rust: true
15059
15060 # Whether to send an mlkem768x25519 key share in HTTP/3 TLS handshakes.
15061 # Has no effect unless security.tls.enable_kyber is true.
15062 - name: network.http.http3.enable_kyber
15063 type: RelaxedAtomicBool
15064 #ifdef ANDROID
15065 value: @IS_NIGHTLY_BUILD@
15066 #else
15067 value: true
15068 #endif
15069 mirror: always
15070 rust: true
15071
15072 # When true, HTTP/3 will be disabled when third party roots are found.
15073 - name: network.http.http3.disable_when_third_party_roots_found
15074 type: RelaxedAtomicBool
15075 value: true
15076 mirror: always
15077
15078 # Only used for testing purposes. In automation, this value is used to override
15079 # the result of third party roots check.
15080 - name: network.http.http3.has_third_party_roots_found_in_automation
15081 type: RelaxedAtomicBool
15082 value: false
15083 mirror: always
15084
15085 # When network.http.http3.alt-svc-mapping-for-testing is set, only use
15086 # HTTP/3 to connect.
15087 - name: network.http.http3.force-use-alt-svc-mapping-for-testing
15088 type: RelaxedAtomicBool
15089 value: false
15090 mirror: always
15091
15092 # When network.http.http3.sni-slicing is set, TLS SNI slicing is enabled.
15093 - name: network.http.http3.sni-slicing
15094 type: RelaxedAtomicBool
15095 value: true
15096 mirror: always
15097 rust: true
15098
15099 # When true, skip alt-svc validation when the connection is made using HTTPS RR.
15100 - name: network.http.skip_alt_svc_validation_on_https_rr
15101 type: RelaxedAtomicBool
15102 value: true
15103 mirror: always
15104
15105 # The idle timeout used for HTTP/3 connection.
15106 - name: network.http.http3.idle_timeout
15107 type: RelaxedAtomicUint32
15108 value: 30
15109 mirror: always
15110
15111 # When true, a http request will be upgraded to https when HTTPS RR is
15112 # available.
15113 - name: network.dns.upgrade_with_https_rr
15114 type: RelaxedAtomicBool
15115 value: true
15116 mirror: always
15117
15118 # Whether to use HTTPS RR as AltSvc
15119 - name: network.dns.use_https_rr_as_altsvc
15120 type: RelaxedAtomicBool
15121 value: true
15122 mirror: always
15123
15124 # Whether to check for NAT64 using the system resolver
15125 - name: network.connectivity-service.nat64-check
15126 type: bool
15127 value: true
15128 mirror: always
15129
15130 # Manually enter the NAT64 prefix that will be used if IPv4 is unavailable.
15131 # The value is formatted as IPv6 with the least significant bits to be dropped.
15132 # For example, 64:ff9b:: is a common prefix. This will not disable
15133 # the NAT64 check, although the value of this pref will be prioritized.
15134 - name: network.connectivity-service.nat64-prefix
15135 type: String
15136 value: ""
15137 mirror: never
15138
15139 # Whether to wait for idle-startup notification before performing connectivity checks
15140 - name: network.connectivity-service.wait_for_idle_startup
15141 type: RelaxedAtomicBool
15142 value: true
15143 mirror: always
15144
15145 # Whether to enable echconfig.
15146 - name: network.dns.echconfig.enabled
15147 type: RelaxedAtomicBool
15148 value: true
15149 mirror: always
15150
15151 # Whether to enable echconfig for http3.
15152 - name: network.dns.http3_echconfig.enabled
15153 type: RelaxedAtomicBool
15154 value: true
15155 mirror: always
15156
15157 # This pref needs to be worked together with network.dns.echconfig.enabled
15158 # being true and there is no record without ECHConfig.
15159 # When we try all records with ECHConfig in HTTPS RRs and still can't connect,
15160 # this pref indicate whether we can fallback to the origin server.
15161 - name: network.dns.echconfig.fallback_to_origin_when_all_failed
15162 type: RelaxedAtomicBool
15163 value: false
15164 mirror: always
15165
15166 # When true, reset the exclusion list when all records are excluded.
15167 - name: network.dns.httpssvc.reset_exclustion_list
15168 type: RelaxedAtomicBool
15169 value: true
15170 mirror: always
15171
15172 # If the http3 connection cannot be ready after the timeout value here, the
15173 # transaction will start another non-http3 conneciton.
15174 # Setting this value to 0 indicates this feature is disabled.
15175 - name: network.dns.httpssvc.http3_fast_fallback_timeout
15176 type: RelaxedAtomicUint32
15177 value: 50
15178 mirror: always
15179
15180 # The TTL for negative responses of TXT and HTTPS records.
15181 - name: network.dns.negative_ttl_for_type_record
15182 type: RelaxedAtomicUint32
15183 value: 300 # 5 minutes (in seconds)
15184 mirror: always
15185
15186 # Whether to use port prefixed QNAME for HTTPS RR
15187 - name: network.dns.port_prefixed_qname_https_rr
15188 type: RelaxedAtomicBool
15189 value: true
15190 mirror: always
15191
15192 # Whether to use HTTPS RR and ignore NS_HTTP_DISALLOW_HTTPS_RR
15193 # This pref is only set when running tests
15194 - name: network.dns.force_use_https_rr
15195 type: RelaxedAtomicBool
15196 value: false
15197 mirror: always
15198
15199 # When true, we check if the cname is the same as the target name of the record.
15200 # If not, the record will not be used.
15201 - name: network.dns.https_rr.check_record_with_cname
15202 type: RelaxedAtomicBool
15203 value: true
15204 mirror: always
15205
15206 # This preference can be used to turn off IPv6 name lookups. See bug 68796.
15207 - name: network.dns.disableIPv6
15208 type: RelaxedAtomicBool
15209 value: false
15210 mirror: always
15211
15212 # Whether to prefer IPv6 name lookups.
15213 - name: network.dns.preferIPv6
15214 type: RelaxedAtomicBool
15215 value: false
15216 mirror: always
15217
15218 # Only used for testing
15219 - name: network.dns.mock_HTTPS_RR_domain
15220 type: String
15221 value: ""
15222 mirror: never
15223
15224 # Whether to add additional record IPs to the cache
15225 - name: network.trr.add_additional_records
15226 type: RelaxedAtomicBool
15227 value: false
15228 mirror: always
15229
15230 # When this pref is true, AddStorageEntry will return an error if the
15231 # OPEN_READONLY & OPEN_SECRETLY flags are passed and no entry exists.
15232 # If no regressions occur this pref should be removed.
15233 - name: network.cache.bug1708673
15234 type: RelaxedAtomicBool
15235 value: false
15236 mirror: always
15237
15238 # How much progress we want to do minimum when purging under pressure.
15239 # On disk, we may see blocking I/O, so for now we keep 0 here.
15240 - name: network.cache.purge_minprogress_disk
15241 type: RelaxedAtomicUint32
15242 value: 0
15243 mirror: always
15244
15245 # How much progress we want to do minimum when purging under pressure.
15246 # In memory, purging is cheap and memory is precious.
15247 - name: network.cache.purge_minprogress_memory
15248 type: RelaxedAtomicUint32
15249 value: 32
15250 mirror: always
15251
15252 # When true we will dispatch a background task (separate process) to
15253 # delete the cache folder at shutdown in order to avoid shutdown hangs.
15254 - name: network.cache.shutdown_purge_in_background_task
15255 type: RelaxedAtomicBool
15256 #if defined(XP_WIN)
15257 value: true
15258 #else
15259 value: false
15260 #endif
15261 mirror: always
15262
15263 # Number of seconds to wait for the cache folder to be renamed before
15264 # the background task forcefully exists.
15265 - name: network.cache.shutdown_purge_folder_wait_seconds
15266 type: RelaxedAtomicUint32
15267 value: 10
15268 mirror: always
15269
15270 - name: network.cache.persist_permanent_redirects_http
15271 type: bool
15272 value: false
15273 mirror: always
15274
15275 # This is used for a temporary workaround for a web-compat issue. If pref is
15276 # true CORS preflight requests are allowed to send client certificates.
15277 - name: network.cors_preflight.allow_client_cert
15278 type: RelaxedAtomicBool
15279 value: false
15280 mirror: always
15281
15282 # Whether to record the telemetry event when a JAR channel is failed to load.
15283 - name: network.jar.record_failure_reason
15284 type: RelaxedAtomicBool
15285 value: @IS_EARLY_BETA_OR_EARLIER@
15286 mirror: always
15287
15288 # nsJARInputStream::Available returns the size indicated by the archived entry
15289 # so we need a limit so we don't OOM if the archive is corrupted.
15290 - name: network.jar.max_available_size
15291 type: RelaxedAtomicUint32
15292 value: 256*1024*1024 # 256 Mb
15293 mirror: always
15294
15295 # When decompressing an archived entry we need to allocate a buffer
15296 # large enough to hold the uncompressed entry. This pref specifies the max
15297 # size of such a buffer.
15298 # When set to 0 there is no limit.
15299 - name: network.jar.max_entry_size
15300 type: RelaxedAtomicUint32
15301 value: 256*1024*1024 # 256 Mb
15302 mirror: always
15303
15304 # When this pref is true, we will use the HTTPS acceptable content encoding
15305 # list for trustworthy domains such as http://localhost
15306 - name: network.http.encoding.trustworthy_is_https
15307 type: RelaxedAtomicBool
15308 value: true
15309 mirror: always
15310
15311 # Support http3 version1
15312 - name: network.http.http3.support_version1
15313 type: RelaxedAtomicBool
15314 value: true
15315 mirror: always
15316
15317 # Disable early data on an origin if SSL_ERROR_PROTOCOL_VERSION_ALERT is received
15318 - name: network.http.early_data_disable_on_error
15319 type: RelaxedAtomicBool
15320 value: true
15321 mirror: always
15322
15323 # Disable early data if it fails for more than this number of origins
15324 - name: network.http.early_data_max_error
15325 type: RelaxedAtomicUint32
15326 value: 5
15327 mirror: always
15328
15329 # If true, remove the resumption token when 0RTT failed.
15330 - name: network.http.remove_resumption_token_when_early_data_failed
15331 type: RelaxedAtomicBool
15332 value: true
15333 mirror: always
15334
15335 # The length of cnonce string used in HTTP digest auth.
15336 - name: network.http.digest_auth_cnonce_length
15337 type: uint32_t
15338 value: 16
15339 mirror: always
15340
15341 # When a primary or backup half-open socket fails while another is still
15342 # connecting, retry with the remaining one
15343 - name: network.http.retry_with_another_half_open
15344 type: RelaxedAtomicBool
15345 value: @IS_EARLY_BETA_OR_EARLIER@
15346 mirror: always
15347
15348 - name: network.http.basic_http_auth.enabled
15349 type: RelaxedAtomicBool
15350 value: true
15351 mirror: always
15352
15353 # If true, HTTP response content-type headers will be parsed using the standards-compliant MimeType parser
15354 - name: network.standard_content_type_parsing.response_headers
15355 type: RelaxedAtomicBool
15356 value: true
15357 mirror: always
15358
15359 # The maximum count that we allow socket prrocess to crash. If this count is
15360 # reached, we won't use networking over socket process.
15361 - name: network.max_socket_process_failed_count
15362 type: RelaxedAtomicUint32
15363 value: 1
15364 mirror: always
15365
15366 - name: network.allow_redirect_to_data
15367 type: RelaxedAtomicBool
15368 value: false
15369 mirror: always
15370
15371 - name: network.allow_raw_sockets_in_content_processes
15372 type: bool
15373 value: false
15374 mirror: once
15375
15376 - name: network.allow_large_stack_size_for_socket_thread
15377 type: RelaxedAtomicBool
15378 value: true
15379 mirror: always
15380
15381 # WebTransport
15382 - name: network.webtransport.enabled
15383 type: RelaxedAtomicBool
15384 value: true
15385 mirror: always
15386
15387 # WebTransport Datagram support
15388 - name: network.webtransport.datagrams.enabled
15389 type: RelaxedAtomicBool
15390 value: true
15391 mirror: always
15392
15393 # WebTransport Datagram size
15394 - name: network.webtransport.datagram_size
15395 type: RelaxedAtomicUint32
15396 value: 1200
15397 mirror: always
15398
15399 # WebTransport Redirect support
15400 - name: network.webtransport.redirect.enabled
15401 type: RelaxedAtomicBool
15402 value: false
15403 mirror: always
15404
15405 # Wifi-scan polling period, in ms, when on a mobile network.
15406 # A value of 0 indicates that no polling should be done.
15407 - name: network.wifi.scanning_period
15408 type: RelaxedAtomicUint32
15409 value: 60000
15410 mirror: always
15411
15412 # Block synchronous XMLHttpRequests coming from system requests
15413 - name: network.xhr.block_sync_system_requests
15414 type: bool
15415 value: true
15416 mirror: always
15417
15418 # When the Access-Control-Allow-Headers is wildcard (*), whether to allow
15419 # CORS-protected requests with the Authorization request header.
15420 - name: network.cors_preflight.authorization_covered_by_wildcard
15421 type: bool
15422 value: true
15423 mirror: always
15424
15425 # Inner schemes that are allowed to display application/http-index-format.
15426 # Set to * to allow all schemes.
15427 - name: network.http_index_format.allowed_schemes
15428 type: String
15429 value: "file"
15430 mirror: never
15431
15432 # Enable off-main-thread decompression of network streams
15433 # Note:network.decompression_off_mainthread triggered a bug, so
15434 # we switched to a new pref that can be turned off safely
15435 - name: network.decompression_off_mainthread2
15436 type: bool
15437 value: true
15438 mirror: always
15439
15440 # Minimum content-length to use off-main-thread decompression of network streams
15441 - name: network.decompression_off_mainthread_min_size
15442 type: int32_t
15443 value: 512
15444 mirror: always
15445
15446 # Cached state of parental controls (enabled/disabled)
15447 - name: network.parental_controls_cached_state
15448 type: RelaxedAtomicBool
15449 value: false
15450 mirror: always
15451
15452 # Used for testing purposes only. When true, it attaches an extra networking
15453 # layer to simulate different network scenarios.
15454 - name: network.socket.attach_mock_network_layer
15455 type: RelaxedAtomicBool
15456 value: false
15457 mirror: always
15458
15459 # Whether to redirect a failing request to an essential domain
15460 # to a fallback domain that hosts the same content.
15461 - name: network.essential_domains_fallback
15462 type: RelaxedAtomicBool
15463 value: false
15464 mirror: always
15465
15466 #---------------------------------------------------------------------------
15467 # Prefs starting with "nglayout."
15468 #---------------------------------------------------------------------------
15469
15470 # Enable/disable display list invalidation logging --- useful for debugging.
15471 - name: nglayout.debug.invalidation
15472 type: bool
15473 value: false
15474 mirror: always
15475
15476 - name: nglayout.debug.disable_xul_cache
15477 type: bool
15478 value: false
15479 mirror: always
15480
15481 - name: nglayout.initialpaint.delay
15482 type: int32_t
15483 value: 5
15484 mirror: always
15485
15486 - name: nglayout.initialpaint.delay_in_oopif
15487 type: int32_t
15488 value: 5
15489 mirror: always
15490
15491 #---------------------------------------------------------------------------
15492 # Prefs starting with "page_load."
15493 #---------------------------------------------------------------------------
15494
15495 # Time in milliseconds during which certain tasks are deprioritized during
15496 # page load.
15497 - name: page_load.deprioritization_period
15498 type: RelaxedAtomicUint32
15499 value: 5000
15500 mirror: always
15501
15502 #---------------------------------------------------------------------------
15503 # Prefs starting with "pdfjs."
15504 #---------------------------------------------------------------------------
15505
15506 - name: pdfjs.disabled
15507 type: bool
15508 value: false
15509 mirror: always
15510
15511 #---------------------------------------------------------------------------
15512 # Prefs starting with "permissions."
15513 #---------------------------------------------------------------------------
15514
15515 # 1-Accept, 2-Deny, Any other value: Accept
15516 - name: permissions.default.image
15517 type: RelaxedAtomicUint32
15518 value: 1
15519 mirror: always
15520
15521 - name: permissions.default.screen-wake-lock
15522 type: RelaxedAtomicUint32
15523 value: 1
15524 mirror: always
15525
15526 - name: permissions.isolateBy.userContext
15527 type: RelaxedAtomicBool
15528 value: false
15529 mirror: always
15530
15531 - name: permissions.isolateBy.privateBrowsing
15532 type: RelaxedAtomicBool
15533 value: true
15534 mirror: always
15535
15536 # Is support for Permissions.query enabled for camera and microphone?
15537 - name: permissions.media.query.enabled
15538 type: RelaxedAtomicBool
15539 value: true
15540 mirror: always
15541
15542 # Whether default permissions should be imported from remote settings in
15543 # addition to importing them from browser/app/permissions.
15544 - name: permissions.manager.remote.enabled
15545 type: bool
15546 value: true
15547 mirror: always
15548
15549 #---------------------------------------------------------------------------
15550 # Prefs starting with "places."
15551 #---------------------------------------------------------------------------
15552
15553 # Whether pages alternative frecency is enabled. This and the following related
15554 # prefs only apply at restart.
15555 - name: places.frecency.pages.alternative.featureGate
15556 type: bool
15557 value: false
15558 mirror: once
15559
15560 - name: places.frecency.pages.alternative.maxDaysFromToday
15561 type: uint32_t
15562 value: 60
15563 mirror: once
15564
15565 - name: places.frecency.pages.alternative.veryHighWeight
15566 type: uint32_t
15567 value: 200
15568 mirror: once
15569
15570 - name: places.frecency.pages.alternative.highWeight
15571 type: uint32_t
15572 value: 100
15573 mirror: once
15574
15575 - name: places.frecency.pages.alternative.mediumWeight
15576 type: uint32_t
15577 value: 50
15578 mirror: once
15579
15580 - name: places.frecency.pages.alternative.lowWeight
15581 type: uint32_t
15582 value: 20
15583 mirror: once
15584
15585 - name: places.frecency.pages.alternative.halfLifeDays
15586 type: uint32_t
15587 value: 30
15588 mirror: once
15589
15590 - name: places.frecency.pages.alternative.numSampledVisits
15591 type: uint32_t
15592 value: 10
15593 mirror: once
15594
15595 # Max difference allowed between a visit and an interaction.
15596 - name: places.frecency.pages.alternative.interactions.maxVisitGapSeconds
15597 type: uint32_t
15598 value: 2 * 60
15599 mirror: once
15600
15601 # Minimum time required to upgrade a visit score.
15602 - name: places.frecency.pages.alternative.interactions.viewTimeSeconds
15603 type: uint32_t
15604 value: 60
15605 mirror: once
15606
15607 # Minimum time required to upgrade a visit score of a visit
15608 # provided there is a minimum threshold of keypresses.
15609 - name: places.frecency.pages.alternative.interactions.viewTimeIfManyKeypressesSeconds
15610 type: uint32_t
15611 value: 20
15612 mirror: once
15613
15614 - name: places.frecency.pages.alternative.interactions.manyKeypresses
15615 type: uint32_t
15616 value: 50
15617 mirror: once
15618
15619 # Whether flooding prevention feature is enabled or not.
15620 - name: places.history.floodingPrevention.enabled
15621 type: bool
15622 value: true
15623 mirror: always
15624
15625 # Maximum elapsed time betwen a user interaction and a visit before starting to
15626 # apply flooding prevention.
15627 - name: places.history.floodingPrevention.maxSecondsFromLastUserInteraction
15628 type: uint32_t
15629 value: 3
15630 mirror: always
15631
15632 # Number of consecutive accesses to an origin in a short timeframe before
15633 # starting to restrict storing visits for it.
15634 - name: places.history.floodingPrevention.restrictionCount
15635 type: uint32_t
15636 value: 3
15637 mirror: always
15638
15639 # Duration of the timeframe where consecutive visits to an origin should happen
15640 # before starting to restrict storing visits for it.
15641 - name: places.history.floodingPrevention.restrictionExpireSeconds
15642 type: uint32_t
15643 value: 5
15644 mirror: always
15645
15646 #---------------------------------------------------------------------------
15647 # Prefs starting with "plain_text."
15648 #---------------------------------------------------------------------------
15649
15650 # When false, text in plaintext documents does not wrap long lines.
15651 - name: plain_text.wrap_long_lines
15652 type: bool
15653 value: true
15654 mirror: always
15655
15656 #---------------------------------------------------------------------------
15657 # Prefs starting with "preferences."
15658 #---------------------------------------------------------------------------
15659
15660 - name: preferences.allow.omt-write
15661 type: bool
15662 value: true
15663 mirror: never
15664
15665 #ifdef DEBUG
15666 # If set to true, setting a Preference matched to a `Once` StaticPref will
15667 # assert that the value matches. Such assertion being broken is a clear flag
15668 # that the Once policy shouldn't be used.
15669 - name: preferences.check.once.policy
15670 type: bool
15671 value: false
15672 mirror: always
15673
15674 # If set to true, StaticPrefs Once policy check will be skipped during
15675 # automation regression test. Use with care. This pref must be set back to
15676 # false as soon as specific test has completed.
15677 - name: preferences.force-disable.check.once.policy
15678 type: bool
15679 value: false
15680 mirror: always
15681 #endif
15682
15683 #---------------------------------------------------------------------------
15684 # Prefs starting with "print."
15685 #---------------------------------------------------------------------------
15686
15687 # Variation fonts can't always be embedded in certain output formats
15688 # such as PDF. To work around this, draw the variation fonts using
15689 # paths instead of using font embedding.
15690 - name: print.font-variations-as-paths
15691 type: RelaxedAtomicBool
15692 value: true
15693 mirror: always
15694
15695 # Whether we always print silently (without a print dialog).
15696 - name: print.always_print_silent
15697 type: RelaxedAtomicBool
15698 value: false
15699 mirror: always
15700
15701 # Whether we directly use the system print dialog to collect the user's print
15702 # settings rather than using the tab-modal print preview dialog.
15703 # Note: `print.always_print_silent` overrides this.
15704 - name: print.prefer_system_dialog
15705 type: RelaxedAtomicBool
15706 value: false
15707 mirror: always
15708
15709 # Whether we attempt to generate links in Save As PDF output.
15710 - name: print.save_as_pdf.links.enabled
15711 type: RelaxedAtomicBool
15712 value: true
15713 mirror: always
15714
15715 # Whether we attempt to generate and use document-internal PDF destinations.
15716 - name: print.save_as_pdf.internal_destinations.enabled
15717 type: RelaxedAtomicBool
15718 value: true
15719 mirror: always
15720
15721 # Whether we use the CSS @page size as the paper size in PDF output.
15722 - name: print.save_as_pdf.use_page_rule_size_as_paper_size.enabled
15723 type: RelaxedAtomicBool
15724 value: @IS_NOT_ANDROID@
15725 mirror: always
15726
15727 # The default DPI for printing.
15728 #
15729 # For PDF-based output, DPI should ideally be irrelevant, but in fact it is not
15730 # for multiple reasons:
15731 #
15732 # * Layout code that tries to respect device pixels (e.g. for snapping glyph
15733 # positions and baselines, and especially for the "GDI Classic"
15734 # rendering-mode threshold for certain fonts).
15735 #
15736 # * The limitations of the PDF format mean that we can't natively represent
15737 # certain effects, such as filters, in PDF output, so we need to rasterize
15738 # the parts of the document with these applied.
15739 #
15740 # * Other rasterized things like images and such are also affected by DPI
15741 # (both in the output, and the images we select via srcset, for example).
15742 #
15743 # Therefore, using a high DPI is preferable. For now, we use 144dpi to match
15744 # physical printer output on Windows, but higher (e.g. 300dpi) might be better,
15745 # but only if it does not lead to issues such as excessive memory use.
15746 - name: print.default_dpi
15747 type: float
15748 value: 144.0f
15749 mirror: always
15750
15751 # Whether support for monochrome printing is enabled for CUPS.
15752 - name: print.cups.monochrome.enabled
15753 type: RelaxedAtomicBool
15754 value: true
15755 mirror: always
15756
15757 # Disabling this will no-op window.print()
15758 - name: print.enabled
15759 type: RelaxedAtomicBool
15760 value: true
15761 mirror: always
15762
15763 # Determines if and when to center pages on a sheet horiontally when printing.
15764 # With a setting of 2, it's guaranteed that A4 on US Letter will be centered.
15765 # 0: never,
15766 # 1: always,
15767 # 2: when the ratio of sheet to page size after content scaling is near 1.0
15768 - name: print.center_page_on_sheet
15769 type: RelaxedAtomicUint32
15770 value: 2
15771 mirror: always
15772
15773 #---------------------------------------------------------------------------
15774 # Prefs starting with "privacy."
15775 #---------------------------------------------------------------------------
15776
15777 # Annotate trackers using the strict list. If set to false, the basic list will
15778 # be used instead.
15779 - name: privacy.annotate_channels.strict_list.enabled
15780 type: bool
15781 value: false
15782 mirror: always
15783
15784 # Annotate trackers using the strict list in the private browsing mode. If set
15785 # to false, the basic list will be used instead.
15786 - name: privacy.annotate_channels.strict_list.pbmode.enabled
15787 type: bool
15788 value: true
15789 mirror: always
15790
15791 # Enable the clearing of cache data using the clear-site-data header. If enabled,
15792 # header values of "cache" and "*" will clear cached data from the site
15793 - name: privacy.clearSiteDataHeader.cache.enabled
15794 type: bool
15795 value: true
15796 mirror: always
15797
15798 # First Party Isolation (double keying), disabled by default.
15799 - name: privacy.firstparty.isolate
15800 type: RelaxedAtomicBool
15801 value: false
15802 mirror: always
15803
15804 # If false, two windows in the same domain with different first party domains
15805 # (top level URLs) can access resources through window.opener. This pref is
15806 # effective only when "privacy.firstparty.isolate" is true.
15807 - name: privacy.firstparty.isolate.restrict_opener_access
15808 type: RelaxedAtomicBool
15809 value: true
15810 mirror: always
15811
15812 - name: privacy.firstparty.isolate.block_post_message
15813 type: RelaxedAtomicBool
15814 value: false
15815 mirror: always
15816
15817 - name: privacy.firstparty.isolate.use_site
15818 type: RelaxedAtomicBool
15819 value: false
15820 mirror: always
15821
15822 # Enforce tracking protection in all modes.
15823 - name: privacy.trackingprotection.enabled
15824 type: bool
15825 value: false
15826 mirror: always
15827
15828 # Enforce tracking protection in Private Browsing mode.
15829 - name: privacy.trackingprotection.pbmode.enabled
15830 type: bool
15831 value: true
15832 mirror: always
15833
15834 # Annotate channels based on the tracking protection list in all modes
15835 - name: privacy.trackingprotection.annotate_channels
15836 type: bool
15837 value: true
15838 mirror: always
15839
15840 # Block 3rd party fingerprinting resources.
15841 - name: privacy.trackingprotection.fingerprinting.enabled
15842 type: bool
15843 value: false
15844 mirror: always
15845
15846 # Block 3rd party cryptomining resources.
15847 - name: privacy.trackingprotection.cryptomining.enabled
15848 type: bool
15849 value: false
15850 mirror: always
15851
15852 # Block 3rd party socialtracking resources.
15853 - name: privacy.trackingprotection.socialtracking.enabled
15854 type: bool
15855 value: false
15856 mirror: always
15857
15858 # Consider socialtracking annotation as trackers (see ETP).
15859 - name: privacy.socialtracking.block_cookies.enabled
15860 type: bool
15861 value: true
15862 mirror: always
15863
15864 # Block 3rd party emailtracking resources in all mode.
15865 - name: privacy.trackingprotection.emailtracking.enabled
15866 type: bool
15867 value: false
15868 mirror: always
15869
15870 # Block 3rd party emailtracking resources in Private Browsing mode.
15871 - name: privacy.trackingprotection.emailtracking.pbmode.enabled
15872 type: bool
15873 value: true
15874 mirror: always
15875
15876 # Collecting 3rd party emailtracking telemetry.
15877 - name: privacy.trackingprotection.emailtracking.data_collection.enabled
15878 type: bool
15879 value: true
15880 mirror: always
15881
15882 - name: privacy.trackingprotection.testing.report_blocked_node
15883 type: RelaxedAtomicBool
15884 value: false
15885 mirror: always
15886
15887 # Annotate channels based on the consent manager list
15888 # Note: consent manager annotations will be disabled if tracking protection is disabled
15889 - name: privacy.trackingprotection.consentmanager.annotate_channels
15890 type: bool
15891 value: true
15892 mirror: always
15893
15894 # Skip blocking for consentmanager resources in all modes.
15895 - name: privacy.trackingprotection.consentmanager.skip.enabled
15896 type: RelaxedAtomicBool
15897 value: false
15898 mirror: always
15899
15900 # Skip blocking for consentmanager resources in Private Browsing mode.
15901 - name: privacy.trackingprotection.consentmanager.skip.pbmode.enabled
15902 type: RelaxedAtomicBool
15903 value: true
15904 mirror: always
15905
15906 # Whether to spoof user locale to English (used as part of Resist
15907 # Fingerprinting).
15908 # 0 - will prompt
15909 # 1 - don't spoof
15910 # 2 - spoof
15911 - name: privacy.spoof_english
15912 type: RelaxedAtomicUint32
15913 value: 0
15914 mirror: always
15915 do_not_use_directly: true
15916
15917 # Send "do not track" HTTP header, disabled by default.
15918 - name: privacy.donottrackheader.enabled
15919 type: bool
15920 value: false
15921 mirror: always
15922
15923 # Potentially send "global privacy control" HTTP header and set navigator
15924 # property accordingly. Communicates user's desire to opt-out/in of
15925 # websites or services selling or sharing the user's information, false by
15926 # default.
15927 # true - Send the header with a value of 1 to indicate opting-out
15928 # false - Do not send header to indicate opting-in
15929 - name: privacy.globalprivacycontrol.enabled
15930 type: RelaxedAtomicBool
15931 value: false
15932 mirror: always
15933
15934 # Controls whether or not GPC signals are sent in private browsing mode.
15935 # This can be overridden by `privacy.globalprivacycontrol.enabled` as true.
15936 - name: privacy.globalprivacycontrol.pbmode.enabled
15937 type: RelaxedAtomicBool
15938 value: false
15939 mirror: always
15940
15941 # Controls whether or not GPC signals are sent. Meant to act as a third option
15942 # of 'undecided' by leaving the navigator property undefined and not attaching
15943 # the Sec-GPC HTTP header.
15944 - name: privacy.globalprivacycontrol.functionality.enabled
15945 type: RelaxedAtomicBool
15946 value: false
15947 mirror: always
15948
15949 # Lower the priority of network loads for resources on the tracking protection
15950 # list. Note that this requires the
15951 # privacy.trackingprotection.annotate_channels pref to be on in order to have
15952 # any effect.
15953 - name: privacy.trackingprotection.lower_network_priority
15954 type: bool
15955 value: false
15956 mirror: always
15957
15958 # A subset of Resist Fingerprinting protections focused specifically on timers.
15959 # This affects the Animation API, the performance APIs, Date.getTime,
15960 # Event.timestamp, File.lastModified, audioContext.currentTime,
15961 # canvas.captureStream.currentTime.
15962 - name: privacy.reduceTimerPrecision
15963 type: RelaxedAtomicBool
15964 value: true
15965 mirror: always
15966
15967 # If privacy.reduceTimerPrecision is false, this pref controls whether or not
15968 # to clamp all timers at a fixed 20 microsconds. It should always be enabled,
15969 # and is only specified as a pref to enable an emergency disabling in the event
15970 # of catastrophic failure.
15971 - name: privacy.reduceTimerPrecision.unconditional
15972 type: RelaxedAtomicBool
15973 value: true
15974 mirror: always
15975
15976 # The resistFingerprinting variables are marked with 'Relaxed' memory ordering.
15977 # We don't particurally care that threads have a percently consistent view of
15978 # the values of these prefs. They are not expected to change often, and having
15979 # an outdated view is not particurally harmful. They will eventually become
15980 # consistent.
15981 #
15982 # The variables will, however, be read often (specifically .microseconds on
15983 # each timer rounding) so performance is important.
15984 - name: privacy.resistFingerprinting
15985 type: RelaxedAtomicBool
15986 value: false
15987 mirror: always
15988 do_not_use_directly: true
15989
15990 # When the .pbmode pref is on, RFP or FPP will be enabled in PBM
15991 # When the non-pbm pref is on, they will be enabled in PBM and non-PBM
15992 - name: privacy.resistFingerprinting.pbmode
15993 type: RelaxedAtomicBool
15994 value: false
15995 mirror: always
15996 do_not_use_directly: true
15997
15998 # privacy.fingerprintingProtection enables a set of fingerprinting protections
15999 # designed to minimize breakage while maximizing protection.
16000 - name: privacy.fingerprintingProtection
16001 type: RelaxedAtomicBool
16002 value: false
16003 mirror: always
16004 do_not_use_directly: true
16005
16006 - name: privacy.fingerprintingProtection.pbmode
16007 type: RelaxedAtomicBool
16008 value: true
16009 mirror: always
16010 do_not_use_directly: true
16011
16012 # Disables FPP Remote settings bucket. Allows user to stop overriding
16013 # of FPP overrides
16014 - name: privacy.fingerprintingProtection.remoteOverrides.enabled
16015 type: RelaxedAtomicBool
16016 value: true
16017 mirror: always
16018
16019 # Enable/Disable fingerprinting protections that are enabled in
16020 # Enhanced Tracking Protection Standard mode.
16021 # bFPP cannot be enabled in only PBM, it is either enabled
16022 # browser-wide or disabled browser-wide. If FPP is enabled
16023 # in the same context as bFPP, FPP takes precedence. If
16024 # RFP is enabled in the same context as FPP, then RFP takes precedence
16025 - name: privacy.baselineFingerprintingProtection
16026 type: RelaxedAtomicBool
16027 value: true
16028 mirror: always
16029 do_not_use_directly: true
16030
16031 # This pref can be used to disable mozAddonManager entirely for fingerprinting
16032 # reasons. Someone like Tor browser will use this pref.
16033 # NOTE: We'd like this to be a "hidden" pref once StaticPrefs supports it.
16034 - name: privacy.resistFingerprinting.block_mozAddonManager
16035 type: RelaxedAtomicBool
16036 value: false
16037 mirror: always
16038
16039 # The log level for browser console messages logged in RFPHelper.sys.mjs. Change to
16040 # 'All' and restart to see the messages.
16041 - name: privacy.resistFingerprinting.jsmloglevel
16042 type: String
16043 value: "Warn"
16044 mirror: never
16045
16046 # Enable jittering the clock one precision value forward.
16047 - name: privacy.resistFingerprinting.reduceTimerPrecision.jitter
16048 type: RelaxedAtomicBool
16049 value: true
16050 mirror: always
16051
16052 # Dynamically tune the resolution of the timer reduction for
16053 # `privacy.reduceTimerPrecision` and `privacy.resistFingerprinting`.
16054 - name: privacy.resistFingerprinting.reduceTimerPrecision.microseconds
16055 type: RelaxedAtomicUint32
16056 value: 1000
16057 mirror: always
16058
16059 - name: privacy.resistFingerprinting.target_video_res
16060 type: uint32_t
16061 value: 1080
16062 mirror: always
16063
16064 # Enable resetting the fingerprinting randomization key daily for normal windwos.
16065 - name: privacy.resistFingerprinting.randomization.daily_reset.enabled
16066 type: RelaxedAtomicBool
16067 value: false
16068 mirror: always
16069
16070 # Enable resetting the fingerprinting randomization key daily for private windwos.
16071 - name: privacy.resistFingerprinting.randomization.daily_reset.private.enabled
16072 type: RelaxedAtomicBool
16073 value: false
16074 mirror: always
16075
16076 # Control whether we use the SipHash to generate the canvas random key.
16077 - name: privacy.resistFingerprinting.randomization.canvas.use_siphash
16078 type: RelaxedAtomicBool
16079 value: false
16080 mirror: always
16081
16082 # Anti-tracking permission expiration.
16083 - name: privacy.restrict3rdpartystorage.expiration
16084 type: uint32_t
16085 value: 2592000 # 30 days (in seconds)
16086 mirror: always
16087
16088 # Report Anti-tracking warnings to console lazily
16089 - name: privacy.restrict3rdpartystorage.console.lazy
16090 type: bool
16091 value: true
16092 mirror: always
16093
16094 # Enable the heuristic to allow storage access for windows opened using window.open() after user interaction
16095 - name: privacy.restrict3rdpartystorage.heuristic.opened_window_after_interaction
16096 type: bool
16097 value: true
16098 mirror: always
16099
16100 # Enable the heuristic to allow storage access for windows opened using window.open()
16101 - name: privacy.restrict3rdpartystorage.heuristic.window_open
16102 type: bool
16103 value: @IS_NOT_NIGHTLY_BUILD@
16104 mirror: always
16105
16106 # Enable the heuristic to allow storage access for windows opened using window.open()
16107 - name: privacy.restrict3rdpartystorage.heuristic.redirect
16108 type: bool
16109 value: false
16110 mirror: always
16111
16112 # Enable the heuristic to allow storage access for extended navigations with interaction
16113 - name: privacy.restrict3rdpartystorage.heuristic.navigation
16114 type: bool
16115 #if defined(ANDROID)
16116 value: false
16117 #else
16118 value: @IS_NIGHTLY_BUILD@
16119 #endif
16120 mirror: always
16121
16122 # Anti-tracking permission expiration.
16123 - name: privacy.restrict3rdpartystorage.expiration_redirect
16124 type: uint32_t
16125 value: 2592000 # 30 days (in seconds)
16126 mirror: always
16127
16128 # Anti-tracking user-interaction expiration.
16129 - name: privacy.userInteraction.expiration
16130 type: uint32_t
16131 value: 3888000 # 45 days (in seconds)
16132 mirror: always
16133
16134 # Anti-tracking user-interaction document interval.
16135 - name: privacy.userInteraction.document.interval
16136 type: uint32_t
16137 value: 1800 # 30 minutes (in seconds)
16138 mirror: always
16139
16140 # Enable Anti-tracking testing. When it enables, it will notify the observers
16141 # when user-interaction permission or storage access permission is added. This
16142 # is for testing only.
16143 - name: privacy.antitracking.testing
16144 type: bool
16145 value: false
16146 mirror: always
16147
16148 # Full isolation (referrer, cookie jar, etc) of resources injected by content-scripts.
16149 # This feature is currently disabled (see bug 1965552).
16150 - name: privacy.antitracking.isolateContentScriptResources
16151 type: bool
16152 value: false
16153 mirror: always
16154
16155 # Controls the anti-tracking webcompat features. This includes:
16156 # - All URL-Classifier and state partitioning skip lists (prefs and remote
16157 # settings)
16158 # - Storage access heuristics (opener, redirect, etc.)
16159 # - StorageAccessAPI automatic grants (skips the prompt)
16160 # - Allowing specific tracking channels on user opt-in (e.g. facebook login
16161 # shim).
16162 - name: privacy.antitracking.enableWebcompat
16163 type: RelaxedAtomicBool
16164 value: true
16165 mirror: always
16166
16167 # Enable the heuristic to allow storage access for recent visited pages
16168 - name: privacy.restrict3rdpartystorage.heuristic.recently_visited
16169 type: bool
16170 #if defined(ANDROID)
16171 value: true
16172 #else
16173 value: @IS_NOT_NIGHTLY_BUILD@
16174 #endif
16175 mirror: always
16176
16177 # Valid time gap since last visit
16178 - name: privacy.restrict3rdpartystorage.heuristic.recently_visited_time
16179 type: uint32_t
16180 value: 600 # 10 minutes
16181 mirror: always
16182
16183 # Whether to exclude third-party trackers from the storage access heuristics.
16184 - name: privacy.restrict3rdpartystorage.heuristic.exclude_third_party_trackers
16185 type: bool
16186 value: @IS_NIGHTLY_BUILD@
16187 mirror: always
16188
16189 # Recent visited pages redirection permission expiration.
16190 - name: privacy.restrict3rdpartystorage.expiration_visited
16191 type: uint32_t
16192 value: 2592000 # 30 days (in seconds)
16193 mirror: always
16194
16195 - name: privacy.window.maxInnerWidth
16196 type: int32_t
16197 value: 1400
16198 mirror: always
16199
16200 - name: privacy.window.maxInnerHeight
16201 type: int32_t
16202 value: 900
16203 mirror: always
16204
16205 - name: privacy.sanitize.useOldClearHistoryDialog
16206 type: RelaxedAtomicBool
16207 value: true
16208 mirror: always
16209
16210 - name: privacy.sanitize.sanitizeOnShutdown
16211 type: RelaxedAtomicBool
16212 value: false
16213 mirror: always
16214
16215 - name: privacy.clearOnShutdown.cache
16216 type: RelaxedAtomicBool
16217 value: false
16218 mirror: always
16219
16220 - name: privacy.clearOnShutdown_v2.cache
16221 type: RelaxedAtomicBool
16222 value: false
16223 mirror: always
16224
16225 - name: privacy.dynamic_firstparty.limitForeign
16226 type: RelaxedAtomicBool
16227 value: false
16228 mirror: always
16229
16230 - name: privacy.dynamic_firstparty.use_site
16231 type: RelaxedAtomicBool
16232 value: true
16233 mirror: always
16234
16235 - name: privacy.partition.network_state
16236 type: RelaxedAtomicBool
16237 value: true
16238 mirror: always
16239
16240 # Partition the OCSP cache by the partitionKey.
16241 - name: privacy.partition.network_state.ocsp_cache
16242 type: RelaxedAtomicBool
16243 value: true
16244 mirror: always
16245
16246 # Partition the OCSP cache by the partitionKey for private browsing mode.
16247 - name: privacy.partition.network_state.ocsp_cache.pbmode
16248 type: RelaxedAtomicBool
16249 value: true
16250 mirror: always
16251
16252 # Always partition web storage APIs except cookies.
16253 - name: privacy.partition.always_partition_third_party_non_cookie_storage
16254 type: RelaxedAtomicBool
16255 value: true
16256 mirror: always
16257
16258 # Exclude session storage from the above preference.
16259 - name: privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage
16260 type: RelaxedAtomicBool
16261 value: false
16262 mirror: always
16263
16264 - name: privacy.partition.bloburl_per_partition_key
16265 type: bool
16266 value: true
16267 mirror: always
16268
16269 - name: privacy.window.name.update.enabled
16270 type: bool
16271 value: true
16272 mirror: always
16273
16274 # By default, the network state isolation is not active when there is a proxy
16275 # setting. This pref forces the network isolation even in these scenarios.
16276 - name: privacy.partition.network_state.connection_with_proxy
16277 type: bool
16278 value: false
16279 mirror: always
16280
16281 # Partition the service workers unconditionally when dFPI is enabled.
16282 - name: privacy.partition.serviceWorkers
16283 type: RelaxedAtomicBool
16284 value: true
16285 mirror: always
16286
16287 # Enables / disables the strip on share feature which strips query parameters
16288 # when copying/sharing in-content links or from the url bar.
16289 - name: privacy.query_stripping.strip_on_share.enabled
16290 type: RelaxedAtomicBool
16291 value: false
16292 mirror: always
16293
16294 # Enables / disables the URL query string stripping in normal browsing mode
16295 # which strips query parameters from loading URIs to prevent bounce (redirect)
16296 # tracking.
16297 - name: privacy.query_stripping.enabled
16298 type: RelaxedAtomicBool
16299 value: false
16300 mirror: always
16301
16302 # Same as the pref above, but controls query stripping for private browsing
16303 # mode.
16304 - name: privacy.query_stripping.enabled.pbmode
16305 type: RelaxedAtomicBool
16306 value: false
16307 mirror: always
16308
16309 # The list which contains query parameters that are needed to be stripped from
16310 # URIs. The query parameters are separated by a space.
16311 - name: privacy.query_stripping.strip_list
16312 type: String
16313 value: ""
16314 mirror: never
16315
16316 # This controls if we will do the query string stripping for redirects.
16317 - name: privacy.query_stripping.redirect
16318 type: bool
16319 value: true
16320 mirror: always
16321
16322 # the list which contains sites where should exempt from query stripping
16323 - name: privacy.query_stripping.allow_list
16324 type: String
16325 value: ""
16326 mirror: never
16327
16328 # Controls Bounce Tracking Protection behavior.
16329 # Set to 0 to fully disable. See nsIBounceTrackingProtection.idl for
16330 # documentation.
16331 - name: privacy.bounceTrackingProtection.mode
16332 type: uint32_t
16333 #ifdef NIGHTLY_BUILD
16334 value: 1
16335 #else
16336 value: 3
16337 #endif
16338 mirror: always
16339
16340 # How long to wait for a client redirect after a navigation ends.
16341 - name: privacy.bounceTrackingProtection.clientBounceDetectionTimerPeriodMS
16342 type: uint32_t
16343 value: 10000
16344 mirror: always
16345
16346 # How long user activations will protect a site host from storage deletion.
16347 - name: privacy.bounceTrackingProtection.bounceTrackingActivationLifetimeSec
16348 type: uint32_t
16349 value: 3888000
16350 mirror: always
16351
16352 # How long to wait for interaction after a possible bounce tracking event before
16353 # deleting a site host's storage.
16354 - name: privacy.bounceTrackingProtection.bounceTrackingGracePeriodSec
16355 type: uint32_t
16356 value: 3600
16357 mirror: always
16358
16359 # How often to run the bounce tracking timer algorithm which purges bounce
16360 # tracker state periodically. Set to 0 to disable purging.
16361 - name: privacy.bounceTrackingProtection.bounceTrackingPurgeTimerPeriodSec
16362 type: uint32_t
16363 value: 3600
16364 mirror: always
16365
16366 # Whether only bounces that access storage should be considered trackers.
16367 - name: privacy.bounceTrackingProtection.requireStatefulBounces
16368 type: bool
16369 value: true
16370 mirror: always
16371
16372 # To be used in automated test environments to enable observer messages.
16373 - name: privacy.bounceTrackingProtection.enableTestMode
16374 type: bool
16375 value: false
16376 mirror: always
16377
16378 # Whether the migration ran to import user activation flags into the BTP user
16379 # activation store. Set to false to trigger a new migration.
16380 - name: privacy.bounceTrackingProtection.hasMigratedUserActivationData
16381 type: bool
16382 value: false
16383 mirror: always
16384
16385 #---------------------------------------------------------------------------
16386 # Prefs starting with "prompts."
16387 #---------------------------------------------------------------------------
16388
16389 # Prompt modal type prefs
16390 # See nsIPromptService::MODAL_TYPE fields for possible values.
16391
16392 # Insecure form submit warning.
16393 - name: prompts.modalType.insecureFormSubmit
16394 type: int32_t
16395 value: 2
16396 mirror: always
16397
16398 # nsHttpChannelAuthProvider#ConfirmAuth anti-phishing prompts.
16399 - name: prompts.modalType.confirmAuth
16400 type: int32_t
16401 value: 2
16402 mirror: always
16403
16404 #---------------------------------------------------------------------------
16405 # Prefs starting with "security."
16406 #---------------------------------------------------------------------------
16407
16408 # Mochitests that need to load resource:// URIs not declared content-accessible
16409 # in manifests should set this pref.
16410 - name: security.all_resource_uri_content_accessible
16411 type: bool
16412 value: false
16413 mirror: always
16414
16415 - name: security.bad_cert_domain_error.url_fix_enabled
16416 type: bool
16417 value: true
16418 mirror: always
16419
16420 # When a TLS server asks for a client authentication certificate, the platform
16421 # will ask the user to select one or opt to not send one. At the same time, the
16422 # platform will offer a few options for how long to remember the decision at
16423 # hand. The value of this preference determines which of these three options is
16424 # selected by default.
16425 # 0 selects "do not remember the decision"
16426 # 1 selects "remember the decision permanently"
16427 # 2 selects "remember the decision for the rest of the session"
16428 - name: security.client_auth_certificate_default_remember_setting
16429 type: uint32_t
16430 value: 2
16431 mirror: always
16432
16433 - name: security.csp.reporting.script-sample.max-length
16434 type: int32_t
16435 value: 40
16436 mirror: always
16437
16438 - name: security.csp.truncate_blocked_uri_for_frame_navigations
16439 type: bool
16440 value: false
16441 mirror: always
16442
16443 # Limit the number of CSP reports that are send in a specific timespan.
16444 - name: security.csp.reporting.limit.count
16445 type: uint32_t
16446 value: 100
16447 mirror: always
16448
16449 # Time span in seconds for reporting limit.
16450 - name: security.csp.reporting.limit.timespan
16451 type: uint32_t
16452 value: 2
16453 mirror: always
16454
16455 # Enable/disable CSP reporting (report-uri and report-to)
16456 - name: security.csp.reporting.enabled
16457 type: bool
16458 value: true
16459 mirror: always
16460
16461 #ifdef DEBUG
16462 # Crash on CSP violations on internal pages (i.e. chrome:)
16463 - name: security.csp.testing.allow_internal_csp_violation
16464 type: bool
16465 value: false
16466 mirror: always
16467 #endif
16468
16469 # If true, all toplevel data: URI navigations will be blocked.
16470 # Please note that manually entering a data: URI in the
16471 # URL-Bar will not be blocked when flipping this pref.
16472 - name: security.data_uri.block_toplevel_data_uri_navigations
16473 type: bool
16474 value: true
16475 mirror: always
16476
16477 # Whether to apply the <meta http="Content-Security-Policy"> to browser.xhtml
16478 - name: security.browser_xhtml_csp.enabled
16479 type: bool
16480 value: true
16481 mirror: always
16482
16483 # Whether to treat the CSP in browser.xhtml as "Report-Only".
16484 # This allows us to collect telemetry information about potential issues.
16485 - name: security.browser_xhtml_csp.report-only
16486 type: bool
16487 value: false
16488 mirror: always
16489
16490 # Allow unsafe eval usage with high privileges to. This should
16491 # not be activated without a very good reason.
16492 # This pref has to be set before starting Firefox!
16493 - name: security.allow_unsafe_dangerous_privileged_evil_eval
16494 type: bool
16495 value: false
16496 mirror: once
16497
16498 # Allowed by default so it doesn't affect Thunderbird/SeaMonkey, but
16499 # not allowed for Firefox Desktop in firefox.js
16500 - name: security.allow_parent_unrestricted_js_loads
16501 type: RelaxedAtomicBool
16502 value: true
16503 mirror: always
16504
16505 # Allowed by default so it doesn't affect Thunderbird/SeaMonkey, but
16506 # not allowed for Firefox Desktop in firefox.js
16507 - name: security.allow_eval_with_system_principal
16508 type: RelaxedAtomicBool
16509 value: true
16510 mirror: always
16511
16512 # Allowed by default so it doesn't affect Thunderbird/SeaMonkey, but
16513 # not allowed for Firefox Desktop in firefox.js
16514 - name: security.allow_eval_in_parent_process
16515 type: RelaxedAtomicBool
16516 value: true
16517 mirror: always
16518
16519 # Disallowed by default, ensure not disallowed content is loaded in the parent
16520 # process.
16521 - name: security.allow_unsafe_parent_loads
16522 type: bool
16523 value: false
16524 mirror: always
16525
16526 # Pref to block mixed scripts (fonts, plugin content, scripts, stylesheets,
16527 # iframes, websockets, XHR).
16528 - name: security.mixed_content.block_active_content
16529 type: bool
16530 value: @IS_ANDROID@
16531 mirror: always
16532
16533 # Pref for mixed display content blocking (images, audio, video).
16534 - name: security.mixed_content.block_display_content
16535 type: bool
16536 value: false
16537 mirror: always
16538
16539 # Prerequisite pref for mixed display content upgrading (images, audio, video).
16540 - name: security.mixed_content.upgrade_display_content
16541 type: RelaxedAtomicBool
16542 value: true
16543 mirror: always
16544
16545 # Upgrade images when the upgrading is enabled.
16546 - name: security.mixed_content.upgrade_display_content.image
16547 type: RelaxedAtomicBool
16548 value: true
16549 mirror: always
16550
16551 # Upgrade audio when the upgrading is enabled.
16552 - name: security.mixed_content.upgrade_display_content.audio
16553 type: RelaxedAtomicBool
16554 value: true
16555 mirror: always
16556
16557 # Upgrade videos when the upgrading is enabled.
16558 - name: security.mixed_content.upgrade_display_content.video
16559 type: RelaxedAtomicBool
16560 value: true
16561 mirror: always
16562
16563 # Whether strict file origin policy is in effect. "False" is traditional.
16564 - name: security.fileuri.strict_origin_policy
16565 type: RelaxedAtomicBool
16566 value: true
16567 mirror: always
16568
16569 # The level to which we sandbox the content process. firefox.js sets the
16570 # default to different values on a per-OS basis, and has documentation
16571 # on what the defaults are and what the numbers mean.
16572 - name: security.sandbox.content.level
16573 type: int32_t
16574 value: 0
16575 mirror: always
16576 do_not_use_directly: true # Consumers should use SandboxSettings to ask.
16577
16578 - name: security.sandbox.socket.process.level
16579 type: int32_t
16580 value: 0
16581 mirror: always
16582 do_not_use_directly: true # Consumers should use SandboxSettings to ask.
16583
16584 # This controls the strength of the Windows GPU process sandbox. Changes
16585 # will require restart.
16586 # For information on what the level number means, see
16587 # SetSecurityLevelForGPUProcess() in
16588 # security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp
16589 - name: security.sandbox.gpu.level
16590 type: int32_t
16591 #if defined(XP_WIN)
16592 value: 1
16593 #else
16594 value: 0
16595 #endif
16596 mirror: always
16597
16598 # Enrollment preferences for the win32k experiment, set and managed by Normandy
16599 - name: security.sandbox.content.win32k-experiment.enrollmentStatus
16600 type: uint32_t
16601 value: 0
16602 mirror: never
16603
16604 - name: security.sandbox.content.win32k-experiment.startupEnrollmentStatus
16605 type: uint32_t
16606 value: 0
16607 mirror: never
16608
16609 #if defined(XP_WIN) && defined(MOZ_SANDBOX)
16610
16611 # Whether win32k is disabled for content processes.
16612 # true means win32k system calls are not permitted.
16613 - name: security.sandbox.content.win32k-disable
16614 type: RelaxedAtomicBool
16615 value: true
16616 mirror: always
16617
16618 # Whether win32k is disabled for compatible plugins.
16619 - name: security.sandbox.gmp.win32k-disable
16620 type: RelaxedAtomicBool
16621 value: true
16622 mirror: always
16623
16624 # Whether ACG is enabled (dynamic code blocked) for compatible plugins.
16625 - name: security.sandbox.gmp.acg.enabled
16626 type: RelaxedAtomicBool
16627 value: true
16628 mirror: always
16629
16630 # Whether win32k is disabled for socket processes.
16631 # true means win32k system calls are not permitted.
16632 - name: security.sandbox.socket.win32k-disable
16633 type: RelaxedAtomicBool
16634 value: true
16635 mirror: always
16636
16637 # Whether CET User Shadow Stack compatible modules only is enabled for the
16638 # relevant process type.
16639 - name: security.sandbox.content.shadow-stack.enabled
16640 type: RelaxedAtomicBool
16641 value: false
16642 mirror: always
16643
16644 - name: security.sandbox.rdd.shadow-stack.enabled
16645 type: RelaxedAtomicBool
16646 value: true
16647 mirror: always
16648
16649 - name: security.sandbox.socket.shadow-stack.enabled
16650 type: RelaxedAtomicBool
16651 value: true
16652 mirror: always
16653
16654 - name: security.sandbox.gpu.shadow-stack.enabled
16655 type: RelaxedAtomicBool
16656 value: true
16657 mirror: always
16658
16659 - name: security.sandbox.gmp.shadow-stack.enabled
16660 type: RelaxedAtomicBool
16661 value: true
16662 mirror: always
16663
16664 # Whether a Low Privilege AppContainer (LPAC) is enabled for the relevant
16665 # process type.
16666
16667 #if defined(MOZ_WMF_MEDIA_ENGINE)
16668 - name: security.sandbox.utility-wmf-cdm.lpac.enabled
16669 type: RelaxedAtomicBool
16670 value: true
16671 mirror: always
16672 #endif
16673
16674 # Whether Arbitrary Code Guard is enabled for the RDD process.
16675 - name: security.sandbox.rdd.acg.enabled
16676 type: RelaxedAtomicBool
16677 value: true
16678 mirror: always
16679
16680 #ifdef MOZ_WMF
16681 # Whether Arbitrary Code Guard is enabled for the utility WMF audio decoder
16682 # process.
16683
16684 - name: security.sandbox.utility-wmf.acg.enabled
16685 type: RelaxedAtomicBool
16686 value: true
16687 mirror: always
16688 #endif // MOZ_WMF
16689
16690 # Whether CIG is applied pre-spawn or later when lowering the sandbox. We
16691 # enable pre-spawn CIG only in Nightly for now because it caused a compat
16692 # issue (bug 1682304 and 1704373).
16693 - name: security.sandbox.cig.prespawn.enabled
16694 type: RelaxedAtomicBool
16695 value: @IS_NIGHTLY_BUILD@
16696 mirror: always
16697
16698 # This controls the depth of stack trace that is logged when Windows sandbox
16699 # logging is turned on. This is only currently available for the content
16700 # process because the only other sandbox (for GMP) has too strict a policy to
16701 # allow stack tracing. This does not require a restart to take effect.
16702 - name: security.sandbox.windows.log.stackTraceDepth
16703 type: RelaxedAtomicUint32
16704 value: 0
16705 mirror: always
16706 #endif
16707
16708 #if defined(XP_LINUX) && defined(MOZ_SANDBOX)
16709 - name: security.sandbox.warn_unprivileged_namespaces
16710 type: bool
16711 value: true
16712 mirror: always
16713 #endif
16714
16715 # Pref to show warning when submitting from secure to insecure.
16716 - name: security.warn_submit_secure_to_insecure
16717 type: bool
16718 value: true
16719 mirror: always
16720
16721 # Hardware Origin-bound Second Factor Support
16722 - name: security.webauth.webauthn
16723 type: bool
16724 value: true
16725 mirror: always
16726
16727 # WebAuthn CTAP2 support
16728 - name: security.webauthn.ctap2
16729 type: RelaxedAtomicBool
16730 value: true
16731 mirror: always
16732 rust: true
16733
16734 # WebAuthn JSON serialization methods
16735 - name: security.webauthn.enable_json_serialization_methods
16736 type: RelaxedAtomicBool
16737 value: true
16738 mirror: always
16739
16740 # WebAuthn conditional mediation
16741 - name: security.webauthn.enable_conditional_mediation
16742 type: RelaxedAtomicBool
16743 value: true
16744 mirror: always
16745
16746 # Dispatch WebAuthn requests to virtual authenticators (mutually exclusive
16747 # with and webauthn_enable_usbtoken)
16748 - name: security.webauth.webauthn_enable_softtoken
16749 type: RelaxedAtomicBool
16750 value: false
16751 mirror: always
16752 rust: true
16753
16754 # residentKey support when using Android platform API
16755 - name: security.webauthn.webauthn_enable_android_fido2.residentkey
16756 type: RelaxedAtomicBool
16757 value: true
16758 mirror: always
16759
16760 # Dispatch WebAuthn requests to the macOS platform API
16761 - name: security.webauthn.enable_macos_passkeys
16762 type: RelaxedAtomicBool
16763 value: true
16764 mirror: always
16765
16766 # Dispatch WebAuthn requests to authenticator-rs
16767 - name: security.webauth.webauthn_enable_usbtoken
16768 type: RelaxedAtomicBool
16769 value: @IS_NOT_MOBILE@
16770 mirror: always
16771 rust: true
16772
16773 # Skip direct attestation consent prompts
16774 - name: security.webauthn.always_allow_direct_attestation
16775 type: RelaxedAtomicBool
16776 value: false
16777 mirror: always
16778 rust: true
16779
16780 # Show the Windows Passkey settings link in about:preferences. This is
16781 # set to true if we find that webauthn.dll is sufficiently recent.
16782 - name: security.webauthn.show_ms_settings_link
16783 type: RelaxedAtomicBool
16784 value: false
16785 mirror: always
16786
16787 # Block Worker/SharedWorker scripts with wrong MIME type.
16788 - name: security.block_Worker_with_wrong_mime
16789 type: bool
16790 value: true
16791 mirror: always
16792
16793 # Block the execution of scripts using a wrong type as defined by the file extension
16794 # (OS) mapping when loaded via the file:// protocol.
16795 - name: security.block_fileuri_script_with_wrong_mime
16796 type: bool
16797 value: false
16798 mirror: always
16799
16800 # Cancel outgoing requests from SystemPrincipal:
16801 # but only with scheme http(s) and contentpolicytype subdocument
16802 - name: security.disallow_privileged_https_subdocuments_loads
16803 type: bool
16804 value: true
16805 mirror: always
16806
16807 # but only with scheme data and contentpolicytype subdocument
16808 - name: security.disallow_privileged_data_subdocuments_loads
16809 type: bool
16810 value: true
16811 mirror: always
16812
16813 # Cancel outgoing requests from SystemPrincipal:
16814 # but only with scheme http(s) and contentpolicytype stylesheet
16815 - name: security.disallow_privileged_https_stylesheet_loads
16816 type: bool
16817 value: true
16818 mirror: always
16819
16820 # Cancel outgoing requests from SystemPrincipal:
16821 # but only with scheme http(s) and contentpolicytype script
16822 - name: security.disallow_privileged_https_script_loads
16823 type: bool
16824 value: true
16825 mirror: always
16826
16827 # Cancel outgoing requests from SystemPrincipal:
16828 # where there is no finalURI.
16829 - name: security.disallow_privileged_no_finaluri_loads
16830 type: bool
16831 value: true
16832 mirror: always
16833
16834 # Cancel outgoing requests from privileged about pages:
16835 # but only with scheme http(s) and contentpolicytype script
16836 - name: security.disallow_privilegedabout_remote_script_loads
16837 type: bool
16838 value: true
16839 mirror: always
16840
16841 # Enable preloaded static key pins by default.
16842 - name: security.cert_pinning.enforcement_level
16843 type: RelaxedAtomicUint32
16844 value: 1
16845 mirror: always
16846 do_not_use_directly: true
16847
16848 # OCSP fetching behavior:
16849 # 0: do not fetch OCSP
16850 # 1: fetch OCSP for DV and EV certificates
16851 # 2: fetch OCSP only for EV certificates
16852 - name: security.OCSP.enabled
16853 type: RelaxedAtomicUint32
16854 #ifdef ANDROID
16855 value: 2
16856 #else
16857 value: 1
16858 #endif
16859 mirror: always
16860
16861
16862 # Whether or not OCSP is required.
16863 # true => hard-fail (if an OCSP request times out, stop the connection)
16864 # false => soft-fail (if an OCSP request times out, continue the connection)
16865 - name: security.OCSP.require
16866 type: RelaxedAtomicBool
16867 value: false
16868 mirror: always
16869
16870 # How many milliseconds to wait for an OCSP response before assuming it failed
16871 # (when fetching for soft-fail).
16872 - name: security.OCSP.timeoutMilliseconds.soft
16873 type: RelaxedAtomicUint32
16874 #ifdef RELEASE_OR_BETA
16875 value: 2000
16876 #else
16877 value: 1000
16878 #endif
16879 mirror: always
16880
16881 # How many milliseconds to wait for an OCSP response before assuming it failed
16882 # (when fetching for hard-fail).
16883 - name: security.OCSP.timeoutMilliseconds.hard
16884 type: RelaxedAtomicUint32
16885 value: 10000
16886 mirror: always
16887
16888 # Whether or not to enable OCSP must-staple (in other words, TLS-feature with
16889 # status request).
16890 - name: security.ssl.enable_ocsp_must_staple
16891 type: RelaxedAtomicBool
16892 value: true
16893 mirror: always
16894
16895 # Whether or not to enable OCSP stapling.
16896 - name: security.ssl.enable_ocsp_stapling
16897 type: RelaxedAtomicBool
16898 value: true
16899 mirror: always
16900
16901 # This is checked at startup to see if NSS should be initialized without the
16902 # user's certificate and key databases.
16903 - name: security.nocertdb
16904 type: bool
16905 value: false
16906 mirror: once
16907
16908 # Whether or not to import and trust third party root certificates from the OS.
16909 - name: security.enterprise_roots.enabled
16910 type: RelaxedAtomicBool
16911 value: true
16912 mirror: always
16913
16914 # If true, attempt to load the osclientcerts PKCS#11 module at startup on a
16915 # background thread. This module allows Firefox to use client certificates
16916 # stored in OS certificate storage. Currently only available for Windows and
16917 # macOS.
16918 - name: security.osclientcerts.autoload
16919 type: RelaxedAtomicBool
16920 value: true
16921 mirror: always
16922
16923 - name: security.pki.cert_short_lifetime_in_days
16924 type: RelaxedAtomicUint32
16925 value: 10
16926 mirror: always
16927
16928 # security.pki.netscape_step_up_policy controls how the platform handles the
16929 # id-Netscape-stepUp OID in extended key usage extensions of CA certificates.
16930 # 0: id-Netscape-stepUp is always considered equivalent to id-kp-serverAuth
16931 # 1: it is considered equivalent when the notBefore is before 23 August 2016
16932 # 2: similarly, but for 23 August 2015
16933 # 3: it is never considered equivalent
16934 - name: security.pki.netscape_step_up_policy
16935 type: RelaxedAtomicUint32
16936 #ifdef RELEASE_OR_BETA
16937 value: 1
16938 #else
16939 value: 2
16940 #endif
16941 mirror: always
16942
16943 # Configures Certificate Transparency support mode:
16944 # 0: Fully disabled.
16945 # 1: Only collect telemetry. CT qualification checks are not performed.
16946 # 2: Enforce CT.
16947 - name: security.pki.certificate_transparency.mode
16948 type: RelaxedAtomicUint32
16949 #if defined(ANDROID) && !defined(EARLY_BETA_OR_EARLIER)
16950 value: 0
16951 #else
16952 value: 2
16953 #endif
16954 mirror: always
16955
16956 # A comma-separated list of host names to not enforce certificate transparency
16957 # for. Entries of the form 'example.com' apply to the host 'example.com' and
16958 # all subdomains (e.g. 'sub.example.com', 'sub.www.example.com', etc.).
16959 # Entries of the form '.example.com' only apply to the host 'example.com'.
16960 # Entries may also be IP addresses.
16961 - name: security.pki.certificate_transparency.disable_for_hosts
16962 type: String
16963 value: ""
16964 mirror: never
16965
16966 # A comma-separated list of base64-encoded sha256 hashes of subject public key
16967 # infos to not enforce certificate transparency for. If a verified certificate
16968 # chain contains a certificate with a SPKI hash in this list, certificate
16969 # transparency will not be enforced for that connection.
16970 - name: security.pki.certificate_transparency.disable_for_spki_hashes
16971 type: String
16972 value: ""
16973 mirror: never
16974
16975 # 0: Disable CRLite entirely.
16976 # 1: Enable CRLite but only to collect telemetry.
16977 # 2: Enable CRLite and enforce its results. Firefox will not fetch OCSP for DV
16978 # certificates that chain to the Mozilla root store unless
16979 # security.OCSP.require is true. Firefox will, however, fetch OCSP for EV
16980 # certificates that chain to the Mozilla root store (unless
16981 # security.OCSP.enable is 0).
16982 # 3: Enable CRLite but only enforce "Not Revoked" results. Firefox will fetch
16983 # OCSP for certificates that are not covered by CRLite. Firefox will also
16984 # fetch OCSP to confirm CRLite "Revoked" responses.
16985 - name: security.pki.crlite_mode
16986 type: RelaxedAtomicUint32
16987 #if defined(EARLY_BETA_OR_EARLIER)
16988 value: 2
16989 #else
16990 value: 3
16991 #endif
16992 mirror: always
16993
16994 # The CRLite filter channel to which the user is subscribed.
16995 # - "default" => clubcards that contain all revocations
16996 # - "compat" => clubcards that contain priority revocations
16997 - name: security.pki.crlite_channel
16998 type: String
16999 value: "default"
17000 mirror: never
17001
17002 # The number of SCTs that must be "covered" by a CRLite filter before
17003 # we will enforce a result from that filter.
17004 - name: security.pki.crlite_timestamps_for_coverage
17005 type: RelaxedAtomicUint32
17006 value: 1
17007 mirror: always
17008 rust: true
17009
17010 - name: security.pki.use_modern_crypto_with_pkcs12
17011 type: RelaxedAtomicBool
17012 value: true
17013 mirror: always
17014
17015 # The number of entries in the certificate signature cache.
17016 # A higher number increases memory usage, but should increase the cache hit rate.
17017 # Each entry is approximately 64 bytes, and the maximum number of entries is 65535.
17018 - name: security.pki.cert_signature_cache_size
17019 type: RelaxedAtomicUint32
17020 value: 128
17021 mirror: always
17022
17023 # The number of entries in the SCT signature cache.
17024 # A higher number increases memory usage, but should increase the cache hit rate.
17025 # Each entry is approximately 64 bytes, and the maximum number of entries is 65535.
17026 # There will be 2-3 SCTs per certificate, so this probably needs to be 2-3x
17027 # security.pki.cert_signature_cache_size to achieve similar hit rates.
17028 - name: security.pki.sct_signature_cache_size
17029 type: RelaxedAtomicUint32
17030 value: 256
17031 mirror: always
17032
17033 # The number of entries in the certificate trust cache.
17034 # A higher number increases memory usage, but should increase the cache hit rate.
17035 # Each entry is approximately 65 bytes, and the maximum number of entries is 65535.
17036 - name: security.pki.cert_trust_cache_size
17037 type: RelaxedAtomicUint32
17038 value: 128
17039 mirror: always
17040
17041 - name: security.tls.version.min
17042 type: RelaxedAtomicUint32
17043 value: 3
17044 mirror: always
17045
17046 - name: security.tls.version.max
17047 type: RelaxedAtomicUint32
17048 value: 4
17049 mirror: always
17050
17051 - name: security.tls.version.enable-deprecated
17052 type: RelaxedAtomicBool
17053 value: false
17054 mirror: always
17055
17056 - name: security.tls.version.fallback-limit
17057 type: RelaxedAtomicUint32
17058 value: 4
17059 mirror: always
17060
17061 # Turn off post-handshake authentication for TLS 1.3 by default,
17062 # until the incompatibility with HTTP/2 is resolved:
17063 # https://tools.ietf.org/html/draft-davidben-http2-tls13-00
17064 - name: security.tls.enable_post_handshake_auth
17065 type: RelaxedAtomicBool
17066 value: false
17067 mirror: always
17068
17069 # Probability of GREASEing a TLS connection with ECH (0-100)
17070 # 0 means never GREASE, 100 means always GREASE
17071 - name: security.tls.ech.grease_probability
17072 type: RelaxedAtomicUint32
17073 value: 100
17074 mirror: always
17075
17076 # Whether to apply ECH GREASE settings to HTTP3/QUIC connections
17077 - name: security.tls.ech.grease_http3
17078 type: RelaxedAtomicBool
17079 value: true
17080 mirror: always
17081
17082 # Whether to retry connections without ECH Grease
17083 - name: security.tls.ech.disable_grease_on_fallback
17084 type: RelaxedAtomicBool
17085 value: false
17086 mirror: always
17087
17088 # ECH GREASE Padding target (1-255)
17089 - name: security.tls.ech.grease_size
17090 type: RelaxedAtomicUint32
17091 value: 100
17092 mirror: always
17093
17094 # Whether to apply GREASE settings to HTTP3/QUIC connections
17095 - name: security.tls.grease_http3_enable
17096 type: RelaxedAtomicBool
17097 value: false
17098 mirror: always
17099 rust: true
17100
17101 - name: security.tls.hello_downgrade_check
17102 type: RelaxedAtomicBool
17103 value: true
17104 mirror: always
17105
17106 - name: security.tls.enable_delegated_credentials
17107 type: RelaxedAtomicBool
17108 value: true
17109 mirror: always
17110
17111 - name: security.tls.enable_0rtt_data
17112 type: RelaxedAtomicBool
17113 value: true
17114 mirror: always
17115
17116 - name: security.tls.enable_kyber
17117 type: RelaxedAtomicBool
17118 #ifdef ANDROID
17119 value: @IS_NIGHTLY_BUILD@
17120 #else
17121 value: true
17122 #endif
17123 mirror: always
17124 rust: true
17125
17126 - name: security.tls.client_hello.send_p256_keyshare
17127 type: RelaxedAtomicBool
17128 value: true
17129 mirror: always
17130 rust: true
17131
17132 - name: security.tls.enable_certificate_compression_zlib
17133 type: RelaxedAtomicBool
17134 value: true
17135 mirror: always
17136 rust: true
17137
17138 - name: security.tls.enable_certificate_compression_brotli
17139 type: RelaxedAtomicBool
17140 value: true
17141 mirror: always
17142 rust: true
17143
17144 - name: security.tls.enable_certificate_compression_zstd
17145 type: RelaxedAtomicBool
17146 value: true
17147 mirror: always
17148 rust: true
17149
17150 - name: security.ssl.treat_unsafe_negotiation_as_broken
17151 type: RelaxedAtomicBool
17152 value: false
17153 mirror: always
17154
17155 - name: security.ssl.require_safe_negotiation
17156 type: RelaxedAtomicBool
17157 value: false
17158 mirror: always
17159
17160 - name: security.ssl.enable_false_start
17161 type: RelaxedAtomicBool
17162 value: true
17163 mirror: always
17164
17165 - name: security.ssl.enable_alpn
17166 type: RelaxedAtomicBool
17167 value: true
17168 mirror: always
17169
17170 - name: security.ssl.disable_session_identifiers
17171 type: RelaxedAtomicBool
17172 value: false
17173 mirror: always
17174
17175 - name: security.ssl3.ecdhe_rsa_aes_128_gcm_sha256
17176 type: RelaxedAtomicBool
17177 value: true
17178 mirror: always
17179
17180 - name: security.ssl3.ecdhe_ecdsa_aes_128_gcm_sha256
17181 type: RelaxedAtomicBool
17182 value: true
17183 mirror: always
17184
17185 - name: security.ssl3.ecdhe_ecdsa_chacha20_poly1305_sha256
17186 type: RelaxedAtomicBool
17187 value: true
17188 mirror: always
17189
17190 - name: security.ssl3.ecdhe_rsa_chacha20_poly1305_sha256
17191 type: RelaxedAtomicBool
17192 value: true
17193 mirror: always
17194
17195 - name: security.ssl3.ecdhe_ecdsa_aes_256_gcm_sha384
17196 type: RelaxedAtomicBool
17197 value: true
17198 mirror: always
17199
17200 - name: security.ssl3.ecdhe_rsa_aes_256_gcm_sha384
17201 type: RelaxedAtomicBool
17202 value: true
17203 mirror: always
17204
17205 - name: security.ssl3.ecdhe_rsa_aes_128_sha
17206 type: RelaxedAtomicBool
17207 value: true
17208 mirror: always
17209
17210 - name: security.ssl3.ecdhe_ecdsa_aes_128_sha
17211 type: RelaxedAtomicBool
17212 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
17213 mirror: always
17214
17215 - name: security.ssl3.ecdhe_rsa_aes_256_sha
17216 type: RelaxedAtomicBool
17217 value: true
17218 mirror: always
17219
17220 - name: security.ssl3.ecdhe_ecdsa_aes_256_sha
17221 type: RelaxedAtomicBool
17222 value: @IS_NOT_EARLY_BETA_OR_EARLIER@
17223 mirror: always
17224
17225 - name: security.ssl3.dhe_rsa_aes_128_sha
17226 type: RelaxedAtomicBool
17227 value: false
17228 mirror: always
17229
17230 - name: security.ssl3.dhe_rsa_aes_256_sha
17231 type: RelaxedAtomicBool
17232 value: false
17233 mirror: always
17234
17235 - name: security.ssl3.rsa_aes_128_sha
17236 type: RelaxedAtomicBool
17237 value: true
17238 mirror: always
17239
17240 - name: security.ssl3.rsa_aes_256_sha
17241 type: RelaxedAtomicBool
17242 value: true
17243 mirror: always
17244
17245 - name: security.ssl3.rsa_aes_128_gcm_sha256
17246 type: RelaxedAtomicBool
17247 value: true
17248 mirror: always
17249
17250 - name: security.ssl3.rsa_aes_256_gcm_sha384
17251 type: RelaxedAtomicBool
17252 value: true
17253 mirror: always
17254
17255 - name: security.ssl3.deprecated.rsa_des_ede3_sha
17256 type: RelaxedAtomicBool
17257 value: true
17258 mirror: always
17259
17260 - name: security.tls13.aes_128_gcm_sha256
17261 type: RelaxedAtomicBool
17262 value: true
17263 mirror: always
17264
17265 - name: security.tls13.chacha20_poly1305_sha256
17266 type: RelaxedAtomicBool
17267 value: true
17268 mirror: always
17269
17270 - name: security.tls13.aes_256_gcm_sha384
17271 type: RelaxedAtomicBool
17272 value: true
17273 mirror: always
17274
17275 #---------------------------------------------------------------------------
17276 # Prefs starting with "signon."
17277 #---------------------------------------------------------------------------
17278 - name: signon.usernameOnlyForm.enabled
17279 type: bool
17280 value: true
17281 mirror: always
17282
17283 #---------------------------------------------------------------------------
17284 # Prefs starting with "slider."
17285 #---------------------------------------------------------------------------
17286
17287 # Scrollbar snapping region.
17288 # - 0: off
17289 # - 1 and higher: slider thickness multiple
17290 - name: slider.snapMultiplier
17291 type: int32_t
17292 #ifdef XP_WIN
17293 value: 6
17294 #else
17295 value: 0
17296 #endif
17297 mirror: always
17298
17299 #---------------------------------------------------------------------------
17300 # Prefs starting with "storage."
17301 #---------------------------------------------------------------------------
17302
17303 # Whether to use a non-exclusive VFS.
17304 # By default we use the unix-excl VFS, for the following reasons:
17305 # 1. It improves compatibility with NFS shares, whose implementation
17306 # is incompatible with SQLite's locking requirements (reliable fcntl), and
17307 # in particular with WAL journaling.
17308 # Bug 433129 attempted to automatically identify such file-systems,
17309 # but a reliable way was not found and the fallback locking is slower than
17310 # POSIX locking, so we do not want to do it by default.
17311 # 2. It allows wal mode to avoid the memory mapped -shm file, reducing the
17312 # likelihood of SIGBUS failures when disk space is exhausted.
17313 # 3. It provides some protection from third party database tampering while a
17314 # connection is open.
17315 # Note there's no win32-excl VFS, so this has no effect on Windows.
17316 - name: storage.sqlite.exclusiveLock.enabled
17317 type: RelaxedAtomicBool
17318 value: @IS_NOT_MOBILE@
17319 mirror: always
17320
17321 #---------------------------------------------------------------------------
17322 # Prefs starting with "svg."
17323 #---------------------------------------------------------------------------
17324
17325 # This pref controls whether the 'context-fill' and 'context-stroke' keywords
17326 # can be used in SVG-as-an-image in the content processes to use the fill/
17327 # stroke specified on the element that embeds the image. (These keywords are
17328 # always enabled in the chrome process, regardless of this pref.) Also, these
17329 # keywords are currently not part of any spec, which is partly why we disable
17330 # them for web content.
17331 - name: svg.context-properties.content.enabled
17332 type: RelaxedAtomicBool
17333 value: false
17334 mirror: always
17335
17336 # This pref controls whether the `prefers-color-scheme` value of SVG images
17337 # reacts to the embedder `color-scheme` in content.
17338 - name: svg.embedder-prefers-color-scheme.content.enabled
17339 type: RelaxedAtomicBool
17340 value: true
17341 mirror: always
17342
17343 # Enables the 'context-fill' and 'context-stroke' keywords for particular
17344 # domains. We expect this list to be Mozilla-controlled properties, since the
17345 # 'context-*' keywords are not part of any spec. We expect to remove this
17346 # preference and the 'context-` keyword support entirely in the
17347 # not-too-distant future when a standardized alternative ships. This preference
17348 # is _not_ for allowing web content to use these keywords. For performance
17349 # reasons, the list of domains in this preference should remain short in
17350 # length.
17351 - name: svg.context-properties.content.allowed-domains
17352 type: String
17353 value: ""
17354 mirror: never
17355
17356 # Is support for the new getBBox method from SVG 2 enabled?
17357 # See https://svgwg.org/svg2-draft/single-page.html#types-SVGBoundingBoxOptions
17358 - name: svg.new-getBBox.enabled
17359 type: bool
17360 value: @IS_NIGHTLY_BUILD@
17361 mirror: always
17362
17363 # Whether we use Moz2D Path::GetStrokedBounds to get the stroke bounds.
17364 - name: svg.Moz2D.strokeBounds.enabled
17365 type: bool
17366 value: @IS_NIGHTLY_BUILD@
17367 mirror: always
17368
17369 # Whether SVGGraphicsElement.nearestViewportElement and SVGGraphicsElement.farthestViewportElement are enabled.
17370 - name: svg.nearestAndFarthestViewportElement.enabled
17371 type: bool
17372 value: false
17373 mirror: always
17374
17375 # Whether SVGAElement.text is enabled.
17376 - name: svg.SVGAElement.text.enabled
17377 type: bool
17378 value: false
17379 mirror: always
17380
17381 # Tweak which elements are allowed in <svg:use> subtrees, and in which
17382 # circumstances. See RemoveForbiddenNodes in SVGUseElement.cpp for the spec
17383 # text.
17384 #
17385 # - 0: Don't restrict ever.
17386 # - 1: Restrict only cross-document.
17387 # - 2/other: restrict always.
17388 #
17389 # We allow the behavior to be configurable via this pref. Our chosen default
17390 # value forbids non-graphical content in <svg:use> clones of cross-document
17391 # elements. This is a compromise between our more-permissive pre-existing
17392 # behavior (which SVG 2 seems to call for, and maps to pref value 0) and the
17393 # behavior of other UAs (which SVG 1.1 seems to call for, and maps to pref
17394 # value 2).
17395 - name: svg.use-element.graphics-element-restrictions
17396 type: int32_t
17397 value: 1
17398 mirror: always
17399
17400 # Whether to restrict <svg:use> element recursion levels.
17401 #
17402 # - 0: Don't restrict ever.
17403 # - 1: Restrict everywhere
17404 # - 2/other: Restrict only in the parent process.
17405 #
17406 - name: svg.use-element.recursive-clone-limit.enabled
17407 type: int32_t
17408 value: 2
17409 mirror: always
17410
17411 # What is the recursion limit for svg use element cloning if enabled.
17412 - name: svg.use-element.recursive-clone-limit
17413 type: uint32_t
17414 value: 8
17415 mirror: always
17416
17417 # Whether <svg:use> with a data: URL as href is allowed
17418 - name: svg.use-element.data-url-href.allowed
17419 type: bool
17420 value: false
17421 mirror: always
17422
17423 #---------------------------------------------------------------------------
17424 # Prefs starting with "telemetry."
17425 #---------------------------------------------------------------------------
17426
17427 - name: telemetry.number_of_site_origin.min_interval
17428 type: uint32_t
17429 value: 300000
17430 mirror: always
17431
17432 - name: telemetry.fog.test.localhost_port
17433 type: RelaxedAtomicInt32
17434 value: 0
17435 mirror: always
17436 rust: true
17437
17438 - name: telemetry.fog.test.activity_limit
17439 type: RelaxedAtomicInt32
17440 value: 120
17441 mirror: always
17442 rust: true
17443
17444 - name: telemetry.fog.test.inactivity_limit
17445 type: RelaxedAtomicInt32
17446 value: 1200
17447 mirror: always
17448 rust: true
17449
17450 - name: telemetry.fog.artifact_build
17451 type: RelaxedAtomicBool
17452 value: false
17453 mirror: always
17454
17455 - name: telemetry.fog.init_on_shutdown
17456 type: RelaxedAtomicBool
17457 value: true
17458 mirror: always
17459
17460 #---------------------------------------------------------------------------
17461 # Prefs starting with "test."
17462 #---------------------------------------------------------------------------
17463
17464 # A mechanism to make the current time seem later than it is for specific
17465 # operations. Currently used to test expiration of the HSTS preload list.
17466 - name: test.currentTimeOffsetSeconds
17467 type: RelaxedAtomicUint32
17468 value: 0
17469 mirror: always
17470
17471 - name: test.events.async.enabled
17472 type: RelaxedAtomicBool
17473 value: false
17474 mirror: always
17475
17476 # Enable assertions in IMEContentObserver::FlatTextCache on debug builds.
17477 # If this pref is enabled, DOM mutation becomes much slower.
17478 - name: test.ime_content_observer.assert_valid_cache
17479 type: bool
17480 value: false
17481 mirror: always
17482
17483 - name: test.mousescroll
17484 type: RelaxedAtomicBool
17485 value: false
17486 mirror: always
17487
17488 #---------------------------------------------------------------------------
17489 # Prefs starting with "thread."
17490 #---------------------------------------------------------------------------
17491
17492 # If the service is available, set threads to low-power mode when in the background.
17493 - name: threads.use_low_power.enabled
17494 type: RelaxedAtomicBool
17495 #ifdef XP_MACOSX
17496 value: true
17497 #else
17498 value: @IS_NIGHTLY_BUILD@
17499 #endif
17500 mirror: always
17501
17502
17503 # If the process priority is set to background, put the main thread in the background.
17504 # Currently off by default.
17505 - name: threads.lower_mainthread_priority_in_background.enabled
17506 type: bool
17507 #ifdef XP_MACOSX
17508 value: true
17509 #else
17510 value: @IS_NIGHTLY_BUILD@
17511 #endif
17512 mirror: always
17513
17514 #---------------------------------------------------------------------------
17515 # Prefs starting with "timer."
17516 #---------------------------------------------------------------------------
17517
17518 # Since our timestamp on macOS does not increment while the system is asleep, we
17519 # should ignore sleep/wake notifications to make timer thread process timers.
17520 - name: timer.ignore_sleep_wake_notifications
17521 type: RelaxedAtomicBool
17522 #ifdef XP_MACOSX
17523 value: true
17524 #else
17525 value: false
17526 #endif
17527 mirror: always
17528
17529 # Amount of time by which it is always acceptable to delay the firing of a timer.
17530 # Any timer may be delayed by up to this amount in order to enable timers to be
17531 # bundled together for efficiency.
17532 - name: timer.minimum_firing_delay_tolerance_ms
17533 type: AtomicFloat
17534 value: 1.0
17535 mirror: always
17536
17537 # Maximum amount of time by which it is ever acceptable to delay the firing of a timer.
17538 # Setting this to zero will effectively disable timer coalescing.
17539 - name: timer.maximum_firing_delay_tolerance_ms
17540 type: AtomicFloat
17541 value: 10000.0
17542 mirror: always
17543
17544 #ifdef XP_WIN
17545 # Controls whether or not TimerThread will automatically increase the Windows timer
17546 # resolution when appropriate conditions are met.
17547 - name: timer.auto_increase_timer_resolution
17548 type: RelaxedAtomicBool
17549 #ifdef NIGHTLY_BUILD
17550 value: true
17551 #else
17552 value: false
17553 #endif
17554 mirror: always
17555 #endif
17556
17557 #---------------------------------------------------------------------------
17558 # Prefs starting with "toolkit."
17559 #---------------------------------------------------------------------------
17560
17561 # Makes removeDirectory background task wait for the given milliseconds before removal.
17562 - name: toolkit.background_tasks.remove_directory.testing.sleep_ms
17563 type: RelaxedAtomicUint32
17564 value: 0
17565 mirror: always
17566
17567 # Indicates whether we are testng crash annotation validation. In DEBUG builds,
17568 # invalid crash annotations cause an assertion failure, which would prevent us
17569 # from checking the non-DEBUG behavior.
17570 #ifdef DEBUG
17571 - name: toolkit.crash_annotation.testing_validation
17572 type: bool
17573 value: false
17574 mirror: always
17575 #endif
17576
17577 # Returns true if BHR is disabled.
17578 - name: toolkit.content-background-hang-monitor.disabled
17579 type: bool
17580 value: false
17581 mirror: always
17582
17583 - name: toolkit.scrollbox.smoothScroll
17584 type: RelaxedAtomicBool
17585 value: true
17586 mirror: always
17587
17588 - name: toolkit.scrollbox.horizontalScrollDistance
17589 type: RelaxedAtomicInt32
17590 value: 5
17591 mirror: always
17592
17593 - name: toolkit.scrollbox.verticalScrollDistance
17594 type: RelaxedAtomicInt32
17595 value: 3
17596 mirror: always
17597
17598 # The maximum overlap between pages when scrolling with
17599 # page-up/page-down/spacebar, as a percentage of scrollport size.
17600 - name: toolkit.scrollbox.pagescroll.maxOverlapPercent
17601 type: RelaxedAtomicInt32
17602 value: 10
17603 mirror: always
17604
17605 # The maximum overlap between pages when scrolling with
17606 # page-up/page-down/spacebar, in lines.
17607 - name: toolkit.scrollbox.pagescroll.maxOverlapLines
17608 type: RelaxedAtomicInt32
17609 value: 2
17610 mirror: always
17611
17612 # The lateWriteChecksStage and fastShutdownStage below represent the stage
17613 # of shutdown after which we (for lateWriteChecksStage) crash / gather
17614 # telemetry data on file writes, or (for fastShutdownStage) we call _exit(0).
17615 # Higher values are earlier during shutdown, and the full enumeration can
17616 # be found in AppShutdown.h in the AppShutdownPhase enum.
17617 - name: toolkit.shutdown.lateWriteChecksStage
17618 type: int32_t
17619 #ifdef MOZ_CODE_COVERAGE
17620 value: 0
17621 #else
17622 value: 2
17623 #endif
17624 mirror: always
17625
17626 # See the comment above toolkit.shutdown.lateWriteChecksStage. A higher value
17627 # for this pref means we call _exit(0) earlier during shutdown.
17628 - name: toolkit.shutdown.fastShutdownStage
17629 type: int32_t
17630 #if !defined(DEBUG) && !defined(MOZ_ASAN) && !defined(MOZ_TSAN) && !defined(MOZ_CODE_COVERAGE) && !defined(MOZ_VALGRIND) && !defined(MOZ_PROFILE_GENERATE) && !defined(JS_STRUCTURED_SPEW)
17631 value: 1
17632 #else
17633 value: 0
17634 #endif
17635 mirror: always
17636
17637 # Sending each remote accumulation immediately places undue strain on the IPC
17638 # subsystem. Batch the remote accumulations for a period of time before sending
17639 # them all at once. This value was chosen as a balance between data timeliness
17640 # and performance (see bug 1218576).
17641 - name: toolkit.telemetry.ipcBatchTimeout
17642 type: uint32_t
17643 value: 2000
17644 mirror: always
17645
17646 - name: toolkit.telemetry.testing.overrideProductsCheck
17647 type: RelaxedAtomicBool
17648 value: false
17649 mirror: always
17650
17651 #---------------------------------------------------------------------------
17652 # Prefs starting with "ui."
17653 #---------------------------------------------------------------------------
17654
17655 - name: ui.key.generalAccessKey
17656 type: int32_t
17657 value: -1
17658 mirror: always
17659
17660 # Use 17 for Ctrl, 18 for Alt, 91 or 224 for Meta, 0 for none.
17661 - name: ui.key.accelKey
17662 type: uint32_t
17663 #ifdef XP_MACOSX
17664 value: 224
17665 #else
17666 value: 17
17667 #endif
17668 mirror: always
17669
17670 # See above for the key codes to use.
17671 - name: ui.key.menuAccessKey
17672 type: uint32_t
17673 #ifdef XP_MACOSX
17674 value: 0
17675 #else
17676 value: 18
17677 #endif
17678 mirror: always
17679
17680 # Only used if generalAccessKey is -1.
17681 - name: ui.key.chromeAccess
17682 type: int32_t
17683 #ifdef XP_MACOSX
17684 # 0 = disabled, 1 = Shift, 2 = Ctrl, 4 = Alt, 3 = ctrl+shift, 8 = Meta
17685 value: 2
17686 #else
17687 # 0 = disabled, 1 = Shift, 2 = Ctrl, 4 = Alt, 5 = Alt+Shift, 8 = Win
17688 value: 4
17689 #endif
17690 mirror: always
17691
17692 # Only used if generalAccessKey is -1.
17693 - name: ui.key.contentAccess
17694 type: int32_t
17695 #ifdef XP_MACOSX
17696 # 0 = disabled, 1 = Shift, 2 = Ctrl, 4 = Alt, 3 = ctrl+shift, 8 = Meta
17697 value: 6
17698 #else
17699 # 0 = disabled, 1 = Shift, 2 = Ctrl, 4 = Alt, 5 = Alt+Shift, 8 = Win
17700 value: 5
17701 #endif
17702 mirror: always
17703
17704 #ifdef XP_WIN
17705 - name: ui.key.layout.load_when_first_needed
17706 type: bool
17707 value: @IS_EARLY_BETA_OR_EARLIER@
17708 mirror: always
17709 #endif
17710
17711 # Does the access key by itself focus the menu bar?
17712 - name: ui.key.menuAccessKeyFocuses
17713 type: bool
17714 #if defined(XP_WIN) || defined(MOZ_WIDGET_GTK)
17715 # On Windows and Linux, we now default to showing the menu bar only when alt
17716 # is pressed.
17717 value: true
17718 #else
17719 value: false
17720 #endif
17721 mirror: always
17722
17723 # Whether native key bindings in the environment or builtin shortcut key
17724 # definitions in Gecko are used first in <input> and <textarea>
17725 - name: ui.key.textcontrol.prefer_native_key_bindings_over_builtin_shortcut_key_definitions
17726 type: bool
17727 value: true
17728 mirror: always
17729
17730 #ifdef MOZ_WIDGET_GTK
17731 # Only GtkTextView (native multiline text viewer/editor) supports "select-all"
17732 # signal so that we cannot know "select-all" key bindings only with GtkEntry.
17733 # When this pref is set to true, if a key combination does not cause any
17734 # signals in GtkEntry, try to check the key combination is mapped to
17735 # "select-all" in GtkTextView or not. If it's mapped to other commands, they
17736 # are just ignored.
17737 - name: ui.key.use_select_all_in_single_line_editor
17738 type: bool
17739 value: true
17740 mirror: always
17741 #endif
17742
17743 # Duration of timeout of incremental search in menus (ms). 0 means infinite.
17744 - name: ui.menu.incremental_search.timeout
17745 type: uint32_t
17746 value: 1000
17747 mirror: always
17748
17749 # If true, popups are attached to their native parent window (and move with it)
17750 # and can't overlap the OS chrome. Otherwise they are topmost.
17751 # NOTE(emilio): Comments below might not be accurate anymore.
17752 - name: ui.panel.default_level_parent
17753 type: RelaxedAtomicBool
17754 #if defined(XP_WIN) || defined(XP_MACOSX)
17755 # See bug 448927, on topmost panel, some IMEs are not usable on Windows.
17756 # See bug 404131, topmost <panel> element wins to Dashboard on MacOSX.
17757 value: true
17758 #else
17759 # Setting default_level_parent to true makes the default level for popup
17760 # windows "top" instead of "parent". On GTK2 platform, this is implemented
17761 # with override-redirect windows which is the normal way to implement
17762 # temporary popup windows. Setting this to false would make the default
17763 # level "parent" which is implemented with managed windows. A problem with
17764 # using managed windows is that metacity sometimes deactivates the parent
17765 # window when the managed popup is shown, see bug 526941.
17766 #
17767 # TODO(emilio): Re-evaluate this default, the comment above is no longer
17768 # true since bug 552982 (where we started looking at mNoAutohide rather than
17769 # popup level to make the override-redirect vs. managed window distinction).
17770 #
17771 # The Android default was copied from GTK in bug 568700.
17772 value: false
17773 #endif
17774 mirror: always
17775
17776 # If true, all popups won't hide automatically on blur
17777 - name: ui.popup.disable_autohide
17778 type: RelaxedAtomicBool
17779 value: false
17780 mirror: always
17781
17782 # Negate scroll, true will make the mouse scroll wheel move the screen the
17783 # same direction as with most desktops or laptops.
17784 - name: ui.scrolling.negate_wheel_scroll
17785 type: RelaxedAtomicBool
17786 value: @IS_ANDROID@
17787 mirror: always
17788
17789 # Delay in milliseconds for tooltips
17790 - name: ui.tooltip.delay_ms
17791 type: uint32_t
17792 value: 500
17793 mirror: always
17794
17795 # If the user puts a finger down on an element and we think the user might be
17796 # executing a pan gesture, how long do we wait before tentatively deciding the
17797 # gesture is actually a tap and activating the target element?
17798 - name: ui.touch_activation.delay_ms
17799 type: int32_t
17800 value: 100
17801 mirror: always
17802
17803 # If the user has clicked an element, how long do we keep the :active state
17804 # before it is cleared.
17805 - name: ui.touch_activation.duration_ms
17806 type: int32_t
17807 value: 50
17808 mirror: always
17809
17810 # Prevent system colors from being exposed to CSS or canvas.
17811 - name: ui.use_standins_for_native_colors
17812 type: RelaxedAtomicBool
17813 value: false
17814 mirror: always
17815
17816 # Whether context menus should only appear on mouseup instead of mousedown,
17817 # on OSes where they normally appear on mousedown (macOS, *nix).
17818 # Note: ignored on Windows (context menus always use mouseup).
17819 - name: ui.context_menus.after_mouseup
17820 type: bool
17821 value: false
17822 mirror: always
17823
17824 # Whether click-hold context menus are enabled.
17825 - name: ui.click_hold_context_menus
17826 type: RelaxedAtomicBool
17827 value: false
17828 mirror: always
17829
17830 # How long to wait for a drag gesture before displaying click-hold context menu,
17831 # in milliseconds.
17832 - name: ui.click_hold_context_menus.delay
17833 type: RelaxedAtomicInt32
17834 value: 500
17835 mirror: always
17836
17837 # When enabled, the touch.radius and mouse.radius prefs allow events to be
17838 # dispatched to nearby elements that are sensitive to the event. See
17839 # PositionedEventTargeting.cpp. The 'mm' prefs define a rectangle around the
17840 # nominal event target point within which we will search for suitable elements.
17841 # 'visitedWeight' is a percentage weight; a value > 100 makes a visited link be
17842 # treated as further away from the event target than it really is, while a
17843 # value < 100 makes a visited link be treated as closer to the event target
17844 # than it really is.
17845
17846 - name: ui.touch.radius.enabled
17847 type: bool
17848 value: @IS_ANDROID@
17849 mirror: always
17850
17851 - name: ui.touch.radius.topmm
17852 type: uint32_t
17853 #ifdef ANDROID
17854 value: 2
17855 #else
17856 value: 12
17857 #endif
17858 mirror: always
17859
17860 - name: ui.touch.radius.rightmm
17861 type: uint32_t
17862 #ifdef ANDROID
17863 value: 3
17864 #else
17865 value: 8
17866 #endif
17867 mirror: always
17868
17869 - name: ui.touch.radius.bottommm
17870 type: uint32_t
17871 #ifdef ANDROID
17872 value: 2
17873 #else
17874 value: 4
17875 #endif
17876 mirror: always
17877
17878 - name: ui.touch.radius.leftmm
17879 type: uint32_t
17880 #ifdef ANDROID
17881 value: 3
17882 #else
17883 value: 8
17884 #endif
17885 mirror: always
17886
17887 # If this pref and ui.touch.radious.enabled are both true, clickable content is
17888 # also treated as touchable content if and only if a sigle touch.
17889 - name: ui.touch.radius.single_touch.treat_clickable_as_touchable
17890 type: bool
17891 value: true
17892 mirror: always
17893
17894 - name: ui.touch.radius.visitedWeight
17895 type: uint32_t
17896 value: 120
17897 mirror: always
17898
17899 - name: ui.mouse.radius.enabled
17900 type: bool
17901 value: @IS_ANDROID@
17902 mirror: always
17903
17904 - name: ui.mouse.radius.topmm
17905 type: uint32_t
17906 #ifdef ANDROID
17907 value: 2
17908 #else
17909 value: 12
17910 #endif
17911 mirror: always
17912
17913 - name: ui.mouse.radius.rightmm
17914 type: uint32_t
17915 #ifdef ANDROID
17916 value: 3
17917 #else
17918 value: 8
17919 #endif
17920 mirror: always
17921
17922 - name: ui.mouse.radius.bottommm
17923 type: uint32_t
17924 #ifdef ANDROID
17925 value: 2
17926 #else
17927 value: 4
17928 #endif
17929 mirror: always
17930
17931 - name: ui.mouse.radius.leftmm
17932 type: uint32_t
17933 #ifdef ANDROID
17934 value: 3
17935 #else
17936 value: 8
17937 #endif
17938 mirror: always
17939
17940 - name: ui.mouse.radius.visitedWeight
17941 type: uint32_t
17942 value: 120
17943 mirror: always
17944
17945 - name: ui.mouse.radius.reposition
17946 type: bool
17947 value: @IS_ANDROID@
17948 mirror: always
17949
17950 # When true, the ui.mouse.radius.* prefs will only affect simulated mouse
17951 # events generated by touch input. When false, the prefs will be used for all
17952 # mouse events.
17953 - name: ui.mouse.radius.inputSource.touchOnly
17954 type: bool
17955 value: true
17956 mirror: always
17957
17958 # When true, selection is not collapsed at the right click point if there is a
17959 # non-collapsed selection.
17960 - name: ui.mouse.right_click.collapse_selection.stop_if_non_collapsed_selection
17961 type: bool
17962 value: true
17963 mirror: always
17964
17965 # When true, selection is not collapsed at the right click point if the clicked
17966 # node is not editable.
17967 - name: ui.mouse.right_click.collapse_selection.stop_if_non_editable_node
17968 type: bool
17969 value: false
17970 mirror: always
17971
17972 # When true, the caret is not moved to the right click point in focused editable
17973 # content.
17974 - name: ui.mouse.right_click.move_caret.stop_if_in_focused_editable_node
17975 type: bool
17976 value: false
17977 mirror: always
17978
17979 #---------------------------------------------------------------------------
17980 # Prefs starting with "urlclassifier."
17981 #---------------------------------------------------------------------------
17982
17983 # Update server response timeout for Safe Browsing.
17984 - name: urlclassifier.update.response_timeout_ms
17985 type: uint32_t
17986 value: 30000
17987 mirror: always
17988
17989 # Download update timeout for Safe Browsing.
17990 - name: urlclassifier.update.timeout_ms
17991 type: uint32_t
17992 value: 90000
17993 mirror: always
17994
17995 # Whether to delay the CRC32 check of prefix files until the update.
17996 - name: urlclassifier.delay_prefixes_crc32_check
17997 type: RelaxedAtomicBool
17998 value: false
17999 mirror: always
18000 #---------------------------------------------------------------------------
18001 # Prefs starting with "view_source."
18002 #---------------------------------------------------------------------------
18003
18004 - name: view_source.editor.external
18005 type: bool
18006 value: false
18007 mirror: always
18008
18009 - name: view_source.wrap_long_lines
18010 type: bool
18011 value: @IS_ANDROID@
18012 mirror: always
18013
18014 - name: view_source.syntax_highlight
18015 type: bool
18016 value: true
18017 mirror: always
18018
18019 - name: view_source.tab_size
18020 type: int32_t
18021 value: 4
18022 mirror: always
18023
18024 #---------------------------------------------------------------------------
18025 # Prefs starting with "webgl." (for pref access from Worker threads)
18026 #---------------------------------------------------------------------------
18027
18028 - name: webgl.1.allow-core-profiles
18029 type: RelaxedAtomicBool
18030 #ifdef XP_MACOSX
18031 value: true
18032 #else
18033 value: false
18034 #endif
18035 mirror: always
18036
18037 - name: webgl.1.request_es2
18038 type: RelaxedAtomicBool
18039 #ifdef XP_WIN
18040 value: false
18041 #else
18042 value: true
18043 #endif
18044 mirror: always
18045
18046 - name: webgl.angle.force-d3d11
18047 type: RelaxedAtomicBool
18048 value: false
18049 mirror: always
18050
18051 - name: webgl.angle.try-d3d11
18052 type: RelaxedAtomicBool
18053 #ifdef XP_WIN
18054 value: true
18055 #else
18056 value: false
18057 #endif
18058 mirror: always
18059
18060 - name: webgl.angle.force-warp
18061 type: RelaxedAtomicBool
18062 value: false
18063 mirror: always
18064
18065 - name: webgl.auto-flush
18066 type: RelaxedAtomicBool
18067 value: true
18068 mirror: always
18069
18070 - name: webgl.auto-flush.gl
18071 type: RelaxedAtomicBool
18072 value: false
18073 mirror: always
18074
18075 - name: webgl.can-lose-context-in-foreground
18076 type: RelaxedAtomicBool
18077 value: true
18078 mirror: always
18079
18080 - name: webgl.cgl.multithreaded
18081 type: RelaxedAtomicBool
18082 value: true
18083 mirror: always
18084
18085 - name: webgl.drawing_buffer_color_space
18086 type: RelaxedAtomicBool
18087 value: true
18088 mirror: always
18089
18090 - name: webgl.debug.incomplete-tex-color
18091 type: RelaxedAtomicUint32
18092 value: 0
18093 mirror: always
18094
18095 - name: webgl.default-antialias
18096 type: RelaxedAtomicBool
18097 value: @IS_NOT_ANDROID@
18098 mirror: always
18099
18100 - name: webgl.default-no-alpha
18101 type: RelaxedAtomicBool
18102 value: false
18103 mirror: always
18104
18105 - name: webgl.disable-angle
18106 type: RelaxedAtomicBool
18107 value: false
18108 mirror: always
18109
18110 - name: webgl.disable-wgl
18111 type: RelaxedAtomicBool
18112 value: false
18113 mirror: always
18114
18115 - name: webgl.porting.strict_readpixels_formats
18116 type: RelaxedAtomicBool
18117 value: false
18118 mirror: always
18119
18120 - name: webgl.porting.strict_readpixels_formats.non_es
18121 type: RelaxedAtomicBool
18122 value: false
18123 mirror: always
18124
18125 - name: webgl.dxgl.enabled
18126 type: RelaxedAtomicBool
18127 #ifdef XP_WIN
18128 value: true
18129 #else
18130 value: false
18131 #endif
18132 mirror: always
18133
18134 - name: webgl.dxgl.needs-finish
18135 type: RelaxedAtomicBool
18136 value: false
18137 mirror: always
18138
18139 - name: webgl.disable-fail-if-major-performance-caveat
18140 type: RelaxedAtomicBool
18141 value: true
18142 mirror: always
18143
18144 - name: webgl.disable-DOM-blit-uploads
18145 type: RelaxedAtomicBool
18146 #if defined(MOZ_AARCH64) && defined(XP_MACOSX)
18147 value: true
18148 #else
18149 value: false
18150 #endif
18151 mirror: always
18152
18153 - name: webgl.disabled
18154 type: RelaxedAtomicBool
18155 value: false
18156 mirror: always
18157
18158 - name: webgl.enable-debug-renderer-info
18159 type: RelaxedAtomicBool
18160 value: true
18161 mirror: always
18162
18163 - name: webgl.enable-draft-extensions
18164 type: RelaxedAtomicBool
18165 value: false
18166 mirror: always
18167
18168 - name: webgl.enable-privileged-extensions
18169 type: RelaxedAtomicBool
18170 value: false
18171 mirror: always
18172
18173 - name: webgl.enable-renderer-query
18174 type: RelaxedAtomicBool
18175 value: true
18176 mirror: always
18177
18178 - name: webgl.enable-egl-image
18179 type: RelaxedAtomicBool
18180 value: true
18181 mirror: always
18182
18183 - name: webgl.enable-surface-texture
18184 type: RelaxedAtomicBool
18185 value: true
18186 mirror: always
18187
18188 - name: webgl.enable-webgl2
18189 type: RelaxedAtomicBool
18190 value: true
18191 mirror: always
18192
18193 - name: webgl.fake-verts.max
18194 type: RelaxedAtomicUint32
18195 value: 10*1000*1000 # 10M as vec4 is count*4*4 = 160MB
18196 mirror: always
18197
18198 # Only works on Mac for now.
18199 - name: webgl.forbid-hardware
18200 type: RelaxedAtomicBool
18201 value: false
18202 mirror: always
18203
18204 # Only works on Mac for now.
18205 - name: webgl.forbid-software
18206 type: RelaxedAtomicBool
18207 value: true # It's generally better to encourage fallback to e.g. canvas2d.
18208 mirror: always
18209
18210 - name: webgl.force-enabled
18211 type: RelaxedAtomicBool
18212 value: false
18213 mirror: always
18214
18215 - name: webgl.force-index-validation
18216 type: RelaxedAtomicInt32
18217 value: 0
18218 mirror: always
18219
18220 - name: webgl.gl_khr_no_error
18221 type: RelaxedAtomicBool
18222 #ifdef XP_WIN
18223 value: false
18224 #elif defined(MOZ_WIDGET_GTK)
18225 # Bug 1862039 - All versions of Mesa as of Nov 2023 have issues with
18226 # GL_CONTEXT_FLAG_NO_ERROR_BIT. We should aspire to reenable it at
18227 # some point when the bugs are fixed.
18228 # See also https://gitlab.freedesktop.org/mesa/mesa/-/issues/10062
18229 value: false
18230 #else
18231 value: true
18232 #endif
18233 mirror: always
18234
18235 - name: webgl.glsl.max_var_size_in_kibytes
18236 type: RelaxedAtomicInt32
18237 value: -1 # -1 => default for platform, 0 => no limit, >0 => max valid size
18238 mirror: always
18239
18240 - name: webgl.glsl.max_private_var_size_in_bytes
18241 type: RelaxedAtomicInt32
18242 value: -1 # -1 => default for platform, 0 => no limit, >0 => max valid size
18243 mirror: always
18244
18245 - name: webgl.lose-context-on-memory-pressure
18246 type: RelaxedAtomicBool
18247 value: false
18248 mirror: always
18249
18250 - name: webgl.max-bytes-per-row
18251 type: RelaxedAtomicUint32
18252 value: 2147483647 # 0 => no limit, >0 => max valid bytes per row
18253 mirror: always
18254
18255 - name: webgl.max-contexts
18256 type: RelaxedAtomicUint32
18257 value: 1000
18258 mirror: always
18259
18260 - name: webgl.max-contexts-per-principal
18261 type: RelaxedAtomicUint32
18262 value: 300
18263 mirror: always
18264
18265 - name: webgl.max-size-per-texture-mib
18266 type: RelaxedAtomicUint32
18267 value: 1024
18268 mirror: always
18269
18270 - name: webgl.max-vert-ids-per-draw
18271 type: RelaxedAtomicUint32
18272 value: 30*1000*1000
18273 mirror: always
18274
18275 - name: webgl.max-warnings-per-context
18276 type: RelaxedAtomicUint32
18277 value: 32
18278 mirror: always
18279
18280 - name: webgl.min_capability_mode
18281 type: RelaxedAtomicBool
18282 value: false
18283 mirror: always
18284
18285 - name: webgl.msaa-force
18286 type: RelaxedAtomicBool
18287 value: false
18288 mirror: always
18289
18290 - name: webgl.msaa-samples
18291 type: RelaxedAtomicUint32
18292 value: 4
18293 mirror: always
18294
18295 - name: webgl.out-of-process
18296 type: RelaxedAtomicBool
18297 value: true
18298 mirror: always
18299
18300 - name: webgl.out-of-process.worker
18301 type: RelaxedAtomicBool
18302 value: true
18303 mirror: always
18304
18305 - name: webgl.out-of-process.force
18306 type: RelaxedAtomicBool
18307 value: false
18308 mirror: always
18309
18310 - name: webgl.out-of-process.shmem-size
18311 type: RelaxedAtomicUint32
18312 value: 100000 # 100KB
18313 mirror: always
18314
18315 - name: webgl.out-of-process.async-present
18316 type: RelaxedAtomicBool
18317 value: true
18318 mirror: always
18319
18320 # Forces async present to wait for a sync, even while using remote textures.
18321 - name: webgl.out-of-process.async-present.force-sync
18322 type: RelaxedAtomicBool
18323 value: false
18324 mirror: always
18325
18326 #if defined(MOZ_WIDGET_ANDROID)
18327 - name: webgl.out-of-process.enable-ahardwarebuffer
18328 type: bool
18329 value: false
18330 mirror: once
18331 #endif
18332
18333 # Override the blocklist to assume that GL is threadsafe.
18334 - name: webgl.threadsafe-gl.force-enabled
18335 type: bool
18336 value: false
18337 mirror: once
18338
18339 # Override the blocklist to assume that GL is not threadsafe.
18340 - name: webgl.threadsafe-gl.force-disabled
18341 type: bool
18342 value: false
18343 mirror: once
18344
18345 - name: webgl.use-canvas-render-thread
18346 type: bool
18347 value: true
18348 mirror: once
18349
18350 - name: webgl.override-unmasked-renderer
18351 type: DataMutexString
18352 value: ""
18353 mirror: always
18354
18355 - name: webgl.override-unmasked-vendor
18356 type: DataMutexString
18357 value: ""
18358 mirror: always
18359
18360 - name: webgl.power-preference-override
18361 type: RelaxedAtomicInt32
18362 value: 0
18363 mirror: always
18364
18365 - name: webgl.prefer-16bpp
18366 type: RelaxedAtomicBool
18367 value: false
18368 mirror: always
18369
18370 - name: webgl.sanitize-unmasked-renderer
18371 type: RelaxedAtomicBool
18372 value: true
18373 mirror: always
18374
18375 - name: webgl.allow-immediate-queries
18376 type: RelaxedAtomicBool
18377 value: false
18378 mirror: always
18379
18380 - name: webgl.allow-fb-invalidation
18381 type: RelaxedAtomicBool
18382 value: false
18383 mirror: always
18384
18385
18386 - name: webgl.perf.max-warnings
18387 type: RelaxedAtomicInt32
18388 value: 0
18389 mirror: always
18390
18391 - name: webgl.perf.max-acceptable-fb-status-invals
18392 type: RelaxedAtomicInt32
18393 value: 0
18394 mirror: always
18395
18396 - name: webgl.perf.spew-frame-allocs
18397 type: RelaxedAtomicBool
18398 value: true
18399 mirror: always
18400
18401 #---------------------------------------------------------------------------
18402 # Prefs starting with "widget."
18403 #---------------------------------------------------------------------------
18404
18405 # Whether the non-native theme should always use system colors. Useful mostly
18406 # for testing forced colors mode.
18407 - name: widget.non-native-theme.always-high-contrast
18408 type: RelaxedAtomicBool
18409 value: false
18410 mirror: always
18411
18412 # The style of scrollbars to use. Here are the current options:
18413 #
18414 # 0: Default platform scrollbar style.
18415 # 1: macOS scrollbars
18416 # 2: GTK scrollbars
18417 # 3: Android scrollbars
18418 # 4: Windows 10 scrollbars
18419 # 5: Windows 11 scrollbars
18420 #
18421 # Note that switching to non-default scrollbars is experimental and other
18422 # scrollbar-related prefs may interfere with the experience. For example,
18423 # setting the GTK thumb size may have no effect when using non-GTK scrollbars
18424 # on GTK.
18425 - name: widget.non-native-theme.scrollbar.style
18426 type: uint32_t
18427 value: 0
18428 mirror: always
18429
18430 # An override that allows to override the default platform size. The size in CSS
18431 # pixels at full zoom of the minimum scrollbar width.
18432 - name: widget.non-native-theme.scrollbar.size.override
18433 type: uint32_t
18434 value: 0
18435 mirror: always
18436
18437 # Whether we should use themed values for dark scrollbars.
18438 - name: widget.non-native-theme.scrollbar.dark-themed
18439 type: RelaxedAtomicBool
18440 value: true
18441 mirror: always
18442
18443 # Whether the active thumb color should always use the themed colors, even if
18444 # dark scrollbars are in use.
18445 - name: widget.non-native-theme.scrollbar.active-always-themed
18446 type: RelaxedAtomicBool
18447 value: true
18448 mirror: always
18449
18450 # Whether we use the Windows CSS scrollbar sizes, or the scrollbar sizes
18451 # defined above.
18452 - name: widget.non-native-theme.win.scrollbar.use-system-size
18453 type: bool
18454 value: true
18455 mirror: always
18456
18457 # Whether Windows 11 scrollbars are always drawn with the thinner "overlay"
18458 # scrollbar style.
18459 - name: widget.non-native-theme.win11.scrollbar.force-overlay-style
18460 type: bool
18461 value: false
18462 mirror: always
18463
18464 # Whether Windows 11 overlay scrollbar tracks are round.
18465 - name: widget.non-native-theme.win11.scrollbar.round-track
18466 type: bool
18467 value: false
18468 mirror: always
18469
18470 # The amount of space that the thumb should fill the scrollbar, from zero to
18471 # one.
18472 - name: widget.non-native-theme.gtk.scrollbar.thumb-size
18473 type: float
18474 value: 0.75
18475 mirror: always
18476
18477 # The minimum size of the scroll thumb, in the scrollbar direction.
18478 - name: widget.non-native-theme.gtk.scrollbar.thumb-cross-size
18479 type: uint32_t
18480 value: 40
18481 mirror: always
18482
18483 # Whether the thumb should be rounded for the non-native scrollbars.
18484 - name: widget.non-native-theme.gtk.scrollbar.round-thumb
18485 type: bool
18486 value: true
18487 mirror: always
18488
18489 # Whether buttons shouldn't be suppressed for non-native scrollbars.
18490 - name: widget.non-native-theme.gtk.scrollbar.allow-buttons
18491 type: bool
18492 value: false
18493 mirror: always
18494
18495 # Whether we should use the default accent color or the theme-provided one for
18496 # content (e.g. for form controls and CSS system colors).
18497 #
18498 # Turned off on Windows, for now (we always use the default blue-ish
18499 # accent-color there). We might want to turn this on there, though it's worth
18500 # thinking on what the behavior should be for grey-ish accent colors (which are
18501 # a thing on Windows and can cause confusion with things like disabled form
18502 # controls). Maybe it's just fine.
18503 - name: widget.non-native-theme.use-theme-accent
18504 type: RelaxedAtomicBool
18505 #if defined(XP_WIN) && !defined(MOZ_THUNDERBIRD)
18506 value: false
18507 #else
18508 value: true
18509 #endif
18510 mirror: always
18511
18512 # Preference to disable dark scrollbar implementation.
18513 # This is mainly for testing because dark scrollbars have to be semi-
18514 # transparent, but many reftests expect scrollbars to look identical
18515 # among different backgrounds.
18516 # However, some users may want to disable this as well.
18517 - name: widget.disable-dark-scrollbar
18518 type: bool
18519 value: false
18520 mirror: always
18521
18522 - name: widget.disable_file_pickers
18523 type: RelaxedAtomicBool
18524 value: false
18525 mirror: always
18526
18527 - name: widget.window-transforms.disabled
18528 type: RelaxedAtomicBool
18529 value: false
18530 mirror: always
18531
18532 #ifdef XP_MACOSX
18533
18534 # Whether to shift by the menubar height on fullscreen mode.
18535 # 0: never
18536 # 1: always
18537 # 2: auto (tries to detect when it is needed)
18538 - name: widget.macos.shift-by-menubar-on-fullscreen
18539 type: RelaxedAtomicUint32
18540 value: 2
18541 mirror: always
18542
18543 - name: widget.macos.native-context-menus
18544 type: RelaxedAtomicBool
18545 value: true
18546 mirror: always
18547
18548 - name: widget.macos.sidebar-blend-mode.behind-window
18549 type: RelaxedAtomicBool
18550 value: true
18551 mirror: always
18552
18553 - name: widget.macos.titlebar-blend-mode.behind-window
18554 type: RelaxedAtomicBool
18555 value: false
18556 mirror: always
18557 #endif
18558
18559 # Whether native GTK global menubar support is enabled.
18560 # Disabled because there are some minor bugs and it needs deeper integration
18561 # with the front-end.
18562 - name: widget.gtk.global-menu.enabled
18563 type: RelaxedAtomicBool
18564 value: false
18565 mirror: always
18566
18567 # Whether GTK global menubar support is enabled using wayland's experimental
18568 # dbus_annotation protocol:
18569 # https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/52
18570 # Disabled until it has a final shape and it is available in compositors.
18571 - name: widget.gtk.global-menu.wayland.enabled
18572 type: RelaxedAtomicBool
18573 value: false
18574 mirror: always
18575
18576 # Whether native GTK context menus are enabled.
18577 # Disabled because at the very least there's missing custom icon support.
18578 - name: widget.gtk.native-context-menus
18579 type: RelaxedAtomicBool
18580 value: false
18581 mirror: always
18582
18583 # Whether we use overlay scrollbars on GTK.
18584 - name: widget.gtk.overlay-scrollbars.enabled
18585 type: RelaxedAtomicBool
18586 value: true
18587 mirror: always
18588
18589 # Whether we hide the pointer while typing on Linux
18590 - name: widget.gtk.hide-pointer-while-typing.enabled
18591 type: RelaxedAtomicBool
18592 value: true
18593 mirror: always
18594
18595 # Whether we honor the scrollbar colors from the gtk theme.
18596 - name: widget.gtk.theme-scrollbar-colors.enabled
18597 type: bool
18598 value: true
18599 mirror: always
18600
18601 # Whether libadwaita colors are used rather than the default ones.
18602 - name: widget.gtk.libadwaita-colors.enabled
18603 type: bool
18604 value: true
18605 mirror: always
18606
18607 # Whether to use gtk titlebar actions for middle click instead of Firefox
18608 # build in one
18609 - name: widget.gtk.titlebar-action-middle-click-enabled
18610 type: bool
18611 value: false
18612 mirror: always
18613
18614 # Whether to ignore middle click events on widget level.
18615 - name: widget.gtk.middle-click-enabled
18616 type: bool
18617 value: true
18618 mirror: always
18619
18620 # Whether we enable rounded bottom corners on GTK by default.
18621 #
18622 # The implementation is a bit hacky (see details in bug 1850827) so behind a
18623 # pref for emergency purposes.
18624 - name: widget.gtk.rounded-bottom-corners.enabled
18625 type: bool
18626 value: false
18627 mirror: always
18628 rust: true
18629
18630 # Whether non-native titlebar buttons are enabled for lightweight themes.
18631 - name: widget.gtk.non-native-titlebar-buttons.enabled
18632 type: RelaxedAtomicBool
18633 value: true
18634 mirror: always
18635
18636 # Whether selection colors for the non-system theme get passed from the system
18637 # GTK theme.
18638 - name: widget.gtk.alt-theme.selection
18639 type: bool
18640 value: true
18641 mirror: always
18642
18643 # Whether form control accent colors for the non-system theme get passed from
18644 # the system GTK theme.
18645 - name: widget.gtk.alt-theme.accent
18646 type: bool
18647 value: true
18648 mirror: always
18649
18650 # Whether the scrollbar thumb active color from the non-system theme gets
18651 # passed from the system GTK theme.
18652 - name: widget.gtk.alt-theme.scrollbar_active
18653 type: bool
18654 value: true
18655 mirror: always
18656
18657 # Whether we should try to grab the pointer on popups.
18658 # 0: Never
18659 # 1: Always
18660 # 2: Auto (depending on the system)
18661 - name: widget.gtk.grab-pointer
18662 type: int32_t
18663 value: 2
18664 mirror: always
18665
18666 # Whether we should try ignore bogus leave-notify events from the window
18667 # manager.
18668 # 0: Never
18669 # 1: Always
18670 # 2: Auto (depending on the system)
18671 - name: widget.gtk.ignore-bogus-leave-notify
18672 type: int32_t
18673 value: 2
18674 mirror: always
18675
18676 # Whether to use gtk legacy cursor API.
18677 - name: widget.gtk.legacy-cursors.enabled
18678 type: bool
18679 value: false
18680 mirror: always
18681
18682 # Gtk clipboard timeout
18683 - name: widget.gtk.clipboard_timeout_ms
18684 type: RelaxedAtomicUint32
18685 value: 1000
18686 mirror: always
18687
18688 # Whether to use gtk high contrast themes to disable content styling like on
18689 # windows high contrast mode.
18690 - name: widget.content.gtk-high-contrast.enabled
18691 type: bool
18692 value: true
18693 mirror: always
18694
18695 #ifdef MOZ_WAYLAND
18696 - name: widget.wayland.fractional-scale.enabled
18697 type: bool
18698 value: false
18699 mirror: once
18700
18701 # Use opaque region for MozContainer wl_surface
18702 - name: widget.wayland.opaque-region.enabled
18703 type: bool
18704 value: true
18705 mirror: once
18706
18707 # Use frame callback based vsync
18708 - name: widget.wayland.vsync.enabled
18709 type: bool
18710 value: true
18711 mirror: once
18712
18713 # Whether to keep firing vsync at layout.throttled_frame_rate after we've been
18714 # occluded.
18715 - name: widget.wayland.vsync.keep-firing-at-idle
18716 type: bool
18717 value: false
18718 mirror: always
18719 #endif
18720
18721 #ifdef MOZ_WIDGET_GTK
18722 # Whether to use DMABuf backend.
18723 - name: widget.dmabuf.enabled
18724 type: bool
18725 value: true
18726 mirror: once
18727
18728 # Whether to override the DMABuf blocklist.
18729 - name: widget.dmabuf.force-enabled
18730 type: bool
18731 value: false
18732 mirror: once
18733
18734 #ifdef NIGHTLY_BUILD
18735 # Keep those pref hidden on non-nightly builds to avoid people accidentally
18736 # turning it on.
18737
18738 # Override FEATURE_DMABUF_SURFACE_EXPORT for testing
18739 - name: widget.dmabuf-export.force-enabled
18740 type: bool
18741 value: false
18742 mirror: once
18743
18744 # Get DMABuf format feedback from compositor.
18745 # For testing only
18746 - name: widget.dmabuf-feedback.enabled
18747 type: bool
18748 value: true
18749 mirror: once
18750 #endif
18751
18752 # Use DMABuf backend for WebGL.
18753 - name: widget.dmabuf-webgl.enabled
18754 type: bool
18755 value: true
18756 mirror: once
18757
18758 # Use gdk_window_move_to_rect to move Wayland popups when available.
18759 - name: widget.wayland.use-move-to-rect
18760 type: bool
18761 value: true
18762 mirror: once
18763
18764 # The time we should spend on a DBUS call to the FileManager1 interface before
18765 # giving up and trying an alternative method.
18766 #
18767 # -1 for the default system timeout, INT_MAX for "infinite time".
18768 #
18769 # This happens right now on the main thread so 1 second should be enough, we
18770 # should consider moving it to a background task and just use the default
18771 # timeout.
18772 - name: widget.gtk.file-manager-show-items-timeout-ms
18773 type: int32_t
18774 value: 1000
18775 mirror: always
18776
18777 # The timeout we should spend on a DBUS call to the Settings proxy before
18778 # giving up.
18779 #
18780 # -1 for the default system timeout, INT_MAX for "infinite time".
18781 #
18782 # This runs just once, but during startup, so make sure it doesn't take too
18783 # long. Three seconds should be way more than enough, and if we don't get the
18784 # reply on time then the only potential issue is that we use a light instead of
18785 # dark interface or vice versa.
18786 - name: widget.gtk.settings-portal-timeout-ms
18787 type: int32_t
18788 value: 3000
18789 mirror: always
18790
18791 # Whether to use gtk portal for the file picker.
18792 # - 0: never
18793 # - 1: always
18794 # - 2: auto (true for flatpak or GTK_USE_PORTAL=1, false otherwise)
18795 - name: widget.use-xdg-desktop-portal.file-picker
18796 type: int32_t
18797 value: 2
18798 mirror: always
18799
18800 # Whether to use gtk portal for the mime handler.
18801 # - 0: never
18802 # - 1: always
18803 # - 2: auto (for now only true for flatpak, see bug 1516290)
18804 - name: widget.use-xdg-desktop-portal.mime-handler
18805 type: int32_t
18806 value: 2
18807 mirror: always
18808
18809 # Whether to use XDG portal for native messaging.
18810 # https://github.com/flatpak/xdg-desktop-portal/issues/655
18811 # - 0: never
18812 # - 1: always
18813 # - 2: auto (true for snap and flatpak or GTK_USE_PORTAL=1, false otherwise)
18814 - name: widget.use-xdg-desktop-portal.native-messaging
18815 type: int32_t
18816 value: 0
18817 mirror: always
18818
18819 # Whether to try to use XDG portal for settings / look-and-feel information.
18820 # https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Settings
18821 # - 0: never
18822 # - 1: always
18823 # - 2: auto
18824 - name: widget.use-xdg-desktop-portal.settings
18825 type: int32_t
18826 value: 2
18827 mirror: always
18828
18829 # Whether to use XDG portal for geolocation.
18830 # https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Location
18831 # - 0: never
18832 # - 1: always
18833 # - 2: auto
18834 - name: widget.use-xdg-desktop-portal.location
18835 type: int32_t
18836 value: 2
18837 mirror: always
18838 # Whether to use XDG portal for opening to a file.
18839 # https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.OpenURI
18840 # - 0: never
18841 # - 1: always
18842 # - 2: auto (true for flatpak or GTK_USE_PORTAL=1, false otherwise)
18843 - name: widget.use-xdg-desktop-portal.open-uri
18844 type: int32_t
18845 value: 2
18846 mirror: always
18847 #endif
18848
18849 #ifdef XP_WIN
18850 # WindowsUIUtils::Share to wait for user action on Windows share dialog
18851 # `true` means the promise resolves when user completes or cancels the share
18852 # action. This can be unsafe since selecting copy action fires no DataPackage
18853 # event as of 21H1.
18854 # `false` means the promise resolves when the share data is passed to
18855 # DataPackage.
18856 # This affects the behavior of `navigator.share()`.
18857 - name: widget.windows.share.wait_action.enabled
18858 type: bool
18859 value: false
18860 mirror: always
18861
18862 - name: widget.windows.window_occlusion_tracking.enabled
18863 type: bool
18864 value: true
18865 mirror: always
18866
18867 # Whether overlay scrollbars respect the system settings.
18868 # Note that these can be overridden by the ui.useOverlayScrollbars pref.
18869 - name: widget.windows.overlay-scrollbars.enabled
18870 type: bool
18871 value: true
18872 mirror: always
18873
18874 # Whether we allow accessing the UWP system color pallete.
18875 - name: widget.windows.uwp-system-colors.enabled
18876 type: bool
18877 value: true
18878 mirror: always
18879
18880 # Whether PiP windows have window decorations (borders and shadows).
18881 # Off for now while we fix bug 1934760 and related issues.
18882 - name: widget.windows.pip-decorations.enabled
18883 type: bool
18884 value: false
18885 mirror: always
18886
18887 # Whether we use the accent color for highlight as some other UWP apps do.
18888 #
18889 # false for now since it can cause some contrast-with-background issues
18890 # specially with grey accents, see bug 1776588.
18891 - name: widget.windows.uwp-system-colors.highlight-accent
18892 type: bool
18893 value: false
18894 mirror: always
18895
18896 - name: widget.windows.window_occlusion_tracking_display_state.enabled
18897 type: bool
18898 value: false
18899 mirror: always
18900
18901 - name: widget.windows.window_occlusion_tracking_session_lock.enabled
18902 type: bool
18903 value: true
18904 mirror: always
18905
18906 # Whether this device is capable of entering tablet mode. (Win11+ only.)
18907 #
18908 # Valid values:
18909 # * -1: assume this device is tablet-mode-incapable
18910 # * 0: rely on heuristics
18911 # * 1: assume this device is tablet-mode-capable
18912 - name: widget.windows.tablet_detection_override
18913 type: RelaxedAtomicInt32
18914 value: 0
18915 mirror: always
18916
18917 # Whether to give explorer.exe a delayed nudge to recalculate the fullscreenness
18918 # of a window after unminimizing it.
18919 - name: widget.windows.fullscreen_remind_taskbar
18920 type: RelaxedAtomicBool
18921 value: true
18922 mirror: always
18923
18924 # Mechanism to use to mark fullscreen windows.
18925 #
18926 # (If no problems are reported which adjusting this pref solves, it should be
18927 # removed in v141, and fixed at `1`.)
18928 #
18929 # * 0: Default. Use Gecko-internal heuristics. May vary between versions.
18930 # * 1: Use only "NonRudeHWND". Historical default on Win7.
18931 # * 2: Use only MarkFullscreenWindow. Historical default for Win10+.
18932 # * 3: Use both. (Never a default; not well-tested.)
18933 - name: widget.windows.fullscreen_marking_method
18934 type: RelaxedAtomicUint32
18935 value: 0
18936 mirror: always
18937
18938 # Whether to open the Windows file and folder pickers "remotely" (in a utility
18939 # process) or "locally" (in the main process).
18940 #
18941 # Valid values:
18942 # * 0: auto (possibly release-channel-dependent)
18943 # * 1: remotely, falling back to locally
18944 # * 2: remotely, no fallback
18945 # * 3: remotely, falling back to locally except on crashes
18946 # * -1: locally, no fallback
18947 - name: widget.windows.utility_process_file_picker
18948 type: RelaxedAtomicInt32
18949 value: 0
18950 mirror: always
18951
18952 # Whether to follow `.lnk` (etc.) shortcuts in the Windows file-open dialog.
18953 #
18954 # Valid values:
18955 # * 0: never
18956 # * 1: always
18957 # * 2: auto
18958 - name: widget.windows.follow_shortcuts_on_file_open
18959 type: RelaxedAtomicInt32
18960 value: 1
18961 mirror: always
18962
18963 # The number of messages of each type to keep for display in
18964 # about:windows-messages
18965 - name: widget.windows.messages_to_log
18966 type: RelaxedAtomicUint32
18967 value: 6
18968 mirror: always
18969
18970 # Whether to flush the Ole clipboard synchronously.
18971 # Possible values are:
18972 # * 0: never
18973 # * 1: always
18974 # * 2 (or others): when needed
18975 - name: widget.windows.sync-clipboard-flush
18976 type: uint32_t
18977 value: 2
18978 mirror: always
18979
18980 # Whether to allow dragging and dropping tabs onto another application. This is
18981 # disallowed by default because most applications that say they can handle
18982 # Firefox tabs are lying (bug 1598915).
18983 - name: widget.windows.allow-external-tab-drag
18984 type: bool
18985 value: false
18986 mirror: always
18987
18988 # Whether to apply a hack (adjusting the window height by -1px and back again)
18989 # upon first entering fullscreen intended to work around a bug exhibited under
18990 # on some Windows 11 machines under some configurations. (See bug 1763981.)
18991 #
18992 # Semantics:
18993 # * 0: never
18994 # * 1: always
18995 # * 2: auto
18996 - name: widget.windows.apply-dwm-resize-hack
18997 type: RelaxedAtomicInt32
18998 value: 2
18999 mirror: always
19000
19001 # Whether we use the mica backdrop for top level windows. Off by default for
19002 # now.
19003 - name: widget.windows.mica
19004 type: bool
19005 value: false
19006 mirror: always
19007
19008 # Whether we use the mica backdrop for popups when available.
19009 # * 0: never
19010 # * 1: always
19011 # * 2 or others: auto
19012 - name: widget.windows.mica.popups
19013 type: RelaxedAtomicInt32
19014 value: 2
19015 mirror: always
19016
19017 # What mica backdrop do we use for toplevels. See [1] for the meaning.
19018 #
19019 # * 0 or other values: auto
19020 # * 1: MAINWINDOW
19021 # * 2: TRANSIENTWINDOW
19022 # * 3: TABBEDWINDOW
19023 #
19024 # [1]: https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwm_systembackdrop_type#constants
19025 - name: widget.windows.mica.toplevel-backdrop
19026 type: RelaxedAtomicInt32
19027 value: 0
19028 mirror: always
19029 #endif
19030
19031 # Whether to disable SwipeTracker (e.g. swipe-to-nav).
19032 - name: widget.disable-swipe-tracker
19033 type: bool
19034 value: false
19035 mirror: always
19036
19037 # Various metrics to control SwipeTracker.
19038 - name: widget.swipe.velocity-twitch-tolerance
19039 type: float
19040 value: 0.0000001f
19041 mirror: always
19042
19043 - name: widget.swipe.success-velocity-contribution
19044 type: float
19045 value: 0.05f
19046 mirror: always
19047
19048 # When using pixel deltas for pan input, how many pixels do we consider a whole
19049 # swipe?
19050 #
19051 # The values for this pref are derived from trial and error in an effort to
19052 # match the existing behavior on the respective platforms.
19053 - name: widget.swipe.pixel-size
19054 type: float
19055 #if defined(XP_MACOSX)
19056 value: 550.0f
19057 #else
19058 value: 1100.0f
19059 #endif
19060 mirror: always
19061
19062 # When using page deltas for pan input, how many pages do we consider a whole
19063 # swipe navigation?
19064 #
19065 # This is only relevant for GTK which is as of right now the only platform
19066 # which supports page-based pan gestures.
19067 - name: widget.swipe.page-size
19068 type: float
19069 value: 40.0f
19070 mirror: always
19071
19072 - name: widget.transparent-windows
19073 type: bool
19074 value: true
19075 mirror: once
19076
19077 # Whether the clipboard cached are used while getting system clipboard data.
19078 - name: widget.clipboard.use-cached-data.enabled
19079 type: bool
19080 #if defined(XP_MACOSX)
19081 value: true
19082 #else
19083 value: false
19084 #endif
19085 mirror: always
19086
19087 #ifdef XP_MACOSX
19088 # The folllowing widget.macos.automatic.* prefs are whether Gecko turns on
19089 # text replacement features.
19090 - name: widget.macos.automatic.text_replacement
19091 type: bool
19092 value: true
19093 mirror: always
19094
19095 # Whether the smart dash feature is enabled
19096 - name: widget.macos.automatic.dash_substitution
19097 type: bool
19098 value: false
19099 mirror: always
19100
19101 # Whether the smart quote feature is enabled
19102 - name: widget.macos.automatic.quote_substitution
19103 type: bool
19104 value: false
19105 mirror: always
19106
19107 # fetching length when processing text substitution.
19108 - name: widget.macos.automatic.text_substitution_fetch_length
19109 type: uint32_t
19110 value: 20
19111 mirror: always
19112 #endif
19113
19114 # Whether to render in to a child SurfaceControl rather than directly into the SurfaceView
19115 - name: widget.android.use-surfacecontrol
19116 type: bool
19117 value: false
19118 mirror: once
19119
19120 #ifdef ANDROID
19121 # A threshold value for double click by mouse.
19122 - name: widget.double-click.threshold
19123 type: RelaxedAtomicInt32
19124 value: 4
19125 mirror: always
19126
19127 # A timeout value for double click by mouse.
19128 - name: widget.double-click.timeout
19129 type: RelaxedAtomicInt32
19130 value: 500
19131 mirror: always
19132
19133 # A min time value for double click by mouse.
19134 - name: widget.double-click.min
19135 type: RelaxedAtomicInt32
19136 value: 40
19137 mirror: always
19138 #endif
19139
19140 #---------------------------------------------------------------------------
19141 # Prefs starting with "zoom."
19142 #---------------------------------------------------------------------------
19143
19144 - name: zoom.maxPercent
19145 type: uint32_t
19146 #ifdef ANDROID
19147 value: 400
19148 #else
19149 value: 500
19150 #endif
19151 mirror: always
19152
19153 - name: zoom.minPercent
19154 type: uint32_t
19155 #ifdef ANDROID
19156 value: 20
19157 #else
19158 value: 30
19159 #endif
19160 mirror: always
19161
19162 #---------------------------------------------------------------------------
19163 # End of prefs
19164 #---------------------------------------------------------------------------