tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug1658259.js (1073B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 add_task(async function test_bug1658259_1() {
      7  await setupPolicyEngineWithJson({
      8    policies: {
      9      OfferToSaveLogins: false,
     10      OfferToSaveLoginsDefault: true,
     11    },
     12  });
     13  checkLockedPref("signon.rememberSignons", false);
     14 });
     15 
     16 add_task(async function test_bug1658259_2() {
     17  await setupPolicyEngineWithJson({
     18    policies: {
     19      OfferToSaveLogins: true,
     20      OfferToSaveLoginsDefault: false,
     21    },
     22  });
     23  checkLockedPref("signon.rememberSignons", true);
     24 });
     25 
     26 add_task(async function test_bug1658259_3() {
     27  await setupPolicyEngineWithJson({
     28    policies: {
     29      OfferToSaveLoginsDefault: true,
     30      OfferToSaveLogins: false,
     31    },
     32  });
     33  checkLockedPref("signon.rememberSignons", false);
     34 });
     35 
     36 add_task(async function test_bug1658259_4() {
     37  await setupPolicyEngineWithJson({
     38    policies: {
     39      OfferToSaveLoginsDefault: false,
     40      OfferToSaveLogins: true,
     41    },
     42  });
     43  checkLockedPref("signon.rememberSignons", true);
     44 });