Bug 1515712 - add default pref and start corroborator if enabled r=kmag

Depends on D15123

Differential Revision: https://phabricator.services.mozilla.com/D28250

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Robert Helmer 2019-04-20 05:10:23 +00:00
Родитель de19e6e803
Коммит 92681d5884
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1879,3 +1879,10 @@ pref("browser.toolbars.keyboard_navigation", true);
// quick access to sign-in and manage your Firefox Account. // quick access to sign-in and manage your Firefox Account.
pref("identity.fxaccounts.toolbar.enabled", true); pref("identity.fxaccounts.toolbar.enabled", true);
pref("identity.fxaccounts.toolbar.accessed", false); pref("identity.fxaccounts.toolbar.accessed", false);
// Check bundled JAR and XPI files for corruption.
#ifdef RELEASE_OR_BETA
pref("corroborator.enabled", false);
#else
pref("corroborator.enabled", true);
#endif

Просмотреть файл

@ -391,6 +391,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
BrowserUsageTelemetry: "resource:///modules/BrowserUsageTelemetry.jsm", BrowserUsageTelemetry: "resource:///modules/BrowserUsageTelemetry.jsm",
BrowserWindowTracker: "resource:///modules/BrowserWindowTracker.jsm", BrowserWindowTracker: "resource:///modules/BrowserWindowTracker.jsm",
ContextualIdentityService: "resource://gre/modules/ContextualIdentityService.jsm", ContextualIdentityService: "resource://gre/modules/ContextualIdentityService.jsm",
Corroborate: "resource://gre/modules/Corroborate.jsm",
DateTimePickerParent: "resource://gre/modules/DateTimePickerParent.jsm", DateTimePickerParent: "resource://gre/modules/DateTimePickerParent.jsm",
Discovery: "resource:///modules/Discovery.jsm", Discovery: "resource:///modules/Discovery.jsm",
ExtensionsUI: "resource:///modules/ExtensionsUI.jsm", ExtensionsUI: "resource:///modules/ExtensionsUI.jsm",
@ -1574,6 +1575,10 @@ BrowserGlue.prototype = {
this._monitorScreenshotsPref(); this._monitorScreenshotsPref();
this._monitorWebcompatReporterPref(); this._monitorWebcompatReporterPref();
if (Services.prefs.getBoolPref("corroborator.enabled", true)) {
Corroborate.init().catch(Cu.reportError);
}
let pService = Cc["@mozilla.org/toolkit/profile-service;1"]. let pService = Cc["@mozilla.org/toolkit/profile-service;1"].
getService(Ci.nsIToolkitProfileService); getService(Ci.nsIToolkitProfileService);
if (pService.createdAlternateProfile) { if (pService.createdAlternateProfile) {