Bug 618760 - Multiple add-on entries in list view when downloading an update. r=dtownsend, a=blocking-final

This commit is contained in:
Blair McBride 2011-01-12 14:05:55 +13:00
Родитель 6811b0f49c
Коммит e69e9815e7
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -2129,6 +2129,9 @@ var gListView = {
if (aObj.type != this._type)
return;
if (aIsInstall && aObj.existingAddon)
return;
let prop = aIsInstall ? "mInstall" : "mAddon";
for (let i = 0; i < this._listBox.itemCount; i++) {
let item = this._listBox.childNodes[i];

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

@ -62,6 +62,9 @@ function installUpgrade(aCallback) {
is(get_list_item_count(), 1, "Should be only one item in the list");
aInstall.addListener({
onDownloadEnded: function() {
is(get_list_item_count(), 1, "Should be only one item in the list once the update has started");
},
onInstallEnded: function() {
executeSoon(aCallback);
}