Open Bug 262446 Opened 20 years ago Updated 2 years ago

window.close() closes file-download dialogs.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jernberg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040911 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040911 Firefox/0.10

I'm not sure if this is the way it should handle, maybe it handles this way by
design but if you call window.close() in an popup while an "save file"-dialog is
open from that popup, it closes that "save file"-dialog too.

Reproducible: Always
Steps to Reproduce:
1. open popup 

2. in popup html have something like <body onBlur="window.close();"> and an link
to some downloadable file <a href="myfile.zip">biff</a>

3. click the link, the "save file"-dialog opens while blurring the popup, the
popup then closes itself and the "save file"-dialog



Expected Results:  
kept the "save file"-dialog open.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20041002
Firefox/0.10.1

Confirming

->New

I used onMouseUp to duplicate it and indeed what you described happened.
No filepicker, the window simply closed before you can download.
Status: UNCONFIRMED → NEW
Ever confirmed: true
is bug 368759 a dupe?
Assignee: bross2 → nobody
Working with the same situation. Where window is opening save-file dialog and it should be closed keeping save-file dialog open. But working with flaw as described above.

Bug 368759 seems to be on the same lines where closing of parent window or opener window causes problem in download. This bug is observed in Linux environment. Recent comment on this says Firefox 3.6.3 can take care of this particular issue.
 
So tested bug 262446 on FF 3.6.3 on windows environment but in vain. 
Kindly update if there is any work around for this issue.
Just to update this issue is not seen on Linux only with Windows.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.