Re: [push-api] Fire pushsubscriptionchange when user revokes permission (#116)

To clarify, this means we should fire `pushsubscriptionchange` twice, right? Once when permission is revoked, and a second time when it's restored.

So, after revocation, `self.pushManager.getSubscription()` will resolve to `null` (per @martinthomson's comment in #150), and `subscribe()` will reject with `PermissionDeniedError`. Is that accurate?

Also, if the user restores permission, should the browser automatically resubscribe, or leave it up to the service worker? (Firefox currently leaves it up to the worker, but it might be nice to be explicit about the correct behavior).

Thanks!

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/116#issuecomment-174582174

Received on Monday, 25 January 2016 16:59:03 UTC