302062 comprehensive log of updates - normalizes the names used by the client for the |type| field on the update object to use the same values sent by AUS in the response xml, makes the update object correctly serialize the buildID property, and makes sure the right Update object is added to the Update Manager so that multiple entries can show up. r=darin, a=asa

This commit is contained in:
ben%bengoodger.com 2005-09-26 22:15:32 +00:00
parent c8f0aa615c
commit e818f83e0d
3 changed files with 9 additions and 8 deletions

View File

@ -1,9 +1,9 @@
updateName=%S %S
updateFullName=%S (%S)
updateType_normal=New Version
updateType_security=Security Update
introType_security=An important Security Update for %S is available:
introType_normal=A new version of %S is available:
updateType_major=New Version
updateType_minor=Security Update
introType_minor=An important Security Update for %S is available:
introType_major=A new version of %S is available:
verificationError=%S could not confirm the integrity of the update package.
errorsPageHeader=Update Failed
IAgreeLabel=I Agree

View File

@ -576,7 +576,7 @@ var gUpdatesAvailablePage = {
[gUpdates.brandName, gUpdates.update.version]);
var updateNameElement = document.getElementById("updateName");
updateNameElement.value = updateName;
var severity = gUpdates.update.isSecurityUpdate ? "security" : "normal";
var severity = gUpdates.update.isSecurityUpdate ? "minor" : "major";
var displayType = gUpdates.strings.getString("updateType_" + severity);
var updateTypeElement = document.getElementById("updateType");
updateTypeElement.setAttribute("severity", severity);

View File

@ -696,6 +696,7 @@ Update.prototype = {
update.setAttribute("serviceURL", this.serviceURL);
update.setAttribute("installDate", this.installDate);
update.setAttribute("statusText", this.statusText);
update.setAttribute("buildID", this.buildID);
update.setAttribute("isCompleteUpdate", this.isCompleteUpdate);
updates.documentElement.appendChild(update);
@ -1361,7 +1362,7 @@ UpdateManager.prototype = {
return this._activeUpdate;
},
set activeUpdate(activeUpdate) {
this._addUpdate(this._activeUpdate);
this._addUpdate(activeUpdate);
this._activeUpdate = activeUpdate;
if (!activeUpdate) {
// If |activeUpdate| is null, we have updated both lists - the active list
@ -1395,8 +1396,8 @@ UpdateManager.prototype = {
}
}
// Otherwise add it to the front of the list.
if (this._activeUpdate)
this._updates = [this._activeUpdate].concat(this._updates);
if (update)
this._updates = [update].concat(this._updates);
},
/**