[w3c/push-api] event.waitUntil(registration.subscribe()) would cause a deadlock (#221)

The steps for `subscribe` wait for the installing or waiting version to become active before resolving the promise. This seems to mean
`oninstall = e => { e.waitUntil(self.registration.subscribe()); }`
would cause a deadlock (though the UA may timeout the event and fail the installation). Maybe subscribe() should reject if called without an active worker? I believe Chrome's current implementation does this.

-- 
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/push-api/issues/221

Received on Thursday, 10 November 2016 09:39:07 UTC