Re: [w3c/permissions] Automation: "Get Permission" (#180)

Overall, I agree that the get API is probably not high priority .
I just want to mention that the permission API might not be sufficient, depending on how it is actually implemented.

In Safari, the prompt is made once for the lifetime of the execution context.
Once it is answered, any subsequent getUserMedia call will either be granted or denied as per this initial decision.

As Safari is implemented today (modulo query API that is not supported), the following would probably happen:
WebDriver sets permission to false.
Query API will return false.
WebDriver sets permission to true.
Query API will return true.
getUserMedia is called and succeeds - storage of this decision for the context is done.
WebDriver set permission to false.
Query API will "probably" return true since another getUserMedia call for that context will succeed.

-- 
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/180#issuecomment-403656149

Received on Monday, 9 July 2018 23:59:23 UTC