Bug 625119: In icon-handling code, don't look up mimetype for empty file-extension. r=joe

This commit is contained in:
Daniel Holbert 2011-03-29 08:47:53 -07:00
parent d3a8b8a506
commit 1ce48feba8

View File

@ -373,7 +373,9 @@ nsIconChannel::InitWithGnome(nsIMozIconURI *aIconURI)
if (ms) {
nsCAutoString fileExt;
aIconURI->GetFileExtension(fileExt);
ms->GetTypeFromExtension(fileExt, type);
if (!fileExt.IsEmpty()) {
ms->GetTypeFromExtension(fileExt, type);
}
}
}
// Get the icon theme