2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2017-01-17 15:25:43 +03:00
|
|
|
/* global pref */
|
|
|
|
|
2010-06-17 01:30:13 +04:00
|
|
|
pref("services.sync.lastversion", "firstrun");
|
2011-04-08 00:55:02 +04:00
|
|
|
pref("services.sync.sendVersionInfo", true);
|
2008-06-07 01:40:35 +04:00
|
|
|
|
2017-01-10 20:09:02 +03:00
|
|
|
pref("services.sync.scheduler.idleInterval", 3600); // 1 hour
|
|
|
|
pref("services.sync.scheduler.activeInterval", 600); // 10 minutes
|
|
|
|
pref("services.sync.scheduler.immediateInterval", 90); // 1.5 minutes
|
|
|
|
pref("services.sync.scheduler.idleTime", 300); // 5 minutes
|
2011-06-30 07:12:24 +04:00
|
|
|
|
2017-01-10 20:09:02 +03:00
|
|
|
pref("services.sync.scheduler.fxa.singleDeviceInterval", 3600); // 1 hour
|
2014-03-12 01:46:36 +04:00
|
|
|
|
2017-07-11 22:15:37 +03:00
|
|
|
// Note that new engines are typically added with a default of disabled, so
|
|
|
|
// when an existing sync user gets the Firefox upgrade that supports the engine
|
|
|
|
// it starts as disabled until the user has explicitly opted in.
|
|
|
|
// The sync "create account" process typically *will* offer these engines, so
|
|
|
|
// they may be flipped to enabled at that time.
|
2011-12-15 05:13:36 +04:00
|
|
|
pref("services.sync.engine.addons", true);
|
2017-07-11 22:15:37 +03:00
|
|
|
pref("services.sync.engine.addresses", false);
|
2010-06-17 01:30:13 +04:00
|
|
|
pref("services.sync.engine.bookmarks", true);
|
2017-12-20 04:10:54 +03:00
|
|
|
pref("services.sync.engine.bookmarks.buffer", false);
|
2017-07-11 22:15:37 +03:00
|
|
|
pref("services.sync.engine.creditcards", false);
|
2010-06-17 01:30:13 +04:00
|
|
|
pref("services.sync.engine.history", true);
|
|
|
|
pref("services.sync.engine.passwords", true);
|
|
|
|
pref("services.sync.engine.prefs", true);
|
|
|
|
pref("services.sync.engine.tabs", true);
|
2018-01-10 01:46:24 +03:00
|
|
|
pref("services.sync.engine.tabs.filteredUrls", "^(about:.*|resource:.*|chrome:.*|wyciwyg:.*|file:.*|blob:.*|moz-extension:.*)$");
|
2008-02-14 03:07:11 +03:00
|
|
|
|
2017-07-11 22:15:37 +03:00
|
|
|
// The addresses and CC engines might not actually be available at all.
|
|
|
|
pref("services.sync.engine.addresses.available", false);
|
|
|
|
pref("services.sync.engine.creditcards.available", false);
|
|
|
|
|
2011-12-15 05:10:34 +04:00
|
|
|
// If true, add-on sync ignores changes to the user-enabled flag. This
|
|
|
|
// allows people to have the same set of add-ons installed across all
|
|
|
|
// profiles while maintaining different enabled states.
|
|
|
|
pref("services.sync.addons.ignoreUserEnabledChanges", false);
|
|
|
|
|
|
|
|
// Comma-delimited list of hostnames to trust for add-on install.
|
|
|
|
pref("services.sync.addons.trustedSourceHostnames", "addons.mozilla.org");
|
|
|
|
|
2015-05-18 10:34:22 +03:00
|
|
|
pref("services.sync.log.appender.console", "Fatal");
|
2010-06-17 01:30:13 +04:00
|
|
|
pref("services.sync.log.appender.dump", "Error");
|
2011-06-13 22:39:51 +04:00
|
|
|
pref("services.sync.log.appender.file.level", "Trace");
|
|
|
|
pref("services.sync.log.appender.file.logOnError", true);
|
2017-03-10 13:03:58 +03:00
|
|
|
#if defined(NIGHTLY_BUILD)
|
|
|
|
pref("services.sync.log.appender.file.logOnSuccess", true);
|
|
|
|
#else
|
2011-06-13 22:39:51 +04:00
|
|
|
pref("services.sync.log.appender.file.logOnSuccess", false);
|
2017-03-10 13:03:58 +03:00
|
|
|
#endif
|
2011-09-09 03:52:07 +04:00
|
|
|
pref("services.sync.log.appender.file.maxErrorAge", 864000); // 10 days
|
2017-12-19 01:48:31 +03:00
|
|
|
|
|
|
|
// The default log level for all "Sync.*" logs. Adjusting this pref will
|
|
|
|
// adjust the level for *all* Sync logs (except engines, and that's only
|
|
|
|
// because we supply a default for the engines below.)
|
|
|
|
pref("services.sync.log.logger", "Debug");
|
|
|
|
|
|
|
|
// Prefs for Sync engines can be controlled globally or per-engine.
|
|
|
|
// We only define the global level here, but manually creating prefs
|
|
|
|
// like "services.sync.log.logger.engine.bookmarks" will control just
|
|
|
|
// that engine.
|
|
|
|
pref("services.sync.log.logger.engine", "Debug");
|
2010-06-17 01:30:13 +04:00
|
|
|
pref("services.sync.log.cryptoDebug", false);
|
2013-10-03 01:48:08 +04:00
|
|
|
|
2014-01-29 05:51:08 +04:00
|
|
|
pref("services.sync.fxa.termsURL", "https://accounts.firefox.com/legal/terms");
|
|
|
|
pref("services.sync.fxa.privacyURL", "https://accounts.firefox.com/legal/privacy");
|
2016-08-31 19:50:34 +03:00
|
|
|
|
|
|
|
pref("services.sync.telemetry.submissionInterval", 43200); // 12 hours in seconds
|
|
|
|
pref("services.sync.telemetry.maxPayloadCount", 500);
|
2016-09-12 21:59:25 +03:00
|
|
|
|
2017-07-28 02:07:14 +03:00
|
|
|
#ifdef EARLY_BETA_OR_EARLIER
|
|
|
|
// Enable the (fairly costly) client/server validation through early Beta, but
|
|
|
|
// not release candidates or Release.
|
2017-03-02 09:14:31 +03:00
|
|
|
pref("services.sync.engine.bookmarks.validation.enabled", true);
|
2018-02-01 04:00:29 +03:00
|
|
|
pref("services.sync.engine.passwords.validation.enabled", true);
|
2017-07-28 02:07:14 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(NIGHTLY_BUILD)
|
|
|
|
// Enable repair of bookmarks on Nightly only - requires validation also be
|
|
|
|
// enabled.
|
2017-03-02 09:14:31 +03:00
|
|
|
pref("services.sync.engine.bookmarks.repair.enabled", true);
|
|
|
|
#endif
|
2016-09-12 21:59:25 +03:00
|
|
|
|
|
|
|
// We consider validation this frequently. After considering validation, even
|
|
|
|
// if we don't end up validating, we won't try again unless this much time has passed.
|
2017-03-02 09:14:31 +03:00
|
|
|
pref("services.sync.engine.bookmarks.validation.interval", 86400); // 24 hours in seconds
|
2018-02-01 04:00:29 +03:00
|
|
|
pref("services.sync.engine.passwords.validation.interval", 86400); // 24 hours in seconds
|
2016-09-12 21:59:25 +03:00
|
|
|
|
|
|
|
// We only run validation `services.sync.validation.percentageChance` percent of
|
|
|
|
// the time, even if it's been the right amount of time since the last validation,
|
|
|
|
// and you meet the maxRecord checks.
|
2017-03-02 09:14:31 +03:00
|
|
|
pref("services.sync.engine.bookmarks.validation.percentageChance", 10);
|
2018-02-01 04:00:29 +03:00
|
|
|
pref("services.sync.engine.passwords.validation.percentageChance", 10);
|
2016-09-12 21:59:25 +03:00
|
|
|
|
2017-01-13 01:27:34 +03:00
|
|
|
// We won't validate an engine if it has more than this many records on the server.
|
2017-03-02 09:14:31 +03:00
|
|
|
pref("services.sync.engine.bookmarks.validation.maxRecords", 1000);
|
2018-02-01 04:00:29 +03:00
|
|
|
pref("services.sync.engine.passwords.validation.maxRecords", 1000);
|
2017-05-11 05:21:16 +03:00
|
|
|
|
|
|
|
// The maximum number of immediate resyncs to trigger for changes made during
|
|
|
|
// a sync.
|
|
|
|
pref("services.sync.maxResyncs", 5);
|