Bug 1334479 Show generic icon for legacy add-ons in post-install notification r=mossop

MozReview-Commit-ID: 9JsXPkqx909

--HG--
extra : rebase_source : 062eff8ca9f725e7e14890ae6957f5a76283e5b8
This commit is contained in:
Andrew Swan 2017-02-09 15:20:02 -08:00
parent 4d3c216f7e
commit 4c4b9579cd

View File

@ -360,10 +360,13 @@ this.ExtensionsUI = {
callback: resolve,
};
let icon = addon.isWebExtension ?
addon.iconURL || DEFAULT_EXTENSION_ICON :
"chrome://browser/skin/addons/addon-install-installed.svg";
let options = {
hideClose: true,
timeout: Date.now() + 30000,
popupIconURL: addon.iconURL || DEFAULT_EXTENSION_ICON,
popupIconURL: icon,
eventCallback(topic) {
if (topic == "showing") {
let doc = this.browser.ownerDocument;