Add WritableFileStream support to OPFS
Categories
(Core :: DOM: File, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: jesup, Assigned: jesup)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
The OPFS spec includes WritableFileStream (based on WritableStream) via createWritable().
Note that this requires copy-on-open and replace-on-close semantics.
It also must take a read lock (which is supported in the OPFS code) so you can't have WritableFileStreams open on the same file as an SyncAccessHandle has open.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
(In reply to Randell Jesup [:jesup] (needinfo me) from comment #0)
Note that this requires copy-on-open and replace-on-close semantics.
So, are we going to implement this ?
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Comment on attachment 9296739 [details]
Bug 1769057 - Close parent side file handles to unlock child side. r=#dom-storage,jesup
Revision D158405 was moved to bug 1798459. Setting attachment 9296739 [details] to obsolete.
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e450859e6f0a WritableFileStream for OPFS implementation r=janv,webidl,dom-storage-reviewers,smaug https://hg.mozilla.org/integration/autoland/rev/5ad098d5b4b9 Fix static analysis issues. r=dom-storage-reviewers,janv
Comment 7•2 years ago
•
|
||
Backed out for causing failures at fs/FileSystemBaseHandle-IndexedDB.
Backout link: https://hg.mozilla.org/integration/autoland/rev/1576f7f93a3cb5eecdcae6118dad5f97a4904a05
Failure log: https://treeherder.mozilla.org/logviewer?job_id=395997253&repo=autoland&lineNumber=8047
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c43c77f85e62 WritableFileStream for OPFS implementation r=janv,webidl,dom-storage-reviewers,smaug https://hg.mozilla.org/integration/autoland/rev/0e2e808b9542 Fix static analysis issues. r=dom-storage-reviewers,janv
Comment 9•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c43c77f85e62
https://hg.mozilla.org/mozilla-central/rev/0e2e808b9542
Description
•