зеркало из https://github.com/mozilla/gecko-dev.git
Bug 588072 - Progress bar appears under wrong add-on when installing from search list [r=mfinkle]
This commit is contained in:
Родитель
5c816ecb81
Коммит
f946d2fc9e
|
@ -513,7 +513,7 @@ var ExtensionsView = {
|
||||||
listitem.setAttribute("description", addon.description);
|
listitem.setAttribute("description", addon.description);
|
||||||
listitem.setAttribute("homepageURL", addon.homepageURL);
|
listitem.setAttribute("homepageURL", addon.homepageURL);
|
||||||
listitem.install = addon.install;
|
listitem.install = addon.install;
|
||||||
listitem.setAttribute("sourceURL", addon.install.sourceURL);
|
listitem.setAttribute("sourceURL", addon.install.sourceURI.spec);
|
||||||
if (!aIsRecommended)
|
if (!aIsRecommended)
|
||||||
listitem.setAttribute("rating", addon.rating);
|
listitem.setAttribute("rating", addon.rating);
|
||||||
let item = this._list.appendChild(listitem);
|
let item = this._list.appendChild(listitem);
|
||||||
|
@ -699,7 +699,7 @@ AddonInstallListener.prototype = {
|
||||||
if (!ExtensionsView.visible)
|
if (!ExtensionsView.visible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
|
let element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
|
||||||
if (!element)
|
if (!element)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -721,7 +721,7 @@ AddonInstallListener.prototype = {
|
||||||
this._showAlert(false);
|
this._showAlert(false);
|
||||||
|
|
||||||
if (ExtensionsView.visible) {
|
if (ExtensionsView.visible) {
|
||||||
let element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
|
let element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
|
||||||
if (!element)
|
if (!element)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -751,7 +751,7 @@ AddonInstallListener.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
onDownloadProgress: function xpidm_onDownloadProgress(aInstall) {
|
onDownloadProgress: function xpidm_onDownloadProgress(aInstall) {
|
||||||
var element = ExtensionsView.getElementForAddon(aInstall.sourceURL);
|
var element = ExtensionsView.getElementForAddon(aInstall.sourceURI.spec);
|
||||||
if (!element)
|
if (!element)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче