mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset bc9014b4439a (bug 929067) for test failures in B2g Desktop Linux & B2G ICS Emulator Opt
This commit is contained in:
parent
2732f37b3a
commit
f029eb2c91
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user