Bug 689328: Ensure that lengthComputable is always the same for a given series of progress events by claiming that it is false even if all the data has been received. r=sicking

This commit is contained in:
Kyle Huey 2012-08-06 13:56:28 -07:00
parent ac8acc0b03
commit 71f61d7dfb

View File

@ -3699,7 +3699,6 @@ nsXMLHttpRequest::MaybeDispatchProgressEvents(bool aFinalProgress)
if (aFinalProgress) {
mUploadTotal = mUploadTransferred;
mUploadProgressMax = mUploadProgress;
mUploadLengthComputable = true;
}
if (mUpload && !mUploadComplete) {
DispatchProgressEvent(mUpload, NS_LITERAL_STRING(PROGRESS_STR),
@ -3710,7 +3709,6 @@ nsXMLHttpRequest::MaybeDispatchProgressEvents(bool aFinalProgress)
} else {
if (aFinalProgress) {
mLoadTotal = mLoadTransferred;
mLoadLengthComputable = true;
}
mInLoadProgressEvent = true;
DispatchProgressEvent(this, NS_LITERAL_STRING(PROGRESS_STR),