mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 1308341 - Don't fire the progress event if the length is 0, r=baku
This commit is contained in:
parent
ecb80a7ac8
commit
71456ae11e
@ -3537,6 +3537,11 @@ XMLHttpRequestMainThread::Notify(nsITimer* aTimer)
|
||||
void
|
||||
XMLHttpRequestMainThread::HandleProgressTimerCallback()
|
||||
{
|
||||
// Don't fire the progress event if mLoadTotal is 0, see XHR spec step 6.1
|
||||
if (!mLoadTotal && mLoadTransferred) {
|
||||
return;
|
||||
}
|
||||
|
||||
mProgressTimerIsActive = false;
|
||||
|
||||
if (!mProgressSinceLastProgressEvent || mErrorLoad) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user