Consider to return a nsIAsyncInputStream in BlobImpl::GetInternalStream

NEW
Unassigned

Status

()

P3
normal
a year ago
a year ago

People

(Reporter: baku, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Currently a BlobImpl returns a generic nsIInputStream. But doing this, FileReader and other APIs have to check if that stream is an nsIAsyncInputStream and in case it's not, they have to use nsITransport (or a pipe) and read off the current thread (often the main-thread).

Would be nice to return a nsIASyncInputStream always. Currently the only non-nsIAsyncInputStreams are FileBlobImpl objects. Maybe we can create a wrapper around those inputStreams and make them nsIAsyncInputStream as well.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.