mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 498875. nsEmbedStream::OpenStream fails if content type includes charset. r=bzbarsky, sr=biesi
This commit is contained in:
parent
7355e671a2
commit
c4221b5e57
@ -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