Handle 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 Review-Url: https://codereview.chromium.org/2573743002 Cr-Commit-Position: refs/heads/master@{#438756}
Showing
Please register or sign in to comment