зеркало из https://github.com/mozilla/pjs.git
Bug 395539 - FTP TransportStatus's progressMax reports the full file size for REST retrieval (resuming partial download). Patch by Edward Lee <edilee@gmail.com>. r=cbiesinger, sr=cbiesinger, a=bzbarsky
This commit is contained in:
Родитель
fff66d7e78
Коммит
085cf80611
|
@ -1907,8 +1907,10 @@ nsFtpState::OnTransportStatus(nsITransport *transport, nsresult status,
|
|||
}
|
||||
|
||||
// Ignore the progressMax value from the socket. We know the true size of
|
||||
// the file based on the response from our SIZE request.
|
||||
mChannel->OnTransportStatus(nsnull, status, progress, mFileSize);
|
||||
// the file based on the response from our SIZE request. Additionally, only
|
||||
// report the max progress based on where we started/resumed.
|
||||
mChannel->OnTransportStatus(nsnull, status, progress,
|
||||
mFileSize - mChannel->StartPos());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче