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.
You need to log in before you can comment on or make changes to this bug.