background-fetch
background-fetch copied to clipboard
API proposal for background downloading/uploading
Fixes https://github.com/WICG/background-fetch/issues/170 *** Preview | Diff
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.
As per specification, https://wicg.github.io/background-fetch/#dom-backgroundfetchmanager-fetch does not reject if individual record fetch fail. This seems to indicate that CSP, port checks and so on should not trigger rejection of https://wicg.github.io/background-fetch/#dom-backgroundfetchmanager-fetch, but...
While crawling [Background Fetch](https://wicg.github.io/background-fetch/), the following algorithms fire an event, or resolve or reject a Promise, within a step that runs [in parallel](https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel) without first queuing a task: * [...