mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1095128: Make sure add-on updates remain disabled after each browser chrome test.
This commit is contained in:
parent
cc07ea6beb
commit
c797117891
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user