mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 625119: In icon-handling code, don't look up mimetype for empty file-extension. r=joe
This commit is contained in:
parent
d3a8b8a506
commit
1ce48feba8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user