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

In chrome we have (or will have) some permissions that under certain circumstances are in a state where the permission isn't granted yet, but will be granted without showing a prompt if the permission is requested. That state is not currently something that can really be expressed by the permissions API, with the closest equivalent being simply "prompt". However sometimes websites would really like to know if requesting a permission will actually show a prompt or not, to be able to provide better UI to their users.

Not sure if adding a fourth permission state for this case makes sense, and changing this for existing permissions would likely not be web compatible either, but was mostly wondering what other people think of this...

(currently Chrome uses this state for the [Persistent Storage](https://w3c.github.io/permissions/#persistent-storage) permission, but we're also considering using this in some cases for the [file system](https://wicg.github.io/file-system-access/#permissions) permission).

-- 
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/250

Received on Monday, 19 July 2021 21:07:33 UTC