Bug 495098 - [@ nsXMLHttpRequest::StreamReaderFunc ], r+sr=sicking

--HG--
extra : rebase_source : 29d31152455cd9f6702f0788539f0b62bbcf3a98
This commit is contained in:
Olli Pettay 2009-06-15 13:11:04 +03:00
parent fc4121bd32
commit 2fac929f6b

View File

@ -1829,7 +1829,7 @@ nsXMLHttpRequest::StreamReaderFunc(nsIInputStream* in,
nsCOMPtr<nsIInputStream> copyStream;
rv = NS_NewByteInputStream(getter_AddRefs(copyStream), fromRawSegment, count);
if (NS_SUCCEEDED(rv)) {
if (NS_SUCCEEDED(rv) && xmlHttpRequest->mXMLParserStreamListener) {
NS_ASSERTION(copyStream, "NS_NewByteInputStream lied");
nsresult parsingResult = xmlHttpRequest->mXMLParserStreamListener
->OnDataAvailable(xmlHttpRequest->mReadRequest,