зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 8fc4cf38057e (bug 1011748) for mochitest-e10s-1 test failures
This commit is contained in:
Родитель
74de5e696d
Коммит
f2239c4b7e
|
@ -1169,17 +1169,7 @@ nsXMLHttpRequest::GetStatusText(nsCString& aStatusText)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
// Check the current XHR state to see if it is valid to obtain the statusText
|
||||
// value. This check is to prevent the status text for redirects from being
|
||||
// available before all the redirects have been followed and HTTP headers have
|
||||
// been received.
|
||||
uint16_t readyState;
|
||||
GetReadyState(&readyState);
|
||||
if (readyState != OPENED && readyState != UNSENT) {
|
||||
httpChannel->GetResponseStatusText(aStatusText);
|
||||
}
|
||||
|
||||
httpChannel->GetResponseStatusText(aStatusText);
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче