Closed
Bug 393821
Opened 17 years ago
Closed 17 years ago
Quick downloads (cached, local, data:, failed) don't appear until you reopen Download Manager
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: stephend, Assigned: Mardak)
References
Details
(Keywords: regression, relnote)
Attachments
(2 files, 3 obsolete files)
107.06 KB,
image/png
|
Details | |
4.99 KB,
patch
|
Details | Diff | Splinter Review |
Build ID: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a8pre) Gecko/2007082618 Minefield/3.0a8pre, and I saw this on Fedora Core 7, as well.
Noticed this while testing the fix for bug 393556.
Summary: "Failed" downloads don't appear until you reopen Download Manager.
Steps to Reproduce:
1. Right-click on the following: http://www.domain.fake/not_existent_document.pdf
2. Wait for the download to fail; acknowledge the warning
3. Look at the Download Manager.
Actual Results:
The failed file's entry isn't populated until you close and reopen the DM window; oddly enough, successive files (if you repeat the steps) seem to populate their entries correctly. The "Active" section
appears, but with no entries.
Expected Results:
The failed downloads named "not_existent_document.pdf" should immediately appear after confirming the failure-alert dialog in the "Completed" section as "Failed" status.
Assignee | ||
Comment 1•17 years ago
|
||
Strange.. I can't reproduce this in a debug build with disable-optimize.
Is there any issue of js not handling events quick enough? I.e., the QUEUED DownloadState event change is sent up to the listener and the FAILED event follows right after it. So both events are waiting to be processed by onDownloadStateChange and it grabs the failed first then queued?
Also, there's possibly some strangeness going on if the download manager isn't initially opened..
Reporter | ||
Comment 2•17 years ago
|
||
Comment 3•17 years ago
|
||
I can reproduce it for successful downloads as well. Steps to reproduce:
1. Find a relatively small file which is NOT in your cache.
2. Click on it (I haven't tried right-clicking with save-as).
3. When on open/save dialog, wait a bit. The file will download in background and you must wait until it finishes.
4. Finally, pick either save or open (doesn't matter which)
Expected results: DL manager will open and will show the file.
Actual results: it won't open. If it is open, it will not show the file.
Opening it later on shows the file.
Perhaps this helps.
Comment 4•17 years ago
|
||
ah crap, this could be a situation where the download finished in exthandler before we even know about it :/
Assignee | ||
Comment 5•17 years ago
|
||
It's not going through exthandler. I'm alt-clicking the link to download which does saveURI -> wbp.
Assignee | ||
Comment 6•17 years ago
|
||
(In reply to comment #4)
> ah crap, this could be a situation where the download finished in exthandler
> before we even know about it :/
Filed bug 394536.
Assignee | ||
Comment 7•17 years ago
|
||
I wasn't writing this patch in particular for this bug.. but it seems like it's fixed with the tryserver build. (I couldn't test it with my debug builds as mentioned before.)
https://build.mozilla.org/tryserver-builds/77-elee@mozilla.com-firefox-try-mac.dmg
https://build.mozilla.org/tryserver-builds/78-elee@mozilla.com-firefox-try-linux.tar.bz2
It also has patches for bug 385734, bug 394548, bug 394263, bug 394615, bug
394516, bug 394798, bug 223895, bug 393821
So it might have been one of those changes as well.. but code-wise, it seems like the patch works for this bug. Additionally I don't see bug 394536 with the trybuild either.
Patch notes: We should be correctly createDownloadItem-ing now... so no "d'oh" situations, and therefore remove that code from DPL.js
Comment 8•17 years ago
|
||
hmm, I need to think about this a bit
Assignee | ||
Comment 9•17 years ago
|
||
Comment on attachment 279539 [details] [diff] [review]
v1
Not quite so it seems. The createDownloads are needed if the dlmgr is already open. We can continue to remove the check here but we'll need to have something tell dlmgr to refresh its list when a download starts.
Attachment #279539 -
Flags: review?(comrade693+bmo) → review-
Assignee | ||
Comment 10•17 years ago
|
||
Call buildActiveList instead of calling its own createDownloadItem. This unifies the item creation, so debugging future issues is easier with just a single code path to think about. Also, put state in a variable to avoid multiple XPC overheads..
Apply some magic and trust everything is working as expected so that we'll never not have a downloadItem from DownloadProgressListener! (other than initial state to queued)
Attachment #279539 -
Attachment is obsolete: true
Attachment #279553 -
Flags: review?(comrade693+bmo)
Assignee | ||
Comment 11•17 years ago
|
||
Needs bug 394546's patch, otherwise there'll be a ghost item when retrying a download.
Depends on: 394546
Assignee | ||
Comment 13•17 years ago
|
||
Bug 394615 lets these failed downloads actually STOP and trigger the completed.
Depends on: 394615
Assignee | ||
Comment 14•17 years ago
|
||
For all things blocked by this bug, you can try a buildbot build that should have the problems fixed.
mac: https://build.mozilla.org/tryserver-builds/79-elee@mozilla.com-firefox-try-mac.dmg
linux: https://build.mozilla.org/tryserver-builds/80-elee@mozilla.com-firefox-try-linux.tar.bz2
sorry no windows..
Assignee | ||
Comment 15•17 years ago
|
||
Yayy, windows build bot is back alive. :)
win: https://build.mozilla.org/tryserver-builds/80-elee@mozilla.com-firefox-try-win32.installer.exe
mac: https://build.mozilla.org/tryserver-builds/80-elee@mozilla.com-firefox-try-mac.dmg
lin: https://build.mozilla.org/tryserver-builds/81-elee@mozilla.com-firefox-try-linux.tar.bz2
I've tested the blocked bugs on mac and windows, and things seem to be working again. You can try one of these builds to see if it fixes your bug or wait for this bug to land for nightlies.
Keywords: regression
Summary: "Failed" downloads don't appear until you reopen Download Manager. → Quick downloads (cached, local, data:, failed) don't appear until you reopen Download Manager
Comment 16•17 years ago
|
||
Comment on attachment 279553 [details] [diff] [review]
v2
r=sdwilsh
Attachment #279553 -
Flags: review?(comrade693+bmo) → review+
Updated•17 years ago
|
Target Milestone: --- → Firefox 3 M9
Assignee | ||
Comment 17•17 years ago
|
||
unbitrot spacing changes from bug 394263
Attachment #279553 -
Attachment is obsolete: true
Comment 18•17 years ago
|
||
Comment on attachment 280441 [details] [diff] [review]
v2.1
r=sdwilsh
Attachment #280441 -
Flags: review+
Attachment #280441 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #280441 -
Flags: approval1.9? → approval1.9+
Comment 19•17 years ago
|
||
Mardak, are you going to check this in?
Comment 20•17 years ago
|
||
This bug isn't ready for checkin because it still has an unresolved dependency.
Assignee | ||
Comment 21•17 years ago
|
||
Checking in toolkit/mozapps/downloads/content/DownloadProgressListener.js;
/cvsroot/mozilla/toolkit/mozapps/downloads/content/DownloadProgressListener.js,v <-- DownloadProgressListener.js
new revision: 1.27; previous revision: 1.26
done
Checking in toolkit/mozapps/downloads/content/downloads.js;
/cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js
new revision: 1.92; previous revision: 1.91
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 22•17 years ago
|
||
Attachment #280441 -
Attachment is obsolete: true
Reporter | ||
Comment 23•17 years ago
|
||
Verified FIXED using
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007100120 Minefield/3.0a9pre
Haven't seen this happen for cached, local, data:, or failed (testcase in comment 0) testcases.
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•17 years ago
|
Flags: in-litmus?
Reporter | ||
Comment 24•17 years ago
|
||
Flags: in-litmus? → in-litmus+
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•