mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703380 - XMLHttpRequest can fire an abort event after a load event, but should not; r=smaug
--HG-- extra : rebase_source : 07e72b23cfad23e0ea1e860fa48b1f6ed0587412
This commit is contained in:
parent
d59a4c548f
commit
7f072394e6
@ -1214,16 +1214,16 @@ nsXMLHttpRequest::Abort()
|
||||
XML_HTTP_REQUEST_OPENED |
|
||||
XML_HTTP_REQUEST_DONE))) {
|
||||
ChangeState(XML_HTTP_REQUEST_DONE, true);
|
||||
}
|
||||
|
||||
if (!(mState & XML_HTTP_REQUEST_SYNCLOOPING)) {
|
||||
NS_NAMED_LITERAL_STRING(abortStr, ABORT_STR);
|
||||
DispatchProgressEvent(this, abortStr, mLoadLengthComputable, responseLength,
|
||||
mLoadTotal);
|
||||
if (mUpload && !mUploadComplete) {
|
||||
mUploadComplete = true;
|
||||
DispatchProgressEvent(mUpload, abortStr, true, mUploadTransferred,
|
||||
mUploadTotal);
|
||||
if (!(mState & XML_HTTP_REQUEST_SYNCLOOPING)) {
|
||||
NS_NAMED_LITERAL_STRING(abortStr, ABORT_STR);
|
||||
DispatchProgressEvent(this, abortStr, mLoadLengthComputable, responseLength,
|
||||
mLoadTotal);
|
||||
if (mUpload && !mUploadComplete) {
|
||||
mUploadComplete = true;
|
||||
DispatchProgressEvent(mUpload, abortStr, true, mUploadTransferred,
|
||||
mUploadTotal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user