file-system-access icon indicating copy to clipboard operation
file-system-access copied to clipboard

Propose spec update for "write"-only permission mode.

Open mingyc opened this issue 9 months ago • 0 comments

The File System Access API defines two access modes for file system entries: "read" and "readwrite". These modes are used when querying or requesting permission to an entry.

An issue with the current model is that operations requiring only file system modification, such as FileSystemHandle.remove(), are forced to request broad "readwrite" permission. This behavior poses some unnecessary security risks. Add a new "write"-only access mode and adjust the existing APIs would solve the issue.

This is for #463 and #119. The explainer for this proposal is in #462.


Preview | Diff

mingyc avatar Jul 29 '25 05:07 mingyc