WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
669 stars 66 forks source link

showDirectoryPicker: Don't request permission yet if mode is not specified. #389

Closed TheCymaera closed 2 years ago

TheCymaera commented 2 years ago

Calling showDirectoryPicker without specifying mode immediately asks for read permission. This is inconsistent with show(Open|Save)FilePicker which waits for an file operation before requesting the necessary permissions.

The current behaviour may require the user to respond to 2 prompts instead of 1.

a-sully commented 2 years ago

The permissions that file handles selected via the file picker start out with is explicitly not specified to give user agents some flexibility with the prompts they want to show, etc. Please file a bug on https://crbug.com/new for Chrom(e|ium) specific requests.