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

Issue 889246 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 882610
Owner:
Last visit > 30 days ago
Closed: Sep 27
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug
Proj-Servicification

Blocking:
issue 827532



Sign in to add a comment

BackgroundFetch doesn't work on Chrome OS with Network Service

Project Member Reported by chongz@chromium.org, Sep 25

Issue description

The following tests times out on Chrome OS when running with --enable-features=NetworkService:
-BackgroundFetchBrowserTest.FetchesRunToCompletionAndUpdateTitle_Failed
-BackgroundFetchBrowserTest.FetchesRunToCompletionAndUpdateTitle_Fetched
-BackgroundFetchBrowserTest.FetchFromChildFrameWithPermissions
-BackgroundFetchBrowserTest.FetchFromServiceWorker
-BackgroundFetchBrowserTest.OfflineItemCollection_VerifyResourceDownloadedWhenDownloadTotalLargerThanActualSize
-BackgroundFetchBrowserTest.OfflineItemCollection_VerifyResourceDownloadedWhenDownloadTotalSmallerThanActualSize

Three Observations:
1. '/chrome/test/data/background_fetch/sw.js' didn't receive 'backgroundfetchsuccess' nor 'backgroundfetchfail' events.
2. Tests works fine when running in-process with --enable-features=NetworkService,NetworkServiceInProcess.
3. Scheme should be HTTP since we are using relative URLs in '/chrome/test/data/background_fetch/background_fetch.js'.

Test Filter:
https://cs.chromium.org/chromium/src/testing/buildbot/filters/mojo.fyi.chromeos.network_browser_tests.filter?q=BackgroundFetchBrowserTest&sq=package:chromium&dr=C&l=17

+kinuko@ Do you have any thoughts on this issue, and I'm not sure but do we have any Chrome OS specific code in Service Worker? Thanks!

 
Components: -Blink>BackgroundFetch
Mergedinto: 882610
Status: Duplicate (was: Started)
After investigation I believe this is related to NetworkChangeNotifier not implemented ( issue 882610 ).

|device_status_listener_->CurrentDeviceStatus().network_status| is |NetworkStatus::DISCONNECTED| in the following line, thus the next download job won't be scheduled:
https://cs.chromium.org/chromium/src/components/download/internal/background_service/controller_impl.cc?l=1264&rcl=373b4928b64b6980d039810695c2c77181d1d6cf

Sign in to add a comment