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

> WebDriver sets permission to false.
> Query API will "probably" return true since another getUserMedia call for that context will succeed.

@youennf permission is not boolean, but rather: `"denied"`, `"granted"` or `"prompt"`.

But good point. `"denied"` is supposed to block, so it would seem odd to ignore it.

At the same time, [getUserMedia]() says to: *"[consider] all devices attached to a live MediaStreamTrack in the current browsing context to have permission status "granted"*, so it wins.

Firefox gets around this by always `stop()`ing affected tracks in response a user revoking permission, but that's browser-specific of course.

> I am not sure there is a precise use case except convenience.

In that case, I vote we close this.

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

Received on Tuesday, 17 July 2018 02:56:06 UTC