Re: [fetch-tests] Adding tests to ensure fetch Response body chunks are cloned (#3595)

Hmm. I am not sure I like this outcome, in particular that `stream1` is different from `response.body` and that all the data within it is cloned. That makes sense when you pass the response across a worker -> main thread boundary. But it seems very wasteful when operating within the same thread.

Does this mean that we mandate two buffer copies in the service worker case? One from the bodyInit stream passed in to `response.body` in the service worker; then a second one from the service worker `response.body` to the main thread `response.body`? That seems wrong.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/3595#issuecomment-247406882

Received on Thursday, 15 September 2016 18:13:21 UTC