Closed
Bug 394546
Opened 17 years ago
Closed 17 years ago
Paused retried downloads keep updating status
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: Mardak, Assigned: Mardak)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
When pausing a download that I first canceled then retried, it'll display the "Paused -- X of X MB" momentarily and then continue updating with the usual progress status "X of X MB" several times.
On my slower iBook, it can update 4-5 times meaning 2-3 seconds. On my windows box, it's less likely to switch away from the "Paused --" status, but if I hit pause at the right time, it'll update the status one time.
Closing the download manager and reopening it and resume/pause doesn't make the problem go away.
(At first I was thinking it might be related somehow to RetryDownload -> GetDownloadFromDB -> new nsDownload().. with the UI still mysteriously getting updates from a previous nsDownload.. ??)
Updated•17 years ago
|
Flags: in-litmus?
Assignee | ||
Comment 1•17 years ago
|
||
Seems like strange stuff happens if we try to reuse the same item..
Assignee | ||
Comment 2•17 years ago
|
||
spam! nit: { on newline... :(
Attachment #279551 -
Attachment is obsolete: true
Attachment #279552 -
Flags: review?(comrade693+bmo)
Attachment #279551 -
Flags: review?(comrade693+bmo)
Comment 3•17 years ago
|
||
http://litmus.mozilla.org/show_test.cgi?id=4630
in-litmus+ (I hope I captured the major issue.)
Flags: in-litmus? → in-litmus+
Comment 4•17 years ago
|
||
Comment on attachment 279552 [details] [diff] [review]
v1.1
So, I guess I don't fully understand why you remove the download before adding it. Care to explain (like what strange stuff)?
Assignee | ||
Comment 5•17 years ago
|
||
Strange stuff == this bug ;) I'm not sure exactly what's the path that gets taken that eventually leads to these display issues, but removing the download richlist item and making a new one when restarting gives us a clean slate instead of needying to tidy up the was-completed download to be an active download again.
Comment 6•17 years ago
|
||
Comment on attachment 279552 [details] [diff] [review]
v1.1
>+function removeFromView(aDownload)
nit: this function should now go under the "Utility functions" section at the end of the file
>+function retryDownload(aDownload)
>+{
>+ removeFromView(aDownload);
>+ gDownloadManager.retryDownload(aDownload.getAttribute("dlid"));
> }
>
> function showDownload(aDownload)
>@@ -570,11 +581,6 @@ function showDownloadInfo(aDownload)
>
> var button = document.getAnonymousElementByAttribute(aDownload, "anonid", "info");
> gDownloadInfoPopup.openPopup(button, "after_end", 0, 0, false, false);
>-}
>-
>-function retryDownload(aDownload)
>-{
>- gDownloadManager.retryDownload(aDownload.getAttribute("dlid"));
> }
Any reason why you moved this?
Updated•17 years ago
|
Target Milestone: --- → Firefox 3 M9
Assignee | ||
Comment 7•17 years ago
|
||
(In reply to comment #6)
> (From update of attachment 279552 [details] [diff] [review])
> >+function removeFromView(aDownload)
> nit: this function should now go under the "Utility functions" section at the
> end of the file
Btw.. there's a utility functions section at the top as well.... top or bottom? Or merge to bottom...
> >-function retryDownload(aDownload)
> >-{
> >- gDownloadManager.retryDownload(aDownload.getAttribute("dlid"));
> > }
> Any reason why you moved this?
It didn't seem to belong down there. ;) All the other *Download ui actions seemed to be around there.
cancelDownload
pauseDownload
** resumeDownload
showDownload
...
openReferrer
showDownloadInfo
** retryDownload
onUpdateProgress
Target Milestone: Firefox 3 M9 → ---
Comment 8•17 years ago
|
||
(In reply to comment #7)
> Btw.. there's a utility functions section at the top as well.... top or bottom?
> Or merge to bottom...
put in the bottom...
we'll ignore the top ones for now.
> It didn't seem to belong down there. ;) All the other *Download ui actions
> seemed to be around there.
>
> cancelDownload
> pauseDownload
> ** resumeDownload
> showDownload
> ...
> openReferrer
> showDownloadInfo
> ** retryDownload
> onUpdateProgress
fine by me then
Target Milestone: --- → Firefox 3 M9
Updated•17 years ago
|
Attachment #279552 -
Flags: review?(comrade693+bmo)
Assignee | ||
Comment 9•17 years ago
|
||
Moved the utility function to where it belongs.
Attachment #279552 -
Attachment is obsolete: true
Attachment #280440 -
Flags: review?(comrade693+bmo)
Comment 10•17 years ago
|
||
Comment on attachment 280440 [details] [diff] [review]
v1.2
r=sdwilsh
Attachment #280440 -
Flags: review?(comrade693+bmo) → review+
Updated•17 years ago
|
Attachment #280440 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #280440 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 11•17 years ago
|
||
Fix a couple lines of bitrot, but mercurial pushed it on fine with its default settings.
$ hg qpush
applying remove.onretry.patch
patching file toolkit/mozapps/downloads/content/downloads.js
Hunk #3 succeeded at 664 with fuzz 2 (offset -222 lines).
Now at: remove.onretry.patch
Attachment #280440 -
Attachment is obsolete: true
Comment 12•17 years ago
|
||
Checking in toolkit/mozapps/downloads/content/downloads.js;
/cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js
new revision: 1.89; previous revision: 1.88
done
I ran http://litmus.mozilla.org/show_test.cgi?id=4630 with Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007092705 Minefield/3.0a9pre and it's all good.
Verified FIXED
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•