Closed Bug 1857155 Opened 1 year ago Closed 1 year ago

Simplify FileSystemWritableFileStream construction

Categories

(Core :: DOM: File, task, P1)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(6 files)

FileSystemWritableFileStream::Create is currently async and thus quite complicated. The only reason why the method is async is that we deserialize the stream immediately. FileSystemSyncAccessHandle does it lazily, so the construction is less complicated. I think we should try to align FileSystemWritableFileStream::Create and FileSystemSyncAccessHandle::Create which should make is easier to fix any remaining bugs in the construction code.

Blocks: 1856072
Attachment #9356825 - Attachment description: Bug 1857155 - Make sure FileSystemWritableFileStream can't go away during Seek and Truncate; r=#dom-storage → Bug 1857155 - Make sure FileSystemWritableFileStream can't go away during Seek, Truncate and Close/Abort; r=#dom-storage
Blocks: 1856091
Keywords: leave-open
Attachment #9356832 - Attachment description: Bug 1857155 - Deseriaize stream for FileSystemWritableFileStream lazily; r=#dom-storage → Bug 1857155 - Deserialize stream for FileSystemWritableFileStream lazily; r=#dom-storage
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6b0cfa844626 Move WriteImpl to FileSystemWritableFileStream; r=dom-storage-reviewers,aiunusov,jari https://hg.mozilla.org/integration/autoland/rev/46d5fe8826c9 Make sure FileSystemWritableFileStream can't go away during Seek, Truncate and Close/Abort; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/52c54e9b898b Deserialize stream for FileSystemWritableFileStream lazily; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/3bc476959474 Change FileSystemWritableFileStream::Create to return constructed streams synchronously; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/f49baa5f51c6 Remove redundant build worker ref; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/3d1ac3fb7670 Remove custom ResolveCallback for FileSystemGetWritableFileStreamResponse; r=dom-storage-reviewers,jari
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: