Contact emails

ds...@chromium.org

Explainer

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

Summary

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 FileSystemWritableFileStreams can be
simultaneously open, letting multiple writers clobber each other.

We are prototyping new “create” modes for FileSystemSyncAccessHandle and
FileSystemWritableFileStream that allow 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' });

```

Blink component

Blink>Storage>FileSystem
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EStorage%3EFileSystem>

TAG review

https://github.com/w3ctag/design-reviews/issues/845

TAG review status

Pending

Risks

Interoperability and Compatibility

Gecko: Positive with regards to allowing multiple
FileSystemSyncAccessHandles. Stance on the shape of this specific proposal
is not yet known. <https://github.com/whatwg/fs/issues/34>

WebKit: Positive with regards to allowing multiple read-only
FileSystemSyncAccessHandles. Stance on the shape of this specific proposal
is not yet known. <https://github.com/whatwg/fs/issues/34>

Web developers: Positive (https://github.com/whatwg/fs/issues/34)

Other signals: Emscripten plans to utilize multiple readers and writers for
performance improvement, and sites using Emscripten will be able to take
advantage of this integration.



Debuggability

N/A

Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?

Not yet

Flag name

FileSystemAccessMultipleReadersWriters

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1382215

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5172892632875008

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPscNz5Oi-z6-%2BvTVyf9BNgvVnLZeQo5nfzyRhEZ_F400tTP3w%40mail.gmail.com.

Reply via email to