diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-08-07 14:11:20 -0400 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-07 21:30:03 +0000 |
commit | 3cf08436797f0317064c950bdeedb0fef83e8832 (patch) | |
tree | ae3881d2dc7a7d36e653eef06a8f6039138939d2 /toolkit/mozapps/extensions/internal | |
parent | ff21776616586562ab8c24f3180fff9901574038 (diff) | |
download | UXP-3cf08436797f0317064c950bdeedb0fef83e8832.tar UXP-3cf08436797f0317064c950bdeedb0fef83e8832.tar.gz UXP-3cf08436797f0317064c950bdeedb0fef83e8832.tar.lz UXP-3cf08436797f0317064c950bdeedb0fef83e8832.tar.xz UXP-3cf08436797f0317064c950bdeedb0fef83e8832.zip |
Issue #1628 - Remove redundant PREF_EM_UPDATE_BACKGROUND_URL
Diffstat (limited to 'toolkit/mozapps/extensions/internal')
-rw-r--r-- | toolkit/mozapps/extensions/internal/XPIProvider.jsm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm index 58d412d9c..f7d53812a 100644 --- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm @@ -74,7 +74,6 @@ const PREF_DSS_SWITCHPENDING = "extensions.dss.switchPending"; const PREF_DSS_SKIN_TO_SELECT = "extensions.lastSelectedSkin"; const PREF_GENERAL_SKINS_SELECTEDSKIN = "general.skins.selectedSkin"; const PREF_EM_UPDATE_URL = "extensions.update.url"; -const PREF_EM_UPDATE_BACKGROUND_URL = "extensions.update.background.url"; const PREF_EM_ENABLED_ADDONS = "extensions.enabledAddons"; const PREF_EM_EXTENSION_FORMAT = "extensions."; const PREF_EM_ENABLED_SCOPES = "extensions.enabledScopes"; @@ -6179,12 +6178,7 @@ function UpdateChecker(aAddon, aListener, aReason, aAppVersion, aPlatformVersion let updateURL = aAddon.updateURL; if (!updateURL) { - if (aReason == AddonManager.UPDATE_WHEN_PERIODIC_UPDATE && - Services.prefs.getPrefType(PREF_EM_UPDATE_BACKGROUND_URL) == Services.prefs.PREF_STRING) { - updateURL = Services.prefs.getCharPref(PREF_EM_UPDATE_BACKGROUND_URL); - } else { - updateURL = Services.prefs.getCharPref(PREF_EM_UPDATE_URL); - } + updateURL = Services.prefs.getCharPref(PREF_EM_UPDATE_URL); } const UPDATE_TYPE_COMPATIBILITY = 32; |