Bug 1095128: Make sure add-on updates remain disabled after each browser chrome test.

This commit is contained in:
Dave Townsend 2014-11-18 09:18:51 -08:00
parent cc07ea6beb
commit c797117891
2 changed files with 3 additions and 6 deletions

View File

@ -21,15 +21,10 @@ var gSetDefault;
var gResetToAutomatic;
var gResetToManual;
// Remember and restore preferences for this test, and make sure
// we don't accidentally start a background update while the prefs
// Make sure we don't accidentally start a background update while the prefs
// are enabled.
disableBackgroundUpdateTimer();
var updatesEnabled = Services.prefs.getBoolPref(PREF_UPDATE_ENABLED);
var autoDefault = Services.prefs.getBoolPref(PREF_AUTOUPDATE_DEFAULT);
registerCleanupFunction(() => {
Services.prefs.setBoolPref(PREF_UPDATE_ENABLED, updatesEnabled);
Services.prefs.setBoolPref(PREF_AUTOUPDATE_DEFAULT, autoDefault);
enableBackgroundUpdateTimer();
});

View File

@ -65,6 +65,8 @@ var gRestorePrefs = [{name: PREF_LOGGING_ENABLED},
{name: "extensions.webservice.discoverURL"},
{name: "extensions.update.url"},
{name: "extensions.update.background.url"},
{name: "extensions.update.enabled"},
{name: "extensions.update.autoUpdateDefault"},
{name: "extensions.getAddons.get.url"},
{name: "extensions.getAddons.getWithPerformance.url"},
{name: "extensions.getAddons.search.browseURL"},