Re: [permissions] Should 'prompt' be renamed as 'default'? (#12)

I presume that if the user agent is able to make a decision when the API call is being made, it can tell whether at that time it would allow the call to go trough, right? If your algorithm depends on some parameters like origin, previous usage, type of network, there are no reasons why ```.query()``` shouldn't work.

It might be more complicated for algorithms depending on very unstable data. To take an extreme example: if the permission granting is randomly set based on the time of day. Calling ```.query()``` at a time ```t``` will unlikely help you knowing whether you will have the permission granted at time ```t'```. Obviously, that's always true, but not for very close ```t``` and ```t'```.

Another example where the current model would be tricky to apply is for quantic permissions: if observing the permission could modify it.

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

Received on Wednesday, 18 March 2015 22:06:08 UTC