Closed Bug 224918 Opened 21 years ago Closed 21 years ago

closing download window doesn`t stop download

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: karpieszuk, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.6a) Gecko/20031105 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.6a) Gecko/20031105 At some site i clicked link to .rm file. My Mozilla always open for this Real Player, so after pressing the button I have seen download windows (not download menager, but simply progress window). After downloading i real player should start and i should see movie. I didn`t want to wait (file was to large) and i closed window, but not by clicking on Cancel button - i press [x] icon on the top right corner of window. After few minutes real player started and played movie. I think when i press [x] Mozilla should stop download file Reproducible: Always Steps to Reproduce:
This behavior was deliberately introduced in bug 143072. Unfortunately, it seems that the nsDownloadManager::OpenProgressDialogFor is used both for the normal progress dialog and the DM "properties" window. The two should have different behavior. See http://lxr.mozilla.org/seamonkey/source/xpfe/components/download-manager/src/nsDownloadProxy.h#87 and http://lxr.mozilla.org/seamonkey/source/xpfe/components/download-manager/resources/downloadmanager.js#209 I think we should pass a boolean to that function indicating the desired behavior...
Or we could cheat and use SetCancelDownloadOnClose(!aParent); ;-)
bz: I thought we had a boolean somewhere to really have that mentioned different behaviour
biesi, we have a boolean in the progress dialog itself. This is the code that sets that boolean... Neil, that may be a thought, yes... if it were very clearly documented somewhere that we do that.
ah. yeah, now that I follow your links, I see that :) I kinda prefer passing the value for CancelDownloadOnClose to this function, rather than doing stuff with aParent...
Attachment #134936 - Flags: superreview?(bz-vacation)
Attachment #134936 - Flags: review?(cbiesinger)
Comment on attachment 134936 [details] [diff] [review] Proposed patch Looks good.
Attachment #134936 - Flags: superreview?(bz-vacation) → superreview+
Attachment #134936 - Flags: review?(cbiesinger) → review+
Fix checked in.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: