bug 134106 r=pavlov sr=tor a=asa
Uppercase (IMAGE) Content-Type causes Netscape to fail decoding an image attachment git-svn-id: svn://10.0.0.236/trunk@117871 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user