Re: [w3c/permissions] Requesting permission shouldn't imply storing it. (#93)

I believe @alvestrand wants "request access" to use in step 6.7 of http://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-getusermedia. That's basically the "ask the user" step. It might short-circuit if there's a stored value, but otherwise it does just return "granted" or "denied" and lets the surrounding algorithm figure out what to return to the caller based on that. Telling the surrounding algorithm that it's "temporary" (for either of the two meanings of that word) doesn't help, since it just needs to know whether to give the caller a capability-object.

That said, `getUserMedia()` actually needs more information from the request than just the "granted" or "denied" answer: it needs to know *which* MediaStream the user granted access to, and no common "request access" algorithm can possibly return that specialized information. That's why the Permissions editors' draft provides storage management but [makes the individual spec define the actual permission prompt](https://w3c.github.io/permissions/#permission-request-algorithm).

---
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/93#issuecomment-215502675

Received on Thursday, 28 April 2016 17:29:04 UTC