tor-browser

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

prefs_test_prefs_store.js (2031B)


      1 // This is a "preferences" file used by test_prefs_store.js
      2 
      3 /* global pref, user_pref */
      4 
      5 // The prefs that control what should be synced.
      6 // Most of these are "default" prefs, so the value itself will not sync.
      7 pref("services.sync.prefs.sync.testing.int", true);
      8 pref("services.sync.prefs.sync.testing.string", true);
      9 pref("services.sync.prefs.sync.testing.bool", true);
     10 pref("services.sync.prefs.sync.testing.dont.change", true);
     11 // This is a default pref, but has the special "sync-seen" pref.
     12 pref("services.sync.prefs.sync.testing.seen", true);
     13 pref("services.sync.prefs.sync-seen.testing.seen", false);
     14 
     15 // this one is a user pref, so it *will* sync.
     16 user_pref("services.sync.prefs.sync.testing.turned.off", false);
     17 pref("services.sync.prefs.sync.testing.nonexistent", true);
     18 pref("services.sync.prefs.sync.testing.default", true);
     19 pref("services.sync.prefs.sync.testing.synced.url", true);
     20 // We shouldn't sync the URL, or the flag that says we should sync the pref
     21 // (otherwise some other client might overwrite our local value).
     22 user_pref("services.sync.prefs.sync.testing.unsynced.url", true);
     23 
     24 // The preference values - these are all user_prefs, otherwise their value
     25 // will not be synced.
     26 user_pref("testing.int", 123);
     27 user_pref("testing.string", "ohai");
     28 user_pref("testing.bool", true);
     29 user_pref("testing.dont.change", "Please don't change me.");
     30 user_pref("testing.turned.off", "I won't get synced.");
     31 user_pref("testing.not.turned.on", "I won't get synced either!");
     32 // Some url we don't want to sync
     33 user_pref(
     34  "testing.unsynced.url",
     35  "moz-extension://d5d31b00-b944-4afb-bd3d-d0326551a0ae"
     36 );
     37 user_pref("testing.synced.url", "https://www.example.com");
     38 
     39 // A pref that exists but still has the default value - will be synced with
     40 // null as the value.
     41 pref("testing.default", "I'm the default value");
     42 
     43 // A pref that has the default value - it will start syncing as soon as
     44 // we see a change, even if the change is to the default.
     45 pref("testing.seen", "the value");
     46 
     47 // A pref that shouldn't be synced