Return NS_BINDING_FAILED if nw stream was created...

git-svn-id: svn://10.0.0.236/trunk@15128 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-11-22 09:28:44 +00:00
parent 7182d2a5d0
commit e020eaf4ef
2 changed files with 4 additions and 6 deletions

View File

@@ -1413,8 +1413,6 @@ NS_METHOD nsDocumentBindInfo::OnStartBinding(nsIURL* aURL, const char *aContentT
* Pass the OnStartBinding(...) notification out to the document
* IStreamListener.
*/
NS_ASSERTION((nsnull != m_NextStream), "No stream was created!");
if (nsnull != m_NextStream) {
rv = m_NextStream->OnStartBinding(aURL, aContentType);
}
@@ -1447,7 +1445,6 @@ NS_METHOD nsDocumentBindInfo::OnDataAvailable(nsIURL* aURL,
goto done;
}
NS_PRECONDITION(nsnull !=m_NextStream, "DocLoader: No stream for document");
if (nsnull != m_NextStream) {
/*
* Bump the refcount in case the stream gets destroyed while the data
@@ -1462,6 +1459,8 @@ NS_METHOD nsDocumentBindInfo::OnDataAvailable(nsIURL* aURL,
NS_ADDREF(listener);
rv = listener->OnDataAvailable(aURL, aStream, aLength);
NS_RELEASE(listener);
} else {
rv = NS_BINDING_FAILED;
}
done: