1
0
Fork 0
firefox/browser/components/tests/browser/browser_browserGlue_os_auth.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

25 lines
856 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const { FormAutofillUtils } = ChromeUtils.importESModule(
"resource://gre/modules/shared/FormAutofillUtils.sys.mjs"
);
// Check whether os auth is disabled by default on a new profile in Beta and Release.
add_task(async function test_creditCards_os_auth_disabled_for_new_profile() {
Assert.equal(
FormAutofillUtils.getOSAuthEnabled(
FormAutofillUtils.AUTOFILL_CREDITCARDS_REAUTH_PREF
),
AppConstants.NIGHTLY_BUILD,
"OS Auth should be disabled for credit cards by default for a new profile."
);
Assert.equal(
LoginHelper.getOSAuthEnabled(LoginHelper.OS_AUTH_FOR_PASSWORDS_PREF),
AppConstants.NIGHTLY_BUILD,
"OS Auth should be disabled for passwords by default for a new profile."
);
});