You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we expose the service workers current registration as self.registration. In theory, the service worker can add an updatefound event handle on the registration to know when an event happens. This event in a service context, though, seems unreliable since it doesn't use ExtendableEvent. For example:
The updatefound event does not start the service worker if its been stopped. (AFAICT)
The updatefound event does not provide an event.waitUntil() method.
Should updatefound be usable in a service worker context? If so, should the browser start the worker to fire this event and should it be an ExtendableEvent? If its an ExtendableEvent, should waitUntil() delay the installation of the update?
The text was updated successfully, but these errors were encountered:
Currently we expose the service workers current registration as
self.registration
. In theory, the service worker can add anupdatefound
event handle on the registration to know when an event happens. This event in a service context, though, seems unreliable since it doesn't use ExtendableEvent. For example:updatefound
event does not start the service worker if its been stopped. (AFAICT)updatefound
event does not provide anevent.waitUntil()
method.Should
updatefound
be usable in a service worker context? If so, should the browser start the worker to fire this event and should it be an ExtendableEvent? If its an ExtendableEvent, should waitUntil() delay the installation of the update?The text was updated successfully, but these errors were encountered: