Re: [w3c/ServiceWorker] resurrected service workers don't fire an activate event which may break expectations (#1204)

I used the message+claim approach to fix the test I found running into this.  So yea, that does work.  I just don't see it as a common pattern (but I'm a c++ person so maybe not surprising).

I do think its a bit different from shift-reload.  In that case the window does not actually end up controlled.  With the resurrection case you end up controlled, but never told you are controlled.

Note, this is very similar to #1198.  That one was a bit easier to solve, though, because we can safely just resolve the promise.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1204#issuecomment-336171392

Received on Thursday, 12 October 2017 15:22:20 UTC