Open Bug 1424842 Opened 4 years ago Updated 4 years ago

Send an (change) event when the user cancels the file (webkitdirectory) selection (upload) window.


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

57 Branch





(Reporter: pardo133, Unassigned)



(1 file)

1.81 KB, text/html
Attached file index.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce:

See example test in attachement:

1. Click on the file/folder browse button...
2. Cancel the selection window the browser provide
3. The application does not receive an event to hide the mask

Actual results:

The file selection dialog provided by the browser disappears, but the mask can't be removed.

Expected results:

An event handler (callback) should be able to react on the cancellation of the folder/file selection
Component: Untriaged → Event Handling
Product: Firefox → Core
Component: Event Handling → DOM: Core & HTML
I noticed none of Firefox, Edge or Chrome sends change event when "cancel" button is pressed.
Is there a way that we can know the result of the file dialog?
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.