Re: [w3c/permissions] Add a fourth permission state "grantable without a prompt"? (#250)

So now we have the following,

>Every permission has a default state (usually [prompt](https://www.w3.org/TR/permissions/#dfn-prompt)), which is the [state](https://www.w3.org/TR/permissions/#dfn-permission-state) that the permission is in when the user has not yet given [express permission](https://www.w3.org/TR/permissions/#dfn-express-permission) to use the [feature](https://www.w3.org/TR/permissions/#dfn-powerful-feature) or it has been reset because its [lifetime](https://www.w3.org/TR/permissions/#dfn-lifetime) has expired.

But I'm not sure that solves what @mkruisselbrink is asking for. We want something that means "granted when its been requested, but not yet requested". Maybe "default" is the way to go. Or we spell "default" as "grantable". 🤔 

A spec like persistent-storage could define the default as "granted", but I think that would be misleading and then devs wouldn't know they should request it. But maybe Storage is a bad example, because devs can just use `navigator.storage.persisted()` (where `false` means "grantable but not yet requested" and `true` means "granted" instead of `navigator.permissions.query()`). 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/250#issuecomment-1030322698

You are receiving this because you are subscribed to this thread.

Message ID: <w3c/permissions/issues/250/1030322698@github.com>

Received on Friday, 4 February 2022 20:23:56 UTC