Skip to content

Support "write"-only permission mode in FileSystem/FileSystemAccess API #534

Description

@mingyc

WebKittens

No response

Title of the proposal

Support "write"-only permission mode in FileSystem/FileSystemAccess API

URL to the spec

N/A

URL to the spec's repository

https://github.com/WICG/file-system-access

Issue Tracker URL

No response

Explainer URL

https://github.com/WICG/file-system-access/pull/462/files

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1276

WebKit Bugzilla URL

No response

Radar URL

No response

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedComing to a position is blocked on issues identified with the spec or proposal.from: GoogleProposed, edited, or co-edited by Google.topic: web apisSpec relates to web APIs (entry points for script)venue: WICGProposal is incubated in the Web Incubator Community Group

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions