Closed Bug 1790960 Opened 2 years ago Closed 2 years ago

FS: Start using XPCOM streams for file reads and writes

Categories

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

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, we use direct low level calls like PR_Read and PR_Write which limit our ability to do quota checks using existing stream wrappers.

The transition to streams will also allow:

  • add any other stream wrapper, for example encryption/decryption for private browsing
  • do I/O on a background thread pool
  • cancel the reading or writing (for example during app shutdown or window/worker teardown or when a clear origin operation has been requested)
  • to respond to control runnables in workers
Depends on: 1791721
Depends on: 1791723
Depends on: 1791725
Depends on: 1791729
Depends on: 1791730
Depends on: 1791734
Depends on: 1791737
Depends on: 1791739
Depends on: 1791741
Depends on: 1791745
Depends on: 1791747

Work ongoing in the child-bugs. This here is only the enabling patch.

Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3cd1919eae5c FS: Start using XPCOM streams for file reads and writes; r=dom-storage-reviewers,jesup
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
See Also: → 1798513
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: