зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1095128: Make sure add-on updates remain disabled after each browser chrome test.
This commit is contained in:
Родитель
4f0f16c656
Коммит
000237069c
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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"},
|
||||
|
|
Загрузка…
Ссылка в новой задаче