W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2022

[mediacapture-main] getUserMedia permission policy check happens very late (#847)

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Sat, 08 Jan 2022 11:49:37 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-1096908279-1641642575-sysbot+gh@w3.org>
youennf has just created a new issue for https://github.com/w3c/mediacapture-main:

== getUserMedia permission policy check happens very late ==
What the getUserMedia algorithm currently does:
- Wait for focus step 6.1
- Check for available devices step 6.3.1 to 6.3.5
- Check for permission policy step 6.3.6
- Check for user permission step 6.5.1

With this algorithm, an iframe that does not have permission policy to camera/microphone can know whether the device has a camera or not. This is inconsistent with enumerateDevices.

What we should probably do:
- Wait for focus
- Check for permission policy
- Check for available devices
- Check for user permission

Looking at WebKit implementation, it currently checks permission policy even sooner, before even waiting for focus.
Given we are not trying to prevent iframes to know whether they have permission policy, we could align there as well.
@eladalon1983, @jan-ivar, do you know what Chrome and Firefox are doing there?

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/847 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 8 January 2022 11:49:38 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 8 January 2022 11:49:39 UTC