New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 679300 link

Starred by 4 users

Issue metadata

Status: Closed
Owner: ----
Closed: Aug 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on:
issue 774054
issue 757441
issue 757760
issue 849195



Sign in to add a comment

Implement the Background Fetch API

Project Member Reported by harkness@chromium.org, Jan 9 2017

Issue description

The system should provide a developer-controllable interface to schedule, query, pause, and cancel background downloads. After a scheduled download completes, the system should notify the developer that the downloaded file is now available.

In progress downloads should be handled by the download manager and should be visible to users in the download notification. The user should be able to pause and cancel downloads from that interface.

Downloads 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.

The original proposal is posted on github (https://github.com/jakearchibald/background-fetch). 

The initial implementation should provide all of the API operations for single files (or a set of files containing only a single file). This implementation will then notify the developer as soon as download of that single file has completed or failed.

Future versions of the implementation will support larger sets of files, once decisions have been made on whether notifications should be provided per file or for the entire set of files. 
 
Cc: peter@chromium.org
Cc: awdf@chromium.org

Comment 3 by ricea@chromium.org, Jan 19 2017

Components: Blink>ServiceWorker

Comment 4 by peter@chromium.org, Jan 23 2017

Components: Blink>BackgroundFetch
Project Member

Comment 5 by bugdroid1@chromium.org, Feb 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7b36c43b8d390438422b8fcaaeaf97cb15f8e625

commit 7b36c43b8d390438422b8fcaaeaf97cb15f8e625
Author: harkness <harkness@chromium.org>
Date: Wed Feb 15 20:05:36 2017

Initial framework setup and skeleton for BackgroundFetchContext

The Background Fetch system will be a service worker based mechanism for
allowing persistent and reliable uploads and downloads.

This CL sets up some of the very basic framework, including the directory
and BackgroundFetchContext, which will be the main dispatcher for the
service. Once this CL is in place, future CLs will quickly iterate
adding specific functionality.

BUG= 679300 

Review-Url: https://codereview.chromium.org/2678273003
Cr-Commit-Position: refs/heads/master@{#450785}

[modify] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/BUILD.gn
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/OWNERS
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/background_fetch_context.cc
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/background_fetch_context.h
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/background_fetch_data_manager.cc
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/background_fetch_data_manager.h
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/background_fetch_data_manager_unittest.cc
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/fetch_request.cc
[add] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/browser/background_fetch/fetch_request.h
[modify] https://crrev.com/7b36c43b8d390438422b8fcaaeaf97cb15f8e625/content/test/BUILD.gn

Cc: mlamouri@chromium.org
Project Member

Comment 7 by bugdroid1@chromium.org, Mar 31 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5fec78a388c1f9997505bc4a83ad2c49a5e1b953

commit 5fec78a388c1f9997505bc4a83ad2c49a5e1b953
Author: peter <peter@chromium.org>
Date: Fri Mar 31 00:50:04 2017

Promote Background Fetch to be an experimental feature

The Background Fetch API surface has been implemented and the backend
supports starting and processing fetches in the background. It's time to
enable people to start playing with the feature.

There's still many TODOs, feeding back complete information to the
Service Worker events and displaying a notification, which can happen in
parallel.

BUG= 679300 

Review-Url: https://codereview.chromium.org/2789563002
Cr-Commit-Position: refs/heads/master@{#460960}

[modify] https://crrev.com/5fec78a388c1f9997505bc4a83ad2c49a5e1b953/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5

Comment 8 by joh...@chromium.org, Aug 22 2017

Blockedon: 757760
Owner: delph...@chromium.org
Blockedon: 757441
Blockedon: 774054
Owner: ----
Status: Available (was: Assigned)
Blockedon: 849195
Status: Closed (was: Available)
Closing in favor of the launch bug: 704729

Sign in to add a comment