Re: [permissions] Flesh out more complex permission issues we see down the road (#28)

Fullscreen seems like a quite simple API in the context of permissions as far as I can tell.

Pointer lock is more interesting because it requires fullscreen. So does Screen Orientation in some contexts. Some APIs also require user interaction. Like fullscreen, actually ;)

I think what makes these permissions interesting is that the API call could fail because the API is expecting some states. Even if an application is allowed to use the pointer lock API, it will always fail unless it is currently fullscreen.

My idea was to introduce a PermissionDetails (or PermissionInformation...) that would expose some information about the permissions. Pointerlock could be something like:
```js
{
  requiresFullscreen: true,
  requiresUserInteraction: false,
}
```

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

Received on Tuesday, 7 April 2015 23:27:20 UTC