[Webkit-unassigned] [Bug 214548] New: Feature Request: Implement the Background Fetch API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 20 04:27:37 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214548

            Bug ID: 214548
           Summary: Feature Request: Implement the Background Fetch API
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tomac at google.com

Spec: https://wicg.github.io/background-fetch/

Article: https://developers.google.com/web/updates/2018/12/background-fetch

Use case: Fetching (as in down- or uploading) content without the page being open.

Example:

```js
navigator.serviceWorker.ready.then(async (swReg) => {
  const bgFetch = await swReg.backgroundFetch.fetch('my-fetch', ['/ep-5.mp3', 'ep-5-artwork.jpg'], {
    title: 'Episode 5: Interesting things.',
    icons: [{
      sizes: '300x300',
      src: '/ep-5-icon.png',
      type: 'image/png',
    }],
    downloadTotal: 60 * 1024 * 1024,
  });
});
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200720/dffc385c/attachment-0001.htm>


More information about the webkit-unassigned mailing list