Closed Bug 1769057 Opened 2 years ago Closed 2 years ago

Add WritableFileStream support to OPFS

Categories

(Core :: DOM: File, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
108 Branch
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: nobody → rjesup
Status: NEW → ASSIGNED
Attachment #9276275 - Attachment description: WIP: Bug 1769057: WritableFileStream for OPFS implementation → Bug 1769057: WritableFileStream for OPFS implementation r=saschanaz,#dom-storage-reviewers
Depends on: 1790960

(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 ?

Depends on: 1791332
Attachment #9296739 - Attachment is obsolete: true
Depends on: 1798459
Blocks: 1785123
Attachment #9296739 - Attachment is obsolete: false

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.

Attachment #9296739 - Attachment is obsolete: true
Blocks: 1791750
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
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
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: