Re: Geofencing alternative proposal

+Jake,Alex who might want to clarify the spec on this point (see this
onwards for context).

No, install is fired when a SW starts being installed. Completing
installation doesn't mean a SW will be used yet.

Once the SW is ready to be activated (in particular, once all tabs using an
old version of the SW have been closed, or the new SW version calls
its install event to forcibly take over), then an activate event will be
fired (once only), and from then on that SW will receive fetch events etc.

This all happens once only (or only when you update the SW I guess). IIRC
no events are fired when the UA destroys or the script context or reloads
it (by re-executes the SW JS).

On 23 September 2014 15:08, Martin Thomson <> wrote:

> On 23 September 2014 03:31, Michael van Ouwerkerk
> <> wrote:
> > Martin, I think it means that before functional events (e.g. fetch, push)
> > start firing, activate is fired once. Not once before each fetch event.
> Does
> > that sound right?
> That would be perfect, would it not?  Assuming that the script context
> is not destroyed between events unless activate is also fired.

Received on Tuesday, 23 September 2014 15:15:24 UTC