Bug #43652 --> fix running of JS urls by returning the error status of the

underlying file transport if the input stream channel doesn't have an error
of it's own.
r=warren
This commit is contained in:
mscott%netscape.com 2000-07-07 21:42:15 +00:00
parent 09909de642
commit 51f87a2831

View File

@ -194,6 +194,12 @@ NS_IMETHODIMP
nsStreamIOChannel::GetStatus(nsresult *status)
{
*status = mStatus;
// if we don't have a status error of our own to report
// then we should propogate the status error of the underlying
// file transport (if we have one)
if (NS_SUCCEEDED(mStatus) && mFileTransport)
mFileTransport->GetStatus(status);
return NS_OK;
}