Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Readers and Writers in File System Access API #238

Open
nathanmemmott opened this issue Aug 1, 2023 · 0 comments
Open

Multiple Readers and Writers in File System Access API #238

nathanmemmott opened this issue Aug 1, 2023 · 0 comments
Labels
from: Google Proposed, edited, or co-edited by Google. topic: storage Spec relates to storage mechanisms such as cookies, IndexedDB, or LocalStorage topic: web apis Spec relates to web APIs (entry points for script) venue: WHATWG Storage Workstream Proposal is being reviewed in the WHATWG Storage Workstream

Comments

@nathanmemmott
Copy link

WebKittens

@annevk @szewai

Title of the spec

Multiple Readers and Writers in File System Access API

URL to the spec

https://fs.spec.whatwg.org/

URL to the spec's repository

https://github.com/whatwg/fs/

Issue Tracker URL

No response

Explainer URL

https://github.com/whatwg/fs/blob/main/proposals/MultipleReadersWriters.md

TAG Design Review URL

w3ctag/design-reviews#845

Mozilla standards-positions issue URL

mozilla/standards-positions#861

WebKit Bugzilla URL

No response

Radar URL

No response

Description

Currently, only one FileSystemSyncAccessHandle may be open at a time per file, preventing an origin from reading the same file from multiple tabs easily. Conversely, multiple FileSystemWritableFileStream can be simultaneously open, letting multiple writers clobber each other.

Introducing new “create” modes for FileSystemSyncAccessHandle and FileSystemWritableFileStream allows opening either multiple readers/writers or an exclusive writer to a file entry, depending on the application's use case.

handle.createSyncAccessHandle({ mode: 'read-only' });
handle.createWritable({ mode: ‘exclusive’ });
@lukewarlow lukewarlow added from: Google Proposed, edited, or co-edited by Google. topic: storage Spec relates to storage mechanisms such as cookies, IndexedDB, or LocalStorage topic: web apis Spec relates to web APIs (entry points for script) labels Aug 1, 2023
@lukewarlow lukewarlow moved this from Unscreened to Needs assignees in Standards Positions Review Backlog Aug 1, 2023
@lukewarlow lukewarlow added the venue: WHATWG Storage Workstream Proposal is being reviewed in the WHATWG Storage Workstream label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. topic: storage Spec relates to storage mechanisms such as cookies, IndexedDB, or LocalStorage topic: web apis Spec relates to web APIs (entry points for script) venue: WHATWG Storage Workstream Proposal is being reviewed in the WHATWG Storage Workstream
Projects
Status: Needs assignees
Development

No branches or pull requests

2 participants