![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
why does tab always close now after downloading email attachment?
why does tab always close now after downloading email attachment?
Alla svar (2)
What's weird is that it doesn't happen on all my computers, but always happens on my laptop. The problem seems to come and go, so I'm assuming some storage area Firefox uses is getting filled up, but can't figure out what it is.
This is a copy/paste of my comment in another thread today (https://support.mozilla.org/en-US/questions/1401782#answer-1558480):
There is something unusual going on, but first, this seems to work normally:
(1) Open a new tab and open your Yahoo Inbox in only that one tab (2) Click the message that has the attachment; it appears in the same tab (3) Hover the image attachment and click the download button and Save the file -- nothing weird happens
If I force Yahoo Mail to display a message in a second tab, and then download an attachment from that message, then I am able to replicate the unwanted behavior. Here are the four ways I tested:
Scenario A: Open Inbox in a second tab or a new window. Either:
- right-click the yahoo!mail logo and choose Open Link in New Tab
- right-click the yahoo!mail logo and choose Open Link in New Window
In this scenario, I can open and view a message in the new tab/window without any rude surprises, but if I open a message and download an attachment, then at some point thereafter, the new tab/window is closed.
Scenario B: Open a single message in a second tab or a new window. Either:
- Shift+right-click the message in the Inbox and click Open Link in New Tab
- Shift+right-click the message in the Inbox and click Open Link in New Window
Same here: I can view the message without any rude surprises, but if I download an attachment, then at some point thereafter, the new tab/window is closed.
Can you tell whether you have Yahoo mail open in a different tab? If you type or paste %yahoo in the address bar, Firefox should list all the open Yahoo tabs. You could scan the list to see whether there is another mail tab open which may be the master tab that stays open.
How to allow a second Yahoo! Mail tab to stay open?
I'm doubtful that Firefox is deciding to close the tab for its own reasons because (A) there is an inexplicable delay after the download is completed and (B) it doesn't happen on other sites.
But how could Yahoo! control this? Perhaps a script in the page itself is closing the tab when it was launched from another Yahoo tab. To test that, I tried these methods to open the second window/tab in a completely independent way:
- press Ctrl+T to launch a new tab, type mail.yahoo.com in the address bar and press Enter to load it (Ctrl+clicking a bookmark should also work)
- press Ctrl+N to launch a new window, type mail.yahoo.com in the address bar and press Enter to load it (Shift+clicking a bookmark should also work)
Neither of those got closed after opening a message and downloading an attachment.
That's what I've discovered so far. It's not satisfactory that Yahoo is allowed to close a tab when it wants to. Normally, scripts in pages were only allowed to close their tab if the tab was launched using a script. Since the links were launched in a second tab/window by me using Firefox's link context menu, I didn't think the page would be allowed to close its tab in that case. Something seems to have changed.