Closed Bug 1343232 Opened 7 years ago Closed 7 years ago

File download window does not close automatically with e10 enabled

Categories

(Firefox :: Untriaged, defect)

51 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1301056

People

(Reporter: mail, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170201180315

Steps to reproduce:

Send the following HTTP content from a web server by clicking a link:

"Content-Type: application/octet-stream; charset=binary\n" +
"Content-Disposition: inline; filename=\"test.dat\"\n" +
"Content-Length: 4\n" +
"\n" +
"\u0001\u0002\u0003\u0004"

We're supposed to get a file download here consisting of 4 bytes of hexadecimal values 1, 2, 3, 4.



Actual results:

The file downloads fine from a newly opened window but the window does not close automatically.



Expected results:

The window in question should close automatically.

It closes automatically with e10 disabled but stays open with e10 enabled. I can reproduce it on any version of Firefox from v47 above (32 and 64 bit too).

When the file in question is a type that Firefox can display, then it does display it. Like in the case of image files (JPG, PNG) or PDF document or plain text files. But when sending an unknown file type, the normal behavior has always been like offering the file for download closing the window automatically in the background.

This seems to have changed from a specific version that I am now aware of. I wonder if it has anything to do with the following change:

https://developer.mozilla.org/en-US/docs/Web/API/Window/close

Closing the current window: In the past, when you called the window object's close() method directly, rather than calling close() on a window instance, the browser closed the frontmost window, whether your script created that window or not. This is no longer the case; for security reasons, scripts are no longer allowed to close windows they didn't open. (Firefox 46.0.1: scripts can not close windows, they had not opened)

Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Can I get information on how this is resolved? The latest version has still got the issue. Do I miss anything?
You need to log in before you can comment on or make changes to this bug.