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

Yeah, I don't mean to imply that we'll keep the `request()` function. My use of `request()` is just a shorthand for calls to the [request a permission algorithm](https://w3c.github.io/permissions/#request-a-permission). I also don't mean to say that the Permissions spec is or isn't stable enough for Media Capture to depend on it at this point. That's up to your working group with my input that a lot of this is going to change before it settles down, especially anything touching on temporary permissions.

I was trying to say earlier that **we don't know** whether [request a permission](https://w3c.github.io/permissions/#request-a-permission) will return `'prompt'` or `'granted'` to signify temporary access. That implies that Media Capture shouldn't rely on this decision, since it might change after you take your CR vote.

Right now, the wording says Media Capture has to make its own decision about which of `'prompt'` or `'granted'` to return. It needs to do this by defining a (confusingly-named, sorry) [permission request algorithm](https://w3c.github.io/permissions/#permission-request-algorithm) that's in charge of figuring out what to show in the prompt, showing the prompt, and building any specialized return value that might include a [`MediaStream`](http://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-MediaStream).

But I think we can have the Permissions spec make the decision between `'prompt'` and `'granted'` for ephemeral permissions (ones that don't even get remembered as long as a [realm](https://tc39.github.io/ecma262/#sec-code-realms)), assuming that Media Capture tries to store `'granted'`. I just need to know which of the options you want.

---
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-215259680

Received on Wednesday, 27 April 2016 23:10:08 UTC