mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 498875. nsEmbedStream::OpenStream fails if content type includes charset. r=bzbarsky, sr=biesi
This commit is contained in:
parent
a5497d4815
commit
d7c598848c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user