зеркало из https://github.com/mozilla/pjs.git
bug 134106 r=pavlov sr=tor a=asa
Uppercase (IMAGE) Content-Type causes Netscape to fail decoding an image attachment
This commit is contained in:
Родитель
02e2db219e
Коммит
aba0b994f6
|
@ -531,8 +531,9 @@ NS_IMETHODIMP imgLoader::SupportImageWithMimeType(const char* aMimeType, PRBool
|
|||
nsresult rv = NS_GetComponentRegistrar(getter_AddRefs(reg));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
nsCAutoString decoderId(NS_LITERAL_CSTRING("@mozilla.org/image/decoder;2?type=") + nsDependentCString(aMimeType));
|
||||
nsCAutoString mimeType(aMimeType);
|
||||
ToLowerCase(mimeType);
|
||||
nsCAutoString decoderId(NS_LITERAL_CSTRING("@mozilla.org/image/decoder;2?type=") + mimeType);
|
||||
return reg->IsContractIDRegistered(decoderId.get(), _retval);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче