mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852540 - Store the file extension on the nsMIMEInfoUnix returned from nsGNOMERegistry::GetFromExtension. r=karlt
This commit is contained in:
parent
980d7af474
commit
d958db6681
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user