Bug 852540 - Store the file extension on the nsMIMEInfoUnix returned from nsGNOMERegistry::GetFromExtension. r=karlt

This commit is contained in:
Chris Coulson 2013-03-21 09:51:30 -04:00
parent 980d7af474
commit d958db6681

View File

@ -130,7 +130,12 @@ nsGNOMERegistry::GetFromExtension(const nsACString& aFileExt)
return nullptr;
}
return GetFromType(mimeType);
nsRefPtr<nsMIMEInfoBase> mi = GetFromType(mimeType);
if (mi) {
mi->AppendExtension(aFileExt);
}
return mi.forget();
}
/* static */ already_AddRefed<nsMIMEInfoBase>