commit 1fed30736a26c73b10d63bb7b88ee55d0205350e
parent 3577b7a2aad52a9546cce9febe7f4f0273450ec9
Author: mark <mkennedy@mozilla.com>
Date: Tue, 7 Oct 2025 19:46:14 +0000
Bug 1992966 - Fix Windows-only preferences message bar r=akulyk
Differential Revision: https://phabricator.services.mozilla.com/D267838
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js
@@ -1129,9 +1129,7 @@ let SETTINGS_CONFIG = {
{
id: "windowsLaunchOnLoginDisabledProfileBox",
control: "moz-message-bar",
- controlAttrs: {
- l10nId: "startup-windows-launch-on-login-profile-disabled",
- },
+ l10nId: "startup-windows-launch-on-login-profile-disabled",
},
{
id: "alwaysCheckDefault",
diff --git a/browser/components/preferences/tests/browser_windows_launch_on_login.js b/browser/components/preferences/tests/browser_windows_launch_on_login.js
@@ -193,6 +193,13 @@ add_task(async function testDisablingLaunchOnLogin() {
let launchOnLoginDisabledMessage = doc.getElementById(
"windowsLaunchOnLoginDisabledProfileBox"
);
+
+ is(
+ launchOnLoginDisabledMessage.dataset.l10nId,
+ "startup-windows-launch-on-login-profile-disabled",
+ "Has proper fluent ID"
+ );
+
ok(!launchOnLoginDisabledMessage.hidden, "Disabled message is displayed");
gBrowser.removeCurrentTab();