1
0
Fork 0
firefox/browser/components/enterprisepolicies/tests/xpcshell/test_bug1658259.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

44 lines
1 KiB
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function test_bug1658259_1() {
await setupPolicyEngineWithJson({
policies: {
OfferToSaveLogins: false,
OfferToSaveLoginsDefault: true,
},
});
checkLockedPref("signon.rememberSignons", false);
});
add_task(async function test_bug1658259_2() {
await setupPolicyEngineWithJson({
policies: {
OfferToSaveLogins: true,
OfferToSaveLoginsDefault: false,
},
});
checkLockedPref("signon.rememberSignons", true);
});
add_task(async function test_bug1658259_3() {
await setupPolicyEngineWithJson({
policies: {
OfferToSaveLoginsDefault: true,
OfferToSaveLogins: false,
},
});
checkLockedPref("signon.rememberSignons", false);
});
add_task(async function test_bug1658259_4() {
await setupPolicyEngineWithJson({
policies: {
OfferToSaveLoginsDefault: false,
OfferToSaveLogins: true,
},
});
checkLockedPref("signon.rememberSignons", true);
});