From 4c4b9579cd1a6b3afc883ee8f819989b854f209f Mon Sep 17 00:00:00 2001 From: Andrew Swan Date: Thu, 9 Feb 2017 15:20:02 -0800 Subject: [PATCH] Bug 1334479 Show generic icon for legacy add-ons in post-install notification r=mossop MozReview-Commit-ID: 9JsXPkqx909 --HG-- extra : rebase_source : 062eff8ca9f725e7e14890ae6957f5a76283e5b8 --- browser/modules/ExtensionsUI.jsm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/modules/ExtensionsUI.jsm b/browser/modules/ExtensionsUI.jsm index e1482658198c..366e75b6e2ee 100644 --- a/browser/modules/ExtensionsUI.jsm +++ b/browser/modules/ExtensionsUI.jsm @@ -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;