From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- modules/libpref/init/StaticPrefList.yaml | 672 +++++++++++++++++++++++++------ modules/libpref/init/all.js | 48 ++- 2 files changed, 577 insertions(+), 143 deletions(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 82a2582c8a..835450712a 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -220,9 +220,9 @@ value: false mirror: always -- name: accessibility.ARIAReflection.enabled +- name: accessibility.ARIAElementReflection.enabled type: bool - value: true + value: @IS_NIGHTLY_BUILD@ mirror: always # Whether form controls and images should be focusable with mouse, in content @@ -242,6 +242,12 @@ #endif mirror: always +# Whether to enable support for the UI Automation API on Windows. +- name: accessibility.uia.enable + type: bool + value: false + mirror: always + # Whether to avoid accessibility activation on Windows shortly after clipboard # copy. # @@ -254,6 +260,18 @@ value: 2 mirror: always +# Whether to avoid accessibility activation on Windows shortly after max button +# hit-test for the "snap layout" feature. +# +# Possible values are: +# * 0: never +# * 1: always +# * 2 (or others): when needed +- name: accessibility.windows.suppress-for-snap-layout + type: uint32_t + value: 2 + mirror: always + #--------------------------------------------------------------------------- # Prefs starting with "alerts." #--------------------------------------------------------------------------- @@ -1135,6 +1153,20 @@ #endif mirror: always +# DLP agent name, for display in the browser +- name: browser.contentanalysis.agent_name + type: String + value: "A DLP agent" + mirror: never + +# (optional) The organization name that the DLP agent should have. If this is +# non-empty and the DLP agent is not signed with this organization name, +# Firefox will fail the connection. +- name: browser.contentanalysis.client_signature + type: String + value: "" + mirror: never + # Content analysis by external applications, e.g. data-loss prevention apps - name: browser.contentanalysis.enabled type: bool @@ -1160,12 +1192,41 @@ value: "path_user" mirror: never +# Space-separated list of regexs that are compared to URLs of resources +# being checked by content-analysis. Resources that match are not checked +# and are always permitted. +- name: browser.contentanalysis.allow_url_regex_list + type: String + value: "" + mirror: never + +# Space-separated list of regexs that are compared to URLs of resources +# being checked by content-analysis. Resources that match are not checked +# and are always denied. +- name: browser.contentanalysis.deny_url_regex_list + type: String + value: "" + mirror: never + # Should CA ignore the system setting and use silent notifications? - name: browser.contentanalysis.silent_notifications type: bool value: false mirror: always +# Time (secs) after which content analysis operations are considered timed-out +- name: browser.contentanalysis.agent_timeout + type: uint32_t + value: 30 + mirror: always + +# Should Firefox show a notification or dialog when content analysis blocks +# access? +- name: browser.contentanalysis.show_blocked_result + type: bool + value: true + mirror: always + # Content blocking for Enhanced Tracking Protection - name: browser.contentblocking.database.enabled type: bool @@ -1594,27 +1655,18 @@ value: 15000 mirror: always -# Platform collection of data for session store -- name: browser.sessionstore.platform_collection +# Disable collection of data for session store using the native collector code, +# instead use the older implementation that's not compatible with session +# history in the parent (and thus Fission). +- name: browser.sessionstore.disable_platform_collection type: bool -#if defined(ANDROID) || defined(MOZ_THUNDERBIRD) - value: false -#else +#if defined(MOZ_THUNDERBIRD) value: true +#else + value: false #endif mirror: once - -# Platform collection of session storage data for session store -- name: browser.sessionstore.collect_session_storage - type: bool - value: @IS_NOT_ANDROID@ - mirror: once - -# Platform collection of zoom data for session store -- name: browser.sessionstore.collect_zoom - type: bool - value: @IS_NOT_ANDROID@ - mirror: once + do_not_use_directly: true # Causes SessionStore to ignore non-final update messages from # browser tabs that were not caused by a flush from the parent. @@ -2324,11 +2376,6 @@ value: false mirror: always -- name: dom.domrequest.enabled - type: RelaxedAtomicBool - value: false - mirror: always - # Only intended for fuzzing purposes, this will break mozPrintCallback, etc. - name: dom.window_print.fuzzing.block_while_printing type: bool @@ -2344,7 +2391,7 @@ # see https://html.spec.whatwg.org/#the-popover-attribute - name: dom.element.popover.enabled type: RelaxedAtomicBool - value: @IS_NIGHTLY_BUILD@ + value: true mirror: always rust: true @@ -2539,7 +2586,7 @@ # Control whether `navigator.clipboard.readText()` is exposed to content. - name: dom.events.asyncClipboard.readText type: bool - value: @IS_EARLY_BETA_OR_EARLIER@ + value: true mirror: always do_not_use_directly: true @@ -2628,6 +2675,13 @@ value: false mirror: always +# Whether the spin buttons will always appear, or if they +# will only appear when the input is focused or hovered. +- name: dom.forms.number.hide_spin_buttons_when_no_hover_or_focus + type: bool + value: @IS_NIGHTLY_BUILD@ + mirror: always + # Whether the Gamepad API is enabled - name: dom.gamepad.enabled type: bool @@ -2722,6 +2776,13 @@ value: true mirror: always +# A pref that is used to slow down connection idle maintenance for testing +# purposes. +- name: dom.indexedDB.connectionIdleMaintenance.pauseOnConnectionThreadMs + type: RelaxedAtomicUint32 + value: 0 + mirror: always + # Whether or not indexedDB test mode is enabled. - name: dom.indexedDB.testing type: RelaxedAtomicBool @@ -3033,11 +3094,6 @@ value: @IS_NIGHTLY_BUILD@ mirror: always -- name: dom.media.webcodecs.force-osx-h264-enabled - type: RelaxedAtomicBool - value: false - mirror: always - # Number of seconds of very quiet or silent audio before considering the audio # inaudible. - name: dom.media.silence_duration_for_audibility @@ -3104,6 +3160,13 @@ value: 10 mirror: always +# Whether to allow and element loads to be retargeted to an +# external application or download. +- name: dom.navigation.object_embed.allow_retargeting + type: bool + value: false + mirror: always + # Network Information API # This feature is not available on Firefox desktop. It exposes too much # user information. Let's be consistent and disable it on Android. @@ -3618,6 +3681,13 @@ value: false mirror: always +# If and only if true, support for Trusted Types +# (https://w3c.github.io/trusted-types/dist/spec/) is enabled. +- name: dom.security.trusted_types.enabled + type: RelaxedAtomicBool + value: False + mirror: always + # If true, all content requests will get upgraded to HTTPS:// # (some Firefox functionality requests, like OCSP will not be affected) - name: dom.security.https_only_mode @@ -4777,6 +4847,12 @@ value: true mirror: always +# Whether allowing using to move focus to root elements +- name: dom.disable_tab_focus_to_root_element + type: bool + value: @IS_NIGHTLY_BUILD@ + mirror: always + #--------------------------------------------------------------------------- # Prefs starting with "editor" #--------------------------------------------------------------------------- @@ -5561,7 +5637,7 @@ value: 0 mirror: once -#if defined(XP_MACOSX) +#if defined(XP_DARWIN) - name: gfx.cairo_quartz_cg_layer.enabled type: bool value: true @@ -5698,6 +5774,12 @@ value: false mirror: once +# Whether OffscreenCanvas can use remote canvas +- name: gfx.canvas.remote.allow-offscreen + type: RelaxedAtomicBool + value: true + mirror: always + # How many worker threads spawned for remote canvas # -1 - Calculate based on processor cores # 0 - No worker threads spawned, will do work on CanvasRenderThread @@ -5820,7 +5902,7 @@ value: false mirror: always -#ifdef XP_MACOSX +#ifdef XP_DARWIN # Create specialized video-only layers for video content in # fullscreen windows. Consistently works well on Apple Silicon, # some issues remain on Intel hardware. @@ -5834,7 +5916,7 @@ mirror: always #endif -#if defined(XP_MACOSX) && defined(NIGHTLY_BUILD) +#if defined(XP_DARWIN) && defined(NIGHTLY_BUILD) # Spoof the timing of the video sample instead of marking the untimed # sample to be displayed immediately. - name: gfx.core-animation.specialize-video.spoof-timing @@ -5856,7 +5938,7 @@ mirror: always #endif -#ifdef XP_MACOSX +#ifdef XP_DARWIN - name: gfx.core-animation.low-power-telemetry-frames type: int32_t value: 600 @@ -6056,13 +6138,13 @@ mirror: once - name: gfx.font_loader.delay - type: uint32_t + type: RelaxedAtomicUint32 #if defined(XP_WIN) value: 60000 #else value: 8000 #endif - mirror: once + mirror: always # Disable antialiasing of Ahem, for use in tests. - name: gfx.font_rendering.ahem_antialias_none @@ -6070,7 +6152,7 @@ value: false mirror: always -#if defined(XP_MACOSX) +#if defined(XP_DARWIN) # Set to true to revert from HarfBuzz AAT shaping to the old Core Text # backend. - name: gfx.font_rendering.coretext.enabled @@ -6205,6 +6287,11 @@ value: true mirror: always +- name: gfx.offscreencanvas.snapshot-timeout-ms + type: int32_t + value: 10000 + mirror: always + - name: gfx.omta.background-color type: bool value: true @@ -6617,7 +6704,7 @@ mirror: always #endif -#ifdef XP_MACOSX +#ifdef XP_DARWIN # Files show up in $HOME/Desktop/nativelayerdumps-PID/frame-123.html - name: gfx.webrender.debug.dump-native-layer-tree-to-file type: RelaxedAtomicBool @@ -6724,7 +6811,7 @@ # for devices with weak GPUs, or when running SWGL. - name: gfx.webrender.low-quality-pinch-zoom type: bool -#if defined(MOZ_WIDGET_ANDROID) && defined(NIGHTLY_BUILD) +#if defined(MOZ_WIDGET_ANDROID) value: true #else value: false @@ -6741,10 +6828,14 @@ #endif mirror: once -# Enable NVIDIA RTX Video Super Resolution for video overlay on Windows -# Note: This is also a setting in NVIDIA's driver settings, so once this is -# stable, it should default to true -- name: gfx.webrender.super-resolution.nvidia +# Enable VideoProcessor Super Resolution for video overlay +- name: gfx.webrender.overlay-vp-super-resolution + type: bool + value: false + mirror: once + +# Enable VideoProcessor-HDR on SDR content for video overlay +- name: gfx.webrender.overlay-vp-auto-hdr type: bool value: false mirror: once @@ -7643,57 +7734,47 @@ value: true mirror: always -#if defined(ENABLE_WASM_RELAXED_SIMD) - name: javascript.options.wasm_relaxed_simd type: bool +#if defined(ENABLE_WASM_RELAXED_SIMD) value: @IS_NIGHTLY_BUILD@ +#else + value: false +#endif mirror: always -#endif // defined(ENABLE_WASM_RELAXED_SIMD) + set_spidermonkey_pref: startup -#if defined(ENABLE_WASM_MOZ_INTGEMM) - name: javascript.options.wasm_moz_intgemm type: bool +#if defined(ENABLE_WASM_MOZ_INTGEMM) value: @IS_NIGHTLY_BUILD@ +#else + value: false +#endif mirror: always -#endif // defined(ENABLE_WASM_MOZ_INTGEMM) - -#if defined(ENABLE_WASM_EXTENDED_CONST) -- name: javascript.options.wasm_extended_const - type: bool - value: true - mirror: always -#endif // defined(ENABLE_WASM_EXTENDED_CONST) - -- name: javascript.options.wasm_exceptions - type: bool - value: true - mirror: always + set_spidermonkey_pref: startup - name: javascript.options.wasm_exnref type: bool value: @IS_EARLY_BETA_OR_EARLIER@ mirror: always + set_spidermonkey_pref: startup -#if defined(ENABLE_WASM_FUNCTION_REFERENCES) -- name: javascript.options.wasm_function_references - type: bool - value: true - mirror: always -#endif // defined(ENABLE_WASM_FUNCTION_REFERENCES) - -#if defined(ENABLE_WASM_GC) - name: javascript.options.wasm_gc type: bool +#if defined(ENABLE_WASM_GC) value: true +#else + value: false +#endif mirror: always -#endif // defined(ENABLE_WASM_GC) + set_spidermonkey_pref: startup -#if defined(ENABLE_WASM_MEMORY_CONTROL) - name: javascript.options.wasm_memory_control type: bool value: false mirror: always -#endif // defined(ENABLE_WASM_MEMORY_CONTROL) + set_spidermonkey_pref: startup #if defined(ENABLE_WASM_SIMD) #if defined(JS_CODEGEN_X64) || defined(JS_CODEGEN_X86) @@ -7706,19 +7787,47 @@ #endif #endif -#if defined(ENABLE_WASM_MEMORY64) - name: javascript.options.wasm_memory64 type: bool +#if defined(ENABLE_WASM_MEMORY64) value: @IS_NIGHTLY_BUILD@ +#else + value: false +#endif mirror: always -#endif // defined(ENABLE_WASM_MEMORY64) + set_spidermonkey_pref: startup + +- name: javascript.options.wasm_multi_memory + type: bool +#if defined(ENABLE_WASM_MULTI_MEMORY) + value: true +#else + value: false +#endif + mirror: always + set_spidermonkey_pref: startup + +- name: javascript.options.wasm_js_string_builtins + type: bool + value: false + mirror: always + set_spidermonkey_pref: startup -#if defined(ENABLE_WASM_TAIL_CALLS) - name: javascript.options.wasm_tail_calls type: bool +#if defined(ENABLE_WASM_TAIL_CALLS) value: true +#else + value: false +#endif mirror: always -#endif // defined(ENABLE_WASM_TAIL_CALLS) + set_spidermonkey_pref: startup + +- name: javascript.options.wasm_test_serialization + type: bool + value: false + mirror: always + set_spidermonkey_pref: startup # Support for pretenuring allocations based on their allocation site. - name: javascript.options.site_based_pretenuring @@ -8202,6 +8311,13 @@ mirror: always rust: true +# Whether to respect align-content on blocks. +- name: layout.css.align-content.blocks.enabled + type: RelaxedAtomicBool + value: true + mirror: always + rust: true + # Whether Container Queries are enabled - name: layout.css.container-queries.enabled type: RelaxedAtomicBool @@ -8211,6 +8327,13 @@ # Whether content-box and stroke-box are enabled for transform-box. - name: layout.css.transform-box-content-stroke.enabled + type: RelaxedAtomicBool + value: true + mirror: always + rust: true + +# Whether transition-behavior property is enabled? +- name: layout.css.transition-behavior.enabled type: RelaxedAtomicBool value: @IS_NIGHTLY_BUILD@ mirror: always @@ -8371,7 +8494,7 @@ # Whether the `content-visibility` CSS property is enabled - name: layout.css.content-visibility.enabled type: RelaxedAtomicBool - value: @IS_NIGHTLY_BUILD@ + value: true mirror: always rust: true @@ -8561,20 +8684,6 @@ mirror: always rust: true -# Is support for math-style enabled? -- name: layout.css.math-style.enabled - type: RelaxedAtomicBool - value: true - mirror: always - rust: true - -# Is support for math-depth enabled? -- name: layout.css.math-depth.enabled - type: RelaxedAtomicBool - value: true - mirror: always - rust: true - # Is -moz-osx-font-smoothing enabled? (Only supported in OSX builds) - name: layout.css.osx-font-smoothing.enabled type: bool @@ -8769,9 +8878,9 @@ # numbers override as specified. # Note that 1 still creates a thread-pool of one thread! - name: layout.css.stylo-threads - type: int32_t + type: RelaxedAtomicInt32 value: -1 - mirror: once + mirror: always rust: true # Stylo work unit size. This is the amount of nodes we'll process in a single @@ -8876,6 +8985,12 @@ mirror: always rust: true +# UA styles for h1 in article/aside/nav/section. See bug 1883896. +- name: layout.css.h1-in-section-ua-styles.enabled + type: RelaxedAtomicBool + value: @IS_NOT_NIGHTLY_BUILD@ + mirror: always + # The maximum width or height of the cursor we should allow when intersecting # the UI, in CSS pixels. - name: layout.cursor.block.max-size @@ -9196,12 +9311,6 @@ value: true mirror: always -# Handle scroll-anchoring adjustments as absolute scroll position updates. -- name: layout.css.scroll-anchoring.absolute-update - type: bool - value: true - mirror: always - # Are shared memory User Agent style sheets enabled? - name: layout.css.shared-memory-ua-sheets.enabled type: bool @@ -9646,7 +9755,7 @@ # Is support for MediaKeys.getStatusForPolicy enabled? - name: media.eme.hdcp-policy-check.enabled type: bool - value: false + value: @IS_NIGHTLY_OR_DEV_EDITION@ mirror: always - name: media.eme.max-throughput-ms @@ -9785,7 +9894,7 @@ mirror: always #endif -#ifdef MOZ_FFVPX + - name: media.rdd-ffvpx.enabled type: RelaxedAtomicBool #if defined(XP_WIN) @@ -9802,7 +9911,6 @@ value: false #endif mirror: always -#endif #ifdef MOZ_WMF - name: media.rdd-wmf.enabled @@ -9946,12 +10054,10 @@ mirror: always #endif -#ifdef MOZ_FFVPX - name: media.utility-ffvpx.enabled type: RelaxedAtomicBool value: true mirror: always -#endif #ifdef MOZ_WMF - name: media.utility-wmf.enabled @@ -10048,13 +10154,11 @@ #endif mirror: always -#if defined(MOZ_FFMPEG) || defined(MOZ_FFVPX) # Allow using openh264 decoding with ffmpeg - name: media.ffmpeg.allow-openh264 type: RelaxedAtomicBool value: @IS_NOT_NIGHTLY_BUILD@ mirror: always -#endif # MOZ_FFMPEG || MOZ_FFVPX #ifdef MOZ_WIDGET_GTK # Use VA-API for ffmpeg video playback on Linux @@ -10074,15 +10178,6 @@ mirror: once #endif # MOZ_WIDGET_GTK -- name: media.ffvpx.enabled - type: RelaxedAtomicBool -#ifdef MOZ_FFVPX - value: true -#else - value: false -#endif - mirror: always - # Set to true in marionette tests to disable the sanity test # which would lead to unnecessary start of the RDD process. - name: media.sanity-test.disabled @@ -10173,7 +10268,11 @@ # 2 : enable for encrypted only, 3 : enable for clear only - name: media.wmf.media-engine.enabled type: RelaxedAtomicUint32 +#if defined(NIGHTLY_BUILD) + value: 2 +#else value: 0 +#endif mirror: always # Testing purpose, enable media engine on channel decoder as well. @@ -10200,6 +10299,12 @@ value: 2 mirror: always +# Bypass the gfx block list check for the media engine playback. +- name: media.wmf.media-engine.bypass-gfx-blocklist + type: RelaxedAtomicBool + value: false + mirror: always + # [TEST-ONLY] Use Media Foundation Clearkey CDM for EME related testing. - name: media.eme.wmf.clearkey.enabled type: RelaxedAtomicBool @@ -10217,8 +10322,8 @@ # Enable PlayReady DRM for EME - name: media.eme.playready.enabled type: RelaxedAtomicBool -#if defined(MOZ_WMF_CDM) && defined(NIGHTLY_BUILD) - value: false # TODO: enable this when ready to play. +#if defined(MOZ_WMF_CDM) && defined(IS_NIGHTLY_OR_DEV_EDITION) + value: true #else value: false #endif @@ -10237,6 +10342,8 @@ type: RelaxedAtomicUint32 #if defined(NIGHTLY_BUILD) value: 1 +#elif defined(MOZ_DEV_EDITION) + value: 2 #else value: 0 #endif @@ -11625,6 +11732,12 @@ value: 10 mirror: always +# Max size, in bytes, for received HTTP response header. +- name: network.http.max_response_header_size + type: RelaxedAtomicUint32 + value: 393216 + mirror: always + # This preference, if true, causes all UTF-8 domain names to be normalized to # punycode. The intention is to allow UTF-8 domain names as input, but never # generate them from punycode. @@ -11768,10 +11881,228 @@ # Indicates whether the `fetchpriority` attribute for elements which support it # (e.g. `