Bug 513392: Use styles on the normal icon rather than a separate hardcoded image for plugin icons (follow up fix). r=robstrong

This commit is contained in:
Dave Townsend 2009-09-10 09:10:30 +01:00
parent a67554858c
commit b50d7b8bee

View File

@ -7671,13 +7671,17 @@ ExtensionsDataSource.prototype = {
*/
_rdfGet_iconURL: function EMDS__rdfGet_iconURL(item, property) {
var id = stripPrefix(item.Value, PREFIX_ITEM_URI);
var type = this.getItemProperty(id, "type");
var installLocation = this._em.getInstallLocation(id);
if (!this.isDownloadItem(id) && !installLocation)
return null;
// Try to pick an icon from the item's install folder
iconURL = this._getImageURL(item, "icon.png");
if (iconURL)
return iconURL;
var type = this.getItemProperty(id, "type");
if (type == Ci.nsIUpdateItem.TYPE_THEME)
return gRDF.GetResource(URI_GENERIC_ICON_THEME);