Bug 498875. nsEmbedStream::OpenStream fails if content type includes charset. r=bzbarsky, sr=biesi

This commit is contained in:
Hector Chu 2009-06-22 14:17:20 -04:00
parent 7355e671a2
commit c4221b5e57

View File

@ -132,7 +132,10 @@ nsEmbedStream::OpenStream(nsIURI *aBaseURI, const nsACString& aContentType)
// find a document loader for this content type
const nsCString& flatContentType = PromiseFlatCString(aContentType);
nsCString flatContentType;
rv = mChannel->GetContentType(flatContentType);
if (NS_FAILED(rv))
return rv;
nsXPIDLCString docLoaderContractID;
nsCOMPtr<nsICategoryManager> catMan(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));