New issue
Advanced search Search tips

Issue 674337 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

When does Chrome update the service worker automatically?

Reported by ja...@onesignal.com, Dec 15 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2946.0 Safari/537.36

Steps to reproduce the problem:
*Not an issue, just some questions regarding Chrome's specific implementation*

1. Does Chrome ever update a service in the background, NOT as part of a navigation event to a service worker-controlled URL? For example, if someone visits https://my-site.com once, never visits it again, and uses their browser regularly and leaves it running, when would the service worker for https://my-site.com auto update (if ever)?

2. Does the service worker perform an update check when it receives a push event from a received push notification? And if the same https://my-site.com was only visited once and the user subscribed to push, and a week elapsed between push notifications, the newest push notification would trigger a service worker update right?

What is the expected behavior?

What went wrong?
*Not an issue, just a question*

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 57.0.2946.0  Channel: dev
OS Version: OS X 10.11.6
Flash Version:
 

Comment 1 by tkent@chromium.org, Dec 15 2016

Components: Blink>ServiceWorker

Comment 2 by falken@chromium.org, Dec 15 2016

Status: WontFix (was: Unconfirmed)
Whenever the service worker starts up or is running, it'll trigger an update if one hasn't happened in over 24 hours. So yes a push notification would trigger an update if one hasn't happened in a week.

For questions like this, please use the mailing list service-worker-discuss@chromium.org or StackOverflow as we want to keep the bug tracker about issues. Thanks!

Comment 3 by ja...@onesignal.com, Dec 15 2016

Sorry about that, will do. Thanks for the quick reply!

Sign in to add a comment