- From: Jeffrey Yasskin <notifications@github.com>
- Date: Mon, 25 Jul 2016 16:43:01 -0700
- To: w3c/permissions <permissions@noreply.github.com>
- Message-ID: <w3c/permissions/issues/111@github.com>
1. [`serviceWorkerRegistration.pushManager.subscribe()`](https://w3c.github.io/push-api/#widl-PushManager-subscribe-Promise-PushSubscription--PushSubscriptionOptionsInit-options) needs a `ServiceWorkerRegistration`. Should that be a required member of [`PushPermissionDescriptor`](https://w3c.github.io/permissions/#dictdef-pushpermissiondescriptor) or what? 2. [`subscribe()`](https://w3c.github.io/push-api/#widl-PushManager-subscribe-Promise-PushSubscription--PushSubscriptionOptionsInit-options) fails in at least 4 ways. We need to figure out which of these reject the `request()` promise, and which are communicated in other ways. Having the permission be denied is not exceptional for permissions.request(), so at least NotAllowedError needs to be a fulfillment with a particular state. 1. SecurityError 1. InvalidAccessError 1. InvalidStateError 1. NotAllowedError 1. AbortError @mounirlamouri @mvano @martinthomson (Martin, this doesn't presuppose the answer to #83, but the complexity of specifying request() could affect the decision there.) --- 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/permissions/issues/111
Received on Monday, 25 July 2016 23:43:34 UTC