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
Родитель bd0e80ed73
Коммит 685a0ad6d9
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -7671,13 +7671,17 @@ ExtensionsDataSource.prototype = {
*/ */
_rdfGet_iconURL: function EMDS__rdfGet_iconURL(item, property) { _rdfGet_iconURL: function EMDS__rdfGet_iconURL(item, property) {
var id = stripPrefix(item.Value, PREFIX_ITEM_URI); 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 // Try to pick an icon from the item's install folder
iconURL = this._getImageURL(item, "icon.png"); iconURL = this._getImageURL(item, "icon.png");
if (iconURL) if (iconURL)
return iconURL; return iconURL;
var type = this.getItemProperty(id, "type");
if (type == Ci.nsIUpdateItem.TYPE_THEME) if (type == Ci.nsIUpdateItem.TYPE_THEME)
return gRDF.GetResource(URI_GENERIC_ICON_THEME); return gRDF.GetResource(URI_GENERIC_ICON_THEME);