mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
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:
parent
09909de642
commit
51f87a2831
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user