Bug 1508377 - properly update XHR status when one is aborted because of an NS_BINDING_ABORTED confition such as window.stop(); r=baku

properly update XHR status when one is aborted because of an NS_BINDING_ABORTED confition such as window.stop()

Differential Revision: https://phabricator.services.mozilla.com/D22852
This commit is contained in:
Thomas Wisniewski
2019-03-11 13:30:38 +00:00
parent 454929fcc0
commit 4b36f30dbd
2 changed files with 2 additions and 0 deletions

View File

@@ -2068,6 +2068,7 @@ XMLHttpRequestMainThread::OnStopRequest(nsIRequest* request,
mFlagParseBody = false;
IgnoredErrorResult rv;
RequestErrorSteps(ProgressEventType::abort, NS_OK, rv);
ChangeState(XMLHttpRequest_Binding::UNSENT, false);
return NS_OK;
}