WICG / background-fetch

API proposal for background downloading/uploading
https://wicg.github.io/background-fetch/
Apache License 2.0
281 stars 42 forks source link

Should request stream be aborted if the upload is failing #170

Open youennf opened 1 year ago

youennf commented 1 year ago

When upload fails, https://wicg.github.io/background-fetch/#background-fetch-manager-fetch step 8.8.3.2 says to error the stream via https://streams.spec.whatwg.org/#readablestream-error. It seems it should instead cancel the stream via https://streams.spec.whatwg.org/#readablestream-cancel.

jakearchibald commented 1 year ago

Agreed. Good catch.