DescriptionHandle MOJO_RESULT_BUSY result in URLResponseBodyConsumer
URLResponseBodyConsumer reads data from a mojo data pipe and dispatches it as a
URLResponseBodyConsumer::ReceivedData. When the dispatched data is destructed,
mojo::EndReadDataRaw is called. Until then, mojo::BeginRead will return
MOJO_RESULT_BUSY. This CL implements the correct handling for such a case.
This mis-handling was the cause of the failure of
virtual/mojo-loading/http/tests/inspector/network/network-fetch.html. This CL
also adds text() call in makeFetch function so that the backpressure mechanism
won't stop the loading.
BUG=669357
Committed: https://crrev.com/09721f55334a28503df6bc51cb10f028ebc9f87f
Cr-Commit-Position: refs/heads/master@{#438756}
Patch Set 1 #Patch Set 2 : fix #
Messages
Total messages: 30 (20 generated)
|