Fix bug 424212, r+sr=sicking, a=beltzner

This commit is contained in:
bzbarsky@mit.edu 2008-03-21 22:09:41 -07:00
Родитель 284e074807
Коммит 786bfd8105
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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;
}
}