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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user