Backed out changeset cf588a950083 (bug 1306235) for failures in at least test_xhr_progressevents.html and test_blobconstructor.html

MozReview-Commit-ID: HJlw9w1quhu
This commit is contained in:
Phil Ringnalda 2016-10-03 23:30:44 -07:00
parent eb4364e341
commit 6a7decdac1

View File

@ -1334,7 +1334,7 @@ XMLHttpRequestMainThread::DispatchProgressEvent(DOMEventTargetHelper* aTarget,
ProgressEventInit init;
init.mBubbles = false;
init.mCancelable = false;
init.mLengthComputable = aTotal != -1; // XHR spec step 6.1
init.mLengthComputable = aTotal != 0; // XHR spec step 6.1
init.mLoaded = aLoaded;
init.mTotal = (aTotal == -1) ? 0 : aTotal;