Enhance createSyncAccessHandle to support options
Categories
(Core :: Storage: Bucket File System, enhancement, P3)
Tracking
()
People
(Reporter: jjalkanen, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
FileSystemSyncAccessHandle in Firefox currently does not permit opening the same file in multiple contexts at once. The proposed "readwrite-unsafe" and "readonly" modes would lift this restriction, allowing concurrent access to the same file from multiple workers. This is already implemented in Chrome and is requested by developers of distributed web applications (e.g., WordPress Playground, WASM-based SQLite, and pglite). In the "readwrite-unsafe" mode, concurrency control becomes the application’s responsibility (e.g., delegated to SQLite’s transaction system). This feature could live behind a pref, enabled only in Nightly builds initially.
-
Spec proposal: MultipleReadersWriters.md
-
Web platform tests: FileSystemFileHandle-sync-access-handle-lock-modes.https.tentative.worker.js
-
Test status: wpt.fyi
Description
•