fix for bug #350636: the "never" hidden pref should only apply for major updates.

r=rstrong
This commit is contained in:
sspitzer%mozilla.org 2006-09-03 04:18:28 +00:00
Родитель 62bb22f0ce
Коммит 2eac8260d9
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1362,9 +1362,13 @@ UpdateService.prototype = {
// but in selectUpdate(), minor updates trump major updates
// if major trumps minor, and we said "never" to the major
// we'd never see the minor update.
//
// note, the never decision should only apply to major updates
// see bug #350636 for a scenario where this could potentially
// be an issue
var neverPrefName = PREF_UPDATE_NEVER_BRANCH + update.version;
var never = getPref("getBoolPref", neverPrefName, false);
if (never)
if (never && update.type == "major")
return;
if (this._shouldPrompt(update))