Copy as Markdown
Other Tools
// This file was generated by generate_static_pref_list.py from modules/libpref/init/StaticPrefList.yaml. DO NOT EDIT.
pub use nsstring::nsCString;
extern "C" {
pub fn StaticPrefs_browser_display_document_color_use() -> u32;
pub fn StaticPrefs_browser_display_windows_non_native_menus() -> u32;
pub fn StaticPrefs_browser_display_permit_backplate() -> bool;
pub fn StaticPrefs_browser_display_os_zoom_behavior() -> i32;
pub fn StaticPrefs_browser_display_use_document_fonts() -> i32;
pub fn StaticPrefs_browser_theme_content_theme() -> u32;
pub fn StaticPrefs_browser_theme_windows_accent_color_in_tabs_enabled() -> bool;
pub fn StaticPrefs_datareporting_healthreport_uploadEnabled() -> bool;
pub fn StaticPrefs_dom_customHighlightAPI_enabled() -> bool;
pub fn StaticPrefs_dom_element_customstateset_enabled() -> bool;
pub fn StaticPrefs_dom_text_fragments_enabled() -> bool;
pub fn StaticPrefs_dom_viewTransitions_enabled() -> bool;
pub fn StaticPrefs_dom_webgpu_wgpu_backend(result: *mut nsstring::nsACString);
pub fn StaticPrefs_dom_webgpu_testing_assert_hardware_adapter() -> bool;
pub fn StaticPrefs_dom_webgpu_hal_labels_AtStartup() -> bool;
pub fn StaticPrefs_gfx_font_rendering_opentype_svg_enabled() -> bool;
pub fn StaticPrefs_gfx_webrender_frame_builder_thread_local_arena_AtStartup() -> bool;
pub fn StaticPrefs_gfx_webrender_scene_builder_thread_local_arena_AtStartup() -> bool;
pub fn StaticPrefs_gfx_webrender_worker_thread_local_arena_AtStartup() -> bool;
pub fn StaticPrefs_layout_css_anchor_positioning_enabled() -> bool;
pub fn StaticPrefs_layout_css_always_underline_links() -> bool;
pub fn StaticPrefs_layout_css_align_content_blocks_enabled() -> bool;
pub fn StaticPrefs_layout_css_transform_box_content_stroke_enabled() -> bool;
pub fn StaticPrefs_layout_css_transition_behavior_enabled() -> bool;
pub fn StaticPrefs_layout_css_starting_style_at_rules_enabled() -> bool;
pub fn StaticPrefs_layout_css_moz_control_character_visibility_enabled() -> bool;
pub fn StaticPrefs_layout_css_moz_user_input_enabled() -> bool;
pub fn StaticPrefs_layout_css_computed_style_dont_resolve_image_local_refs() -> bool;
pub fn StaticPrefs_layout_css_system_ui_enabled() -> bool;
pub fn StaticPrefs_layout_css_basic_shape_rect_enabled() -> bool;
pub fn StaticPrefs_layout_css_basic_shape_shape_enabled() -> bool;
pub fn StaticPrefs_layout_css_basic_shape_xywh_enabled() -> bool;
pub fn StaticPrefs_layout_css_content_alt_text_enabled() -> bool;
pub fn StaticPrefs_layout_css_control_characters_visible() -> bool;
pub fn StaticPrefs_layout_css_contain_intrinsic_size_enabled() -> bool;
pub fn StaticPrefs_layout_css_cross_fade_enabled() -> bool;
pub fn StaticPrefs_layout_css_light_dark_enabled() -> bool;
pub fn StaticPrefs_layout_css_fit_content_function_enabled() -> bool;
pub fn StaticPrefs_layout_css_font_palette_enabled() -> bool;
pub fn StaticPrefs_layout_css_font_variations_enabled() -> bool;
pub fn StaticPrefs_layout_css_size_adjust_enabled() -> bool;
pub fn StaticPrefs_layout_css_font_tech_enabled() -> bool;
pub fn StaticPrefs_layout_css_font_variant_emoji_enabled() -> bool;
pub fn StaticPrefs_layout_css_gradient_color_interpolation_method_enabled() -> bool;
pub fn StaticPrefs_layout_css_grid_template_masonry_value_enabled() -> bool;
pub fn StaticPrefs_layout_css_has_selector_enabled() -> bool;
pub fn StaticPrefs_layout_css_has_slotted_selector_enabled() -> bool;
pub fn StaticPrefs_layout_css_motion_path_url_enabled() -> bool;
pub fn StaticPrefs_layout_css_marker_restricted() -> bool;
pub fn StaticPrefs_layout_css_overflow_moz_hidden_unscrollable_enabled() -> bool;
pub fn StaticPrefs_layout_css_page_orientation_enabled() -> bool;
pub fn StaticPrefs_layout_css_margin_rules_enabled() -> bool;
pub fn StaticPrefs_layout_css_properties_and_values_enabled() -> bool;
pub fn StaticPrefs_layout_css_at_scope_enabled() -> bool;
pub fn StaticPrefs_layout_css_prefers_reduced_transparency_enabled() -> bool;
pub fn StaticPrefs_layout_css_inverted_colors_enabled() -> bool;
pub fn StaticPrefs_layout_css_relative_color_syntax_enabled() -> bool;
pub fn StaticPrefs_layout_css_scroll_driven_animations_enabled() -> bool;
pub fn StaticPrefs_layout_css_stylo_threads() -> i32;
pub fn StaticPrefs_layout_css_stylo_work_unit_size() -> u32;
pub fn StaticPrefs_layout_css_stylo_local_work_queue_in_worker() -> u32;
pub fn StaticPrefs_layout_css_stylo_local_work_queue_in_main_thread() -> u32;
pub fn StaticPrefs_layout_css_use_counters_unimplemented_enabled() -> bool;
pub fn StaticPrefs_layout_css_text_indent_keywords_enabled() -> bool;
pub fn StaticPrefs_layout_css_zoom_enabled() -> bool;
pub fn StaticPrefs_layout_css_stretch_size_keyword_enabled() -> bool;
pub fn StaticPrefs_layout_css_webkit_fill_available_enabled() -> bool;
pub fn StaticPrefs_layout_css_element_content_none_enabled() -> bool;
pub fn StaticPrefs_layout_css_import_supports_enabled() -> bool;
pub fn StaticPrefs_layout_css_moz_broken_content_enabled() -> bool;
pub fn StaticPrefs_layout_css_modern_range_pseudos_enabled() -> bool;
pub fn StaticPrefs_mathml_legacy_mathvariant_attribute_disabled() -> bool;
pub fn StaticPrefs_mathml_centered_operators_disabled() -> bool;
pub fn StaticPrefs_mathml_top_bottom_spacing_for_stretchy_operators_disabled() -> bool;
pub fn StaticPrefs_network_http_http3_ecn() -> bool;
pub fn StaticPrefs_network_http_http3_block_loopback_ipv6_addr() -> bool;
pub fn StaticPrefs_network_http_http3_cc_algorithm() -> u32;
pub fn StaticPrefs_network_http_http3_max_accumlated_time_ms() -> u32;
pub fn StaticPrefs_network_http_http3_enable_kyber() -> bool;
pub fn StaticPrefs_security_webauthn_ctap2() -> bool;
pub fn StaticPrefs_security_webauth_webauthn_enable_softtoken() -> bool;
pub fn StaticPrefs_security_webauth_webauthn_enable_usbtoken() -> bool;
pub fn StaticPrefs_security_webauth_webauthn_testing_allow_direct_attestation() -> bool;
pub fn StaticPrefs_security_pki_crlite_timestamps_for_coverage() -> u32;
pub fn StaticPrefs_security_tls_grease_http3_enable() -> bool;
pub fn StaticPrefs_security_tls_enable_kyber() -> bool;
pub fn StaticPrefs_security_tls_client_hello_send_p256_keyshare() -> bool;
pub fn StaticPrefs_telemetry_fog_test_localhost_port() -> i32;
pub fn StaticPrefs_telemetry_fog_test_activity_limit() -> i32;
pub fn StaticPrefs_telemetry_fog_test_inactivity_limit() -> i32;
pub fn StaticPrefs_widget_gtk_rounded_bottom_corners_enabled() -> bool;
}
#[macro_export]
macro_rules! pref {
("browser.display.document_color_use") => (unsafe { $crate::StaticPrefs_browser_display_document_color_use() });
("browser.display.windows.non_native_menus") => (unsafe { $crate::StaticPrefs_browser_display_windows_non_native_menus() });
("browser.display.permit_backplate") => (unsafe { $crate::StaticPrefs_browser_display_permit_backplate() });
("browser.display.os-zoom-behavior") => (unsafe { $crate::StaticPrefs_browser_display_os_zoom_behavior() });
("browser.display.use_document_fonts") => (unsafe { $crate::StaticPrefs_browser_display_use_document_fonts() });
("browser.theme.content-theme") => (unsafe { $crate::StaticPrefs_browser_theme_content_theme() });
("browser.theme.windows.accent-color-in-tabs.enabled") => (unsafe { $crate::StaticPrefs_browser_theme_windows_accent_color_in_tabs_enabled() });
("datareporting.healthreport.uploadEnabled") => (unsafe { $crate::StaticPrefs_datareporting_healthreport_uploadEnabled() });
("dom.customHighlightAPI.enabled") => (unsafe { $crate::StaticPrefs_dom_customHighlightAPI_enabled() });
("dom.element.customstateset.enabled") => (unsafe { $crate::StaticPrefs_dom_element_customstateset_enabled() });
("dom.text_fragments.enabled") => (unsafe { $crate::StaticPrefs_dom_text_fragments_enabled() });
("dom.viewTransitions.enabled") => (unsafe { $crate::StaticPrefs_dom_viewTransitions_enabled() });
("dom.webgpu.wgpu-backend") => (unsafe { let mut result = $crate::nsCString::new(); $crate::StaticPrefs_dom_webgpu_wgpu_backend(&mut *result); result });
("dom.webgpu.testing.assert-hardware-adapter") => (unsafe { $crate::StaticPrefs_dom_webgpu_testing_assert_hardware_adapter() });
("dom.webgpu.hal-labels") => (unsafe { $crate::StaticPrefs_dom_webgpu_hal_labels_AtStartup() });
("gfx.font_rendering.opentype_svg.enabled") => (unsafe { $crate::StaticPrefs_gfx_font_rendering_opentype_svg_enabled() });
("gfx.webrender.frame-builder-thread-local-arena") => (unsafe { $crate::StaticPrefs_gfx_webrender_frame_builder_thread_local_arena_AtStartup() });
("gfx.webrender.scene-builder-thread-local-arena") => (unsafe { $crate::StaticPrefs_gfx_webrender_scene_builder_thread_local_arena_AtStartup() });
("gfx.webrender.worker-thread-local-arena") => (unsafe { $crate::StaticPrefs_gfx_webrender_worker_thread_local_arena_AtStartup() });
("layout.css.anchor-positioning.enabled") => (unsafe { $crate::StaticPrefs_layout_css_anchor_positioning_enabled() });
("layout.css.always_underline_links") => (unsafe { $crate::StaticPrefs_layout_css_always_underline_links() });
("layout.css.align-content.blocks.enabled") => (unsafe { $crate::StaticPrefs_layout_css_align_content_blocks_enabled() });
("layout.css.transform-box-content-stroke.enabled") => (unsafe { $crate::StaticPrefs_layout_css_transform_box_content_stroke_enabled() });
("layout.css.transition-behavior.enabled") => (unsafe { $crate::StaticPrefs_layout_css_transition_behavior_enabled() });
("layout.css.starting-style-at-rules.enabled") => (unsafe { $crate::StaticPrefs_layout_css_starting_style_at_rules_enabled() });
("layout.css.moz-control-character-visibility.enabled") => (unsafe { $crate::StaticPrefs_layout_css_moz_control_character_visibility_enabled() });
("layout.css.moz-user-input.enabled") => (unsafe { $crate::StaticPrefs_layout_css_moz_user_input_enabled() });
("layout.css.computed-style.dont-resolve-image-local-refs") => (unsafe { $crate::StaticPrefs_layout_css_computed_style_dont_resolve_image_local_refs() });
("layout.css.system-ui.enabled") => (unsafe { $crate::StaticPrefs_layout_css_system_ui_enabled() });
("layout.css.basic-shape-rect.enabled") => (unsafe { $crate::StaticPrefs_layout_css_basic_shape_rect_enabled() });
("layout.css.basic-shape-shape.enabled") => (unsafe { $crate::StaticPrefs_layout_css_basic_shape_shape_enabled() });
("layout.css.basic-shape-xywh.enabled") => (unsafe { $crate::StaticPrefs_layout_css_basic_shape_xywh_enabled() });
("layout.css.content.alt-text.enabled") => (unsafe { $crate::StaticPrefs_layout_css_content_alt_text_enabled() });
("layout.css.control-characters.visible") => (unsafe { $crate::StaticPrefs_layout_css_control_characters_visible() });
("layout.css.contain-intrinsic-size.enabled") => (unsafe { $crate::StaticPrefs_layout_css_contain_intrinsic_size_enabled() });
("layout.css.cross-fade.enabled") => (unsafe { $crate::StaticPrefs_layout_css_cross_fade_enabled() });
("layout.css.light-dark.enabled") => (unsafe { $crate::StaticPrefs_layout_css_light_dark_enabled() });
("layout.css.fit-content-function.enabled") => (unsafe { $crate::StaticPrefs_layout_css_fit_content_function_enabled() });
("layout.css.font-palette.enabled") => (unsafe { $crate::StaticPrefs_layout_css_font_palette_enabled() });
("layout.css.font-variations.enabled") => (unsafe { $crate::StaticPrefs_layout_css_font_variations_enabled() });
("layout.css.size-adjust.enabled") => (unsafe { $crate::StaticPrefs_layout_css_size_adjust_enabled() });
("layout.css.font-tech.enabled") => (unsafe { $crate::StaticPrefs_layout_css_font_tech_enabled() });
("layout.css.font-variant-emoji.enabled") => (unsafe { $crate::StaticPrefs_layout_css_font_variant_emoji_enabled() });
("layout.css.gradient-color-interpolation-method.enabled") => (unsafe { $crate::StaticPrefs_layout_css_gradient_color_interpolation_method_enabled() });
("layout.css.grid-template-masonry-value.enabled") => (unsafe { $crate::StaticPrefs_layout_css_grid_template_masonry_value_enabled() });
("layout.css.has-selector.enabled") => (unsafe { $crate::StaticPrefs_layout_css_has_selector_enabled() });
("layout.css.has-slotted-selector.enabled") => (unsafe { $crate::StaticPrefs_layout_css_has_slotted_selector_enabled() });
("layout.css.motion-path-url.enabled") => (unsafe { $crate::StaticPrefs_layout_css_motion_path_url_enabled() });
("layout.css.marker.restricted") => (unsafe { $crate::StaticPrefs_layout_css_marker_restricted() });
("layout.css.overflow-moz-hidden-unscrollable.enabled") => (unsafe { $crate::StaticPrefs_layout_css_overflow_moz_hidden_unscrollable_enabled() });
("layout.css.page-orientation.enabled") => (unsafe { $crate::StaticPrefs_layout_css_page_orientation_enabled() });
("layout.css.margin-rules.enabled") => (unsafe { $crate::StaticPrefs_layout_css_margin_rules_enabled() });
("layout.css.properties-and-values.enabled") => (unsafe { $crate::StaticPrefs_layout_css_properties_and_values_enabled() });
("layout.css.at-scope.enabled") => (unsafe { $crate::StaticPrefs_layout_css_at_scope_enabled() });
("layout.css.prefers-reduced-transparency.enabled") => (unsafe { $crate::StaticPrefs_layout_css_prefers_reduced_transparency_enabled() });
("layout.css.inverted-colors.enabled") => (unsafe { $crate::StaticPrefs_layout_css_inverted_colors_enabled() });
("layout.css.relative-color-syntax.enabled") => (unsafe { $crate::StaticPrefs_layout_css_relative_color_syntax_enabled() });
("layout.css.scroll-driven-animations.enabled") => (unsafe { $crate::StaticPrefs_layout_css_scroll_driven_animations_enabled() });
("layout.css.stylo-threads") => (unsafe { $crate::StaticPrefs_layout_css_stylo_threads() });
("layout.css.stylo-work-unit-size") => (unsafe { $crate::StaticPrefs_layout_css_stylo_work_unit_size() });
("layout.css.stylo-local-work-queue.in-worker") => (unsafe { $crate::StaticPrefs_layout_css_stylo_local_work_queue_in_worker() });
("layout.css.stylo-local-work-queue.in-main-thread") => (unsafe { $crate::StaticPrefs_layout_css_stylo_local_work_queue_in_main_thread() });
("layout.css.use-counters-unimplemented.enabled") => (unsafe { $crate::StaticPrefs_layout_css_use_counters_unimplemented_enabled() });
("layout.css.text-indent-keywords.enabled") => (unsafe { $crate::StaticPrefs_layout_css_text_indent_keywords_enabled() });
("layout.css.zoom.enabled") => (unsafe { $crate::StaticPrefs_layout_css_zoom_enabled() });
("layout.css.stretch-size-keyword.enabled") => (unsafe { $crate::StaticPrefs_layout_css_stretch_size_keyword_enabled() });
("layout.css.webkit-fill-available.enabled") => (unsafe { $crate::StaticPrefs_layout_css_webkit_fill_available_enabled() });
("layout.css.element-content-none.enabled") => (unsafe { $crate::StaticPrefs_layout_css_element_content_none_enabled() });
("layout.css.import-supports.enabled") => (unsafe { $crate::StaticPrefs_layout_css_import_supports_enabled() });
("layout.css.moz-broken.content.enabled") => (unsafe { $crate::StaticPrefs_layout_css_moz_broken_content_enabled() });
("layout.css.modern-range-pseudos.enabled") => (unsafe { $crate::StaticPrefs_layout_css_modern_range_pseudos_enabled() });
("mathml.legacy_mathvariant_attribute.disabled") => (unsafe { $crate::StaticPrefs_mathml_legacy_mathvariant_attribute_disabled() });
("mathml.centered_operators.disabled") => (unsafe { $crate::StaticPrefs_mathml_centered_operators_disabled() });
("mathml.top_bottom_spacing_for_stretchy_operators.disabled") => (unsafe { $crate::StaticPrefs_mathml_top_bottom_spacing_for_stretchy_operators_disabled() });
("network.http.http3.ecn") => (unsafe { $crate::StaticPrefs_network_http_http3_ecn() });
("network.http.http3.block_loopback_ipv6_addr") => (unsafe { $crate::StaticPrefs_network_http_http3_block_loopback_ipv6_addr() });
("network.http.http3.cc_algorithm") => (unsafe { $crate::StaticPrefs_network_http_http3_cc_algorithm() });
("network.http.http3.max_accumlated_time_ms") => (unsafe { $crate::StaticPrefs_network_http_http3_max_accumlated_time_ms() });
("network.http.http3.enable_kyber") => (unsafe { $crate::StaticPrefs_network_http_http3_enable_kyber() });
("security.webauthn.ctap2") => (unsafe { $crate::StaticPrefs_security_webauthn_ctap2() });
("security.webauth.webauthn_enable_softtoken") => (unsafe { $crate::StaticPrefs_security_webauth_webauthn_enable_softtoken() });
("security.webauth.webauthn_enable_usbtoken") => (unsafe { $crate::StaticPrefs_security_webauth_webauthn_enable_usbtoken() });
("security.webauth.webauthn_testing_allow_direct_attestation") => (unsafe { $crate::StaticPrefs_security_webauth_webauthn_testing_allow_direct_attestation() });
("security.pki.crlite_timestamps_for_coverage") => (unsafe { $crate::StaticPrefs_security_pki_crlite_timestamps_for_coverage() });
("security.tls.grease_http3_enable") => (unsafe { $crate::StaticPrefs_security_tls_grease_http3_enable() });
("security.tls.enable_kyber") => (unsafe { $crate::StaticPrefs_security_tls_enable_kyber() });
("security.tls.client_hello.send_p256_keyshare") => (unsafe { $crate::StaticPrefs_security_tls_client_hello_send_p256_keyshare() });
("telemetry.fog.test.localhost_port") => (unsafe { $crate::StaticPrefs_telemetry_fog_test_localhost_port() });
("telemetry.fog.test.activity_limit") => (unsafe { $crate::StaticPrefs_telemetry_fog_test_activity_limit() });
("telemetry.fog.test.inactivity_limit") => (unsafe { $crate::StaticPrefs_telemetry_fog_test_inactivity_limit() });
("widget.gtk.rounded-bottom-corners.enabled") => (unsafe { $crate::StaticPrefs_widget_gtk_rounded_bottom_corners_enabled() });
}