Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1823429 - Don't try another read from ChunkSteps r=smaug
Having another read request on an empty chunk sounds nice, but I guess it's not worth allowing recursion for this edge case. Now the next read request will happen asynchronously by the next OnOutputStreamReady callback, which is similar to what Blink does and the spec recommends. * Blink: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/fetch/readable_stream_bytes_consumer.cc;l=179-186;drc=059796845b1738dbf28ea76f0e9ff4b6f8787d3a (queues a microtask to prevent recursion) * Spec: https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes (See the note below "chunk steps") Differential Revision: https://phabricator.services.mozilla.com/D173813
- Loading branch information