зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1011978 - fix use of updater service in nsBrowserGlue to check for MOZ_UPDATER,r=jaws
--HG-- extra : commitid : 8QZoPQSBZLl extra : rebase_source : 58c8b4b2834c91598b1f0fd4164de4dd743c8170 extra : amend_source : 56e76aa515a7be89d06ad4f1b8061ebc772a3ed1
This commit is contained in:
Родитель
1abb8044b1
Коммит
b6fbc5df6b
|
@ -172,6 +172,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "LightweightThemeManager",
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "ExtensionManagement",
|
||||
"resource://gre/modules/ExtensionManagement.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||
"resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
const PREF_PLUGINS_NOTIFYUSER = "plugins.update.notifyUser";
|
||||
const PREF_PLUGINS_UPDATEURL = "plugins.update.url";
|
||||
|
||||
|
@ -821,7 +824,8 @@ BrowserGlue.prototype = {
|
|||
|
||||
_checkForOldBuildUpdates: function () {
|
||||
// check for update if our build is old
|
||||
if (Services.prefs.getBoolPref("app.update.enabled") &&
|
||||
if (AppConstants.MOZ_UPDATER &&
|
||||
Services.prefs.getBoolPref("app.update.enabled") &&
|
||||
Services.prefs.getBoolPref("app.update.checkInstallTime")) {
|
||||
|
||||
let buildID = Services.appinfo.appBuildID;
|
||||
|
|
Загрузка…
Ссылка в новой задаче