Regressed Page is automatically closed when window.open() triggers file download

Published: | Categories: DOM

Description

Firefox 54 has introduced a regression where the current browser tab is unexpectedly closed if the window.open method is used to download a file such as a PDF document or ZIP archive. Mozilla developers are working on the solution. Web developers are encouraged to specify the HTML5 download attribute on the <a> element to create a download link.

References