Re: [w3c/permissions] Drop .request() (#83)

@ShijunS It looks like Edge doesn't prompt within the same realm even if the capture device has stopped being used. Specifically, visit https://jyasskin.github.io/sandbox/camera-pause/, click 'Replace stream', grant permission, then hit 'Stop stream'. The hardware light should go out. Then, without reloading the page, click 'replace stream' again. In my test, there was no extra permission prompt, and the hardware light turned on again, and the `<video>` element resumed playing from my camera. This demonstrates that a 'mute video' button will work in a video-chat app. Then, reload the page (to create a new realm), and clicking 'replace stream' should ask for permission again. That demonstrates that you're not storing permission persistently.

I think that's a reasonable behavior for Edge, and although the `request()` polyfill doesn't behave well right now (it leaves the camera light on), it looks straightforward to make it behave well in Edge.

-- 
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/83#issuecomment-243334501

Received on Tuesday, 30 August 2016 05:09:12 UTC