Bug 1549391 - Do no show the notification for an expired build if the updater is not available. r=IanN

Port Bug 1011978 [fix use of updater service in nsBrowserGlue to check for MOZ_UPDATER].
This commit is contained in:
Frank-Rainer Grahl 2019-05-12 14:19:23 +02:00
Родитель 710c636fab
Коммит 6674517c6b
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm",
Integration: "resource://gre/modules/Integration.jsm",
PermissionUI: "resource:///modules/PermissionUI.jsm",
AppConstants: "resource://gre/modules/AppConstants.jsm",
});
XPCOMUtils.defineLazyGetter(this, "DebuggerServer", () => {
@ -867,6 +868,10 @@ SuiteGlue.prototype = {
* having updates off and an old build that likely should be updated.
*/
_shouldShowUpdateWarning: function () {
// If the Updater is not available we don't show the warning.
if (!AppConstants.MOZ_UPDATER) {
return false;
}
// Look for an unconditional override pref. If set, do what it says.
// (true --> never show, false --> always show)
try {