Re: [w3c/permissions] Mechanism for permission feature-detection? (#134)

`permissions.query({name: "Unknown"})` rejects with a `TypeError`, while `permissions.query({name: "Denied"})` fulfils with a [`PermissionStatus`](https://w3c.github.io/permissions/#permissionstatus) containing `{state: "denied"}`.

It might make sense to add a more explicit operation to check whether a permission is supported, but they're at least distinguishable now.

-- 
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/134#issuecomment-254242237

Received on Monday, 17 October 2016 15:31:42 UTC