Contact emails
raya...@chromium.org, na...@chromium.org, jakear...@chromium.org, pe...@chromium.org
Explainer
https://developers.google.com/web/updates/2018/12/background-fetch
Spec
https://wicg.github.io/background-fetch/
Tag Review
https://github.com/w3ctag/design-reviews/issues/279
Test Website
https://backgroundfetch.com/ (code here)
Summary
Background Fetch API provides a service worker based download and upload mechanism which is persistent across service worker and browser restarts.
The system provides a developer-controllable interface to schedule, query, pause, and cancel background downloads and uploads. After a scheduled fetch completes, the system will notify the developer of the outcome of the operation by sending an event to the service worker.
In progress downloads and uploads are handled by the download manager and will be visible to users in a notification. The user will be able to pause and cancel actions from that interface.
Downloads and uploads should continue even if the developer's website is not loaded in a tab, and if Chrome is closed, the download should resume when Chrome opens again.
Limitations
We don’t support background fetch requests requiring CORS preflight at this time. Work on this is in progress.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/Ia9_-CVrl1U/jEBQGVv_BQAJ
Origin Trial feedback summary
The API has been available through origin trials since Chrome 71. No negative feedback has been received.
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
Yes, except WebView.
Demo link
Note: Need to enable chrome://flags/#enable-experimental-web-platform-features
Debuggability
Background Fetch initiated downloads are clearly identified at chrome://download-internals.
rayankans@ is working with the DevTools team to expose background behavior in Chrome, which will be used for Background Fetch as well.
Risks
Interoperability and Compatibility
As this is a new feature which Chrome is leading with, we have solicited community feedback and submitted a complete WPT test suite.
Interest from other stakeholders is as follows:
Edge: Positive
Firefox: Positive
Safari: No signal
Web developers: Positive (Facebook and LinkedIn are super interested in the uploads support.)
Compatibility isn’t an issue. We don’t foresee this breaking any existing websites as it’s a new feature.
Ergonomics
No adverse effects on Chrome performance are expected.
We recommend developers to use the Permissions API to check for background-fetch permission before starting a background fetch, and expect these two APIs to often be used together.
Activation
The API can be used immediately and easily when shipped. The explainer has examples.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Yes. Test suite here.
Entry on the feature dashboard
Contact emails
raya...@chromium.org, na...@chromium.org, jakear...@chromium.org, pe...@chromium.org
Explainer
https://developers.google.com/web/updates/2018/12/background-fetch
Spec
https://wicg.github.io/background-fetch/
Tag Review
https://github.com/w3ctag/design-reviews/issues/279
Test Website
https://backgroundfetch.com/ (code here)
Summary
Background Fetch API provides a service worker based download and upload mechanism which is persistent across service worker and browser restarts.
The system provides a developer-controllable interface to schedule, query, pause, and cancel background downloads and uploads. After a scheduled fetch completes, the system will notify the developer of the outcome of the operation by sending an event to the service worker.
In progress downloads and uploads are handled by the download manager and will be visible to users in a notification. The user will be able to pause and cancel actions from that interface.
Downloads and uploads should continue even if the developer's website is not loaded in a tab, and if Chrome is closed, the download should resume when Chrome opens again.
Limitations
We don’t support background fetch requests requiring CORS preflight at this time. Work on this is in progress.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/Ia9_-CVrl1U/jEBQGVv_BQAJ
Origin Trial feedback summary
The API has been available through origin trials since Chrome 71. No negative feedback has been received.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2BPd-jfUQ%3DbAphs527pD47%2BkBkOaxP9%2BArtwZS08S31UVn17ZQ%40mail.gmail.com.
Contact emails
raya...@chromium.org, na...@chromium.org, jakear...@chromium.org, pe...@chromium.org
Explainer
https://developers.google.com/web/updates/2018/12/background-fetch
Spec
https://wicg.github.io/background-fetch/
Tag Review
https://github.com/w3ctag/design-reviews/issues/279
Test Website
https://backgroundfetch.com/ (code here)
Summary
Background Fetch API provides a service worker based download and upload mechanism which is persistent across service worker and browser restarts.
The system provides a developer-controllable interface to schedule, query, pause, and cancel background downloads and uploads. After a scheduled fetch completes, the system will notify the developer of the outcome of the operation by sending an event to the service worker.
In progress downloads and uploads are handled by the download manager and will be visible to users in a notification. The user will be able to pause and cancel actions from that interface.
Downloads and uploads should continue even if the developer's website is not loaded in a tab, and if Chrome is closed, the download should resume when Chrome opens again.
Limitations
We don’t support background fetch requests requiring CORS preflight at this time. Work on this is in progress.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEjPO%3DA_fGtdD2xxKUadz5SsbP1KtHHToAPaW7b8VmG8ew%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.zx91zhjcrbppqq%40cicero2.linkoping.osa.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/fe0dd4f1-7c7a-4ad1-a519-189fe8267560%40chromium.org.
The user agent may also consider setting bgFetch’s paused flag if the user is on a metered connection, or the background fetch was started in the background.
Hello,
I am eagerly awaiting support for the upload functionality of this API.
It would be a great experience if users of my application could close a tab while uploading a huge file and the upload would continue.
Am I correct in understanding that uploading is not yet implemented right now?
(I tried it at hand and got a "fetch-error". I thought it must be because preflight requests are not yet supported.)
I would like to know if there are any plans regarding the implementation of uploading.
Or is there any reason why it cannot happen?Thanks,yoshiko2020年4月14日火曜日 20:06:08 UTC+9 raya...@google.com:
Hi,