[w3c/permissions] "prompt the user to choose" algorithm impedance mismatch. (#161)

In https://github.com/w3c/mediacapture-main/issues/487 UAs should have a choice to use either the [request permission to use](https://w3c.github.io/permissions/#request-permission-to-use) algorithm or the [prompt the user to choose](https://w3c.github.io/permissions/#prompt-the-user-to-choose) algorithm, for Firefox's permission prompt.

But it takes a *paramdescriptor* and a list of related *options*, which only works if we don't use `deviceId`. That happens to work since Firefox only persists permission *per kind* today.

However, both specs put a lot of effort to optionally support permission *per deviceId* as well.

In that case, the [prompt the user to choose](https://w3c.github.io/permissions/#prompt-the-user-to-choose) algorithm would need to take a list of related *paramdescriptors*, because each descriptor has its own *deviceId*, right?

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

Received on Friday, 22 September 2017 23:18:47 UTC