Backed out changeset bc9014b4439a (bug 929067) for test failures in B2g Desktop Linux & B2G ICS Emulator Opt

This commit is contained in:
Carsten "Tomcat" Book 2013-12-03 12:53:08 +01:00
parent a21f133e8f
commit 3a8349defa

View File

@ -363,22 +363,19 @@ this.Download.prototype = {
// This function propagates progress from the DownloadSaver object, unless
// it comes in late from a download attempt that was replaced by a new one.
// If the cancellation process for the download has started, then the update
// is ignored.
function DS_setProgressBytes(aCurrentBytes, aTotalBytes, aHasPartialData)
{
if (this._currentAttempt == currentAttempt) {
if (this._currentAttempt == currentAttempt || !this._currentAttempt) {
this._setBytes(aCurrentBytes, aTotalBytes, aHasPartialData);
}
}
// This function propagates download properties from the DownloadSaver
// object, unless it comes in late from a download attempt that was
// replaced by a new one. If the cancellation process for the download has
// started, then the update is ignored.
// replaced by a new one.
function DS_setProperties(aOptions)
{
if (this._currentAttempt != currentAttempt) {
if (this._currentAttempt && this._currentAttempt != currentAttempt) {
return;
}