Bug 588072 - Progress bar appears under wrong add-on when installing from search list [r=mfinkle]

This commit is contained in:
Wesley Johnston 2010-08-24 01:19:49 -04:00
Родитель 5c816ecb81
Коммит f946d2fc9e
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -513,7 +513,7 @@ var ExtensionsView = {
listitem.setAttribute("description", addon.description);
listitem.setAttribute("homepageURL", addon.homepageURL);
listitem.install = addon.install;
listitem.setAttribute("sourceURL", addon.install.sourceURL);
listitem.setAttribute("sourceURL", addon.install.sourceURI.spec);
if (!aIsRecommended)
listitem.setAttribute("rating", addon.rating);
let item = this._list.appendChild(listitem);
@ -699,7 +699,7 @@ AddonInstallListener.prototype = {
if (!ExtensionsView.visible)
return;
let element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
let element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
if (!element)
return;
@ -721,7 +721,7 @@ AddonInstallListener.prototype = {
this._showAlert(false);
if (ExtensionsView.visible) {
let element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
let element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
if (!element)
return;
@ -751,7 +751,7 @@ AddonInstallListener.prototype = {
},
onDownloadProgress: function xpidm_onDownloadProgress(aInstall) {
var element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
var element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
if (!element)
return;