Open Bug 1797358 Opened 2 years ago Updated 2 years ago

Support writing an nsIStream to a file in IOUtils

Categories

(Toolkit :: IOUtils and PathUtils, task, P3)

task

Tracking

()

People

(Reporter: barret, Unassigned)

References

Details

This is needed to migrate the logmanager.jsm

No longer blocks: 1796878

This is not required to migrate logmanager, but would be a nice to have.

It also might be possible to migrate all of the IOUtils::Write* logic on top of streams to be more async, but that has some issues:

  • Right now order of operations is guaranteed and this will break that. There is at least one piece of code relying on this (RemoteImages)
  • The shutdown / queue flushing logic would need to be rewritten to handle tasks that continue
  • The amount of work is non trivial
Assignee: brennie → nobody
Priority: P1 → P3
Component: OS.File → IOUtils and PathUtils
You need to log in before you can comment on or make changes to this bug.