зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 424212, r+sr=sicking, a=beltzner
This commit is contained in:
Родитель
284e074807
Коммит
786bfd8105
|
@ -1079,12 +1079,11 @@ nsXMLHttpRequest::GetStatus(PRUint32 *aStatus)
|
|||
if (rv == NS_ERROR_NOT_AVAILABLE) {
|
||||
// Someone's calling this before we got a response... Check our
|
||||
// ReadyState. If we're at 3 or 4, then this means the connection
|
||||
// errored before we got any data; return a somewhat sensible error code
|
||||
// in that case.
|
||||
// errored before we got any data; return 0 in that case.
|
||||
PRInt32 readyState;
|
||||
GetReadyState(&readyState);
|
||||
if (readyState >= 3) {
|
||||
*aStatus = NS_ERROR_NOT_AVAILABLE;
|
||||
*aStatus = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче