From a2f8dcfb8ae931087e43068b2e0f28f4e6815026 Mon Sep 17 00:00:00 2001 From: "Ngo Iok Ui (Wu Yu Wei)" Date: Mon, 16 Oct 2023 22:07:41 +0900 Subject: [PATCH] Add documentation to a few pref configs (#30548) * Add documentation to a few pref configs * Update components/config/prefs.rs --------- Co-authored-by: Martin Robinson --- components/config/prefs.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/config/prefs.rs b/components/config/prefs.rs index 0974ed19a9b..93bb3259711 100644 --- a/components/config/prefs.rs +++ b/components/config/prefs.rs @@ -145,6 +145,7 @@ mod gen { }, dom: { webgpu: { + /// Enable WebGPU APIs. enabled: bool, }, bluetooth: { @@ -274,6 +275,7 @@ mod gen { enabled: bool, }, webgl2: { + /// Enable WebGL2 APIs. enabled: bool, }, webrtc: { @@ -490,12 +492,14 @@ mod gen { }, shell: { background_color: { + /// The background color of shell's viewport. This will be used by OpenGL's `glClearColor`. #[serde(rename = "shell.background-color.rgba")] rgba: [f64; 4], }, crash_reporter: { enabled: bool, }, + /// URL string of the homepage. homepage: String, keep_screen_on: { enabled: bool, @@ -503,9 +507,11 @@ mod gen { #[serde(rename = "shell.native-orientation")] native_orientation: String, native_titlebar: { + /// Enable native window's titlebar and decorations. #[serde(rename = "shell.native-titlebar.enabled")] enabled: bool, }, + /// URL string of the search engine page (for example or and . searchpage: String, }, webgl: {