Closed
Bug 140467
Opened 22 years ago
Closed 21 years ago
menu items "remove from list" "launch file" and "show in explorer" disabled in download manager when download completed / finished
Categories
(SeaMonkey :: Download & File Handling, defect)
SeaMonkey
Download & File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.4final
People
(Reporter: evilmrhenry, Assigned: iannbugzilla)
References
Details
(Whiteboard: [a=sspitzer, a=asa])
Attachments
(1 file, 6 obsolete files)
(deleted),
patch
|
neil
:
review+
jag+mozilla
:
superreview+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020417
BuildID: 2002041711
If a download is selected in the download manager at the time it finishes, the
right buttons are not enabled.
Reproducible: Always
Steps to Reproduce:
1. Start downloading a small file.
2. Select the file in the download manager.
3. Wait for it to download.
Actual Results: After the file completed downloading, the cancel button was
still enabled, as were the other buttons associated with files in the process of
downloading.
Expected Results: The download manager should act as if it had completed
downloading, enabling the correct buttons.
The work-around is to select another item, and then the first item again.
Comment 1•22 years ago
|
||
*** This bug has been marked as a duplicate of 135982 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•22 years ago
|
||
I do not think this is a dulplicate. 13598 is in the area of the actual download
window, while this bug is in the download manager.
In the download manager, after a file has been downloaded, it remains listed,
and a different set of buttons become active. (Except under the circumstances
listed in this bug.)
I repeat, this bug does not affect the regular download popup at all, just the
download manager. Please take another look at this bug.
Comment 3•22 years ago
|
||
Yes, sorry about that. I can see this, although just leaving the download
manager window resets the buttons. Also the files list themselves as
Finished 0% of 0% done.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Reporter | ||
Comment 4•22 years ago
|
||
That's OK.
It looks like Mozilla just needs to hit the function that checks which buttons
should be enabled after finishing a download that is selected in the download
manager. It should also be called when clicking on a button, so it should be
easy to find.
I see this in 2002060616 WXP. Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•22 years ago
|
||
*** Bug 156370 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
OS: Windows 98 → All
Hardware: PC → All
Comment 8•22 years ago
|
||
*** Bug 169438 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
QA Contact: sairuh → petersen
Assignee | ||
Comment 11•21 years ago
|
||
This fixes things by patching nsDownloadProgressListener.js - there may be a
tidier way using a patch to nsDownloadManager.cpp
Attachment #123624 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 12•21 years ago
|
||
*** Bug 171890 has been marked as a duplicate of this bug. ***
Comment 13•21 years ago
|
||
Comment on attachment 123624 [details] [diff] [review]
Patch v1.0
I think the right way to do this is to dispatch a select event on the tree (see
for example tebbox.xml and tabbrowser.xml)
Attachment #123624 -
Flags: review?(neil.parkwaycc.co.uk) → review-
Comment 14•21 years ago
|
||
Oops, I didn't have my glases on - I meant tabbox.xml 8-)
Comment 15•21 years ago
|
||
summary from dupe was better...
Summary: Finished downloads do not refresh right in the Download Manager → menu items "remove from list" "launch file" and "show in explorer" disabled in download manager when download completed / finished
Assignee | ||
Comment 16•21 years ago
|
||
I did try the equivalent of that.
The problem with dispatching a select event from within
nsDownloadProgresListener.js is that the flag that says whether the file is
still downloading or not (found using
gDownloadManager.getDownload(selectedItem.id)) hasn't been updated by the time
onStateChange is triggered. Thus the buttons are incorrectly updated.
As far as I can see there is no easy way of changing this flag prior to
onStateChange being triggered thus this 'fudge'.
Assignee | ||
Comment 17•21 years ago
|
||
This patches nsDownloadManager.cpp to move the test for
mCurrDownloads.Exists(&key) out of AssertProgressInfoFor so that call to
mCurrDownloads.Remove(&key) can be issued before entering
AssertProgressInfoFor. This means an onselect event can be dispatched
Assignee | ||
Comment 18•21 years ago
|
||
Having completely missed where the listener was being called (I only looked
back one step instead of two), this should be a better patch. The call to
nsIDownloadProgressListener's OnStateChange is now made after the call
DownloadEnded
Attachment #123678 -
Attachment is obsolete: true
Assignee | ||
Comment 19•21 years ago
|
||
Changed update to be done by dispatching onselect event and fixed
nsDownloadManager.cpp so that flags are updated before OnStateChange is
triggered in the nsDownloadProgressListener.js
Attachment #123624 -
Attachment is obsolete: true
Attachment #123682 -
Attachment is obsolete: true
Attachment #123697 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #123697 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 20•21 years ago
|
||
cvs diff rather than local diff of files
Attachment #123697 -
Attachment is obsolete: true
Comment 21•21 years ago
|
||
Comment on attachment 123784 [details] [diff] [review]
Patch v1.1a
I don't like the eleA parameter to btnUpdate - in fact I don't see the point of
doing all those checks either...
Attachment #123784 -
Flags: review-
Assignee | ||
Comment 22•21 years ago
|
||
Checks taken out and firing of trigger moved into OnStateChange from the
function now checks aren't done.
Attachment #123784 -
Attachment is obsolete: true
Attachment #123789 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 23•21 years ago
|
||
Comment on attachment 123789 [details] [diff] [review]
Patch v1.1c
>@@ -315,5 +321,3 @@
>
> return result;
> }
>-
>-
Except for this change, r=me
Attachment #123789 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Comment 24•21 years ago
|
||
Same as v1.1c except not removing the surplus line feeds
Attachment #123789 -
Attachment is obsolete: true
Attachment #123792 -
Flags: superreview?(jaggernaut)
Attachment #123792 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•21 years ago
|
Attachment #123792 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Comment 25•21 years ago
|
||
Comment on attachment 123792 [details] [diff] [review]
Patch v1.1d
sr=jag
Make sure this doesn't break code that might be expecting the old/bad
behaviour.
Attachment #123792 -
Flags: superreview?(jaggernaut) → superreview+
Assignee | ||
Comment 26•21 years ago
|
||
I've tested everything I can on Linux in download manager and it doesn't seem to
break anything. As far as I can see it's only download manager that uses this code.
Attachment #123792 -
Flags: approval1.4?
Assignee | ||
Comment 27•21 years ago
|
||
Seeking driver approval:
Patch has been compiled and tested on Linux with various different combinations
of number of downloads and which downloads and completed downloads are
highlighted and nothing appears to have broken by moving the call to the 2nd
listener to after the code that updates some variables. Only one of these
variables is used by the 2nd listener and was the one that was set to the
incorrect value for the listener to correctly refresh the menu items.
There is a very low risk that changing the order will cause a regression but
testing hasn't shown it.
Updated•21 years ago
|
Whiteboard: [a=sspitzer, let
Comment 28•21 years ago
|
||
Comment on attachment 123792 [details] [diff] [review]
Patch v1.1d
a=asa (on behalf of drivers) for checkin to 1.4
Attachment #123792 -
Flags: approval1.4? → approval1.4+
Updated•21 years ago
|
Whiteboard: [a=sspitzer, let → [a=sspitzer, let's wait for asa to second that]
Comment 29•21 years ago
|
||
ok, asa beat me to the punch.
a=asa,sspitzer
Whiteboard: [a=sspitzer, let's wait for asa to second that] → [a=sspitzer, a=asa]
Target Milestone: --- → mozilla1.4final
Comment 30•21 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago → 21 years ago
Resolution: --- → FIXED
Comment 31•21 years ago
|
||
*** Bug 206986 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 32•21 years ago
|
||
*** Bug 160752 has been marked as a duplicate of this bug. ***
Comment 33•21 years ago
|
||
Is this really fixed?
Even now I cannot remove items from the list in download manager.
I checked 2003052[5678]08 trunk source on my Linux box.
Assignee | ||
Comment 34•21 years ago
|
||
That would probably be bug 201697 which was checked in today
Comment 35•21 years ago
|
||
Marking verified since I can't reproduce on the latest trunk.
Status: RESOLVED → VERIFIED
Comment 36•21 years ago
|
||
I've reproduced this a couple of times with build
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529
Max
Comment 37•21 years ago
|
||
Hate to mention this, but I'm still getting problems under 1.5rc1. I'm not sure
whether this is exactly the same bug or something slightly different.
If I download one file, then this item will not remove from the download manager
("remove" is greyed out and "cancel" is enabled but does nothing.) If I download
more files, they will remove OK, but the top one on the list is stuck and I
cannot remove it at all.
Comment 38•21 years ago
|
||
Does Ctrl+Clicking the item help?
Comment 39•21 years ago
|
||
No, Ctrl+clicking does not make any difference. Incidentally, in trying that out
I've now got two files on the list stuck that I cannot remove.
Comment 40•21 years ago
|
||
Hmm, downloaded another file today and the two items that were "stuck" yesterday
removed perfectly OK today. Now I have no idea what is going on, except that
there's still something not quite right.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•