Closed Bug 251140 Opened 20 years ago Closed 20 years ago

If clicking a link to a file download opens a new window/tab, we should close that new window upon starting the download

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 241972

People

(Reporter: ali, Assigned: bugs)

Details

If clicking a link to a file download opens a new window/tab, we should close
that new window/tab upon starting the download, assuming that the new window/tab
has no actual content.

There are three cases (detailed here, but there are probably more) where this
occurs:

a) Left-clicking a link to a file where the target=_blank .
b) [Middle|Ctrl]-clicking a link to a file (new tab opens in addition to file
download).
c) Shift-clicking a link to a file (new window opens in addition to file download).

In all these cases, Firefox should detect that the window/tab has no content,
and close it upon starting the download. We should obviously not do this if the
spawned window has content which is *sometimes* the case.

This bug exhibits itself particularly on webmail sites (based on user reports).
IE seems to handle this well (in many, but not all cases), and closes the
spurious content-less window.

Seamonkey has a similar bug filed on this, bug 102380. But I think that we've
probably forked enough code on our end that it warrants a separate bug.
Dup of bug 241972.
owned. ;)

*** This bug has been marked as a duplicate of 241972 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.