Closed Bug 1740953 Opened 4 years ago Closed 4 years ago

Script could open any number of file pickers via simulating click on a `<a download>` link

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 94
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1711049

People

(Reporter: u635660, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

open firefox
go to https://rickroll.ndev.tk/feeder/

Actual results:

popups appear

Expected results:

it should block the popups chrome appears to

OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop
Group: firefox-core-security
Group: firefox-core-security → core-security
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Edgar, perhaps you know what's up here.

Flags: needinfo?(echen)
Group: core-security → dom-core-security

This is nothing to do with the popup blocker, it is about the script that could open any number of folder picks via simulating click on a <a download> link.

Flags: needinfo?(echen)
Summary: bypass popup blocker on firefox windows → Script could open any number of file pickers via simulating click on a `<a download>` link
Attached file test.html

This is a simplified test script that tries to download 5 files.

If the user chooses "Always ask you where to save file" in the about:preferences, we will show 5 file-save pickers simultaneously, or just start downloading 5 files. What Chrome does is show a permission dialog inform the user that the page will download multiple files and ask if the user allows doing so, and it shows the picker one by one. Safari seems to allow showing only two pickers at the time and ignore subsequent download actions.

OS: Windows 11 → All

This is being worked on in bug 1711049

Group: dom-core-security
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: