зеркало из https://github.com/mozilla/pjs.git
b=339599. nsISAXXMLReader expects a nsIChannel passed to onStartRequest, but interface takes an nsIRequest. r=mrbkap, sr=peterv
This commit is contained in:
Родитель
5f461b2af4
Коммит
675bac0ec8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче