Fix for Bug 84336, Checking in for Kai Engert

r=bbaetz, sr=mscot

Check return value from GetResponseStatus so that if a lower layer
failed we don't deliver a blank page.
This commit is contained in:
javi%netscape.com 2001-08-01 22:52:42 +00:00
parent 7878d7fd93
commit 710ca72921

View File

@ -205,7 +205,13 @@ NS_IMETHODIMP nsDocumentOpenInfo::OnStartRequest(nsIRequest *request, nsISupport
if (NS_SUCCEEDED(rv)) {
PRUint32 responseCode = 0;
httpChannel->GetResponseStatus(&responseCode);
rv = httpChannel->GetResponseStatus(&responseCode);
if (NS_FAILED(rv)) {
// behave as in the canceled case
return NS_OK;
}
if (204 == responseCode) {
return NS_OK;
}