b=339599. nsISAXXMLReader expects a nsIChannel passed to onStartRequest, but interface takes an nsIRequest. r=mrbkap, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@200259 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fd309fa894
commit
aaeae25f4d
@ -1758,11 +1758,11 @@ nsParser::OnStartRequest(nsIRequest *request, nsISupports* aContext)
|
||||
nsresult rv;
|
||||
nsCAutoString contentType;
|
||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
|
||||
NS_ASSERTION(channel, "parser needs a channel to find a dtd");
|
||||
|
||||
rv = channel->GetContentType(contentType);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mParserContext->SetMimeType(contentType);
|
||||
if (channel) {
|
||||
rv = channel->GetContentType(contentType);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mParserContext->SetMimeType(contentType);
|
||||
}
|
||||
}
|
||||
|
||||
rv = NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user