[mediacapture-main] Clarify that enumerateDevices must not expose devices that a given context cannot use through getUserMedia

youennf has just created a new issue for https://github.com/w3c/mediacapture-main:

== Clarify that enumerateDevices must not expose devices that a given context cannot use through getUserMedia ==
getUserMedia access to camera/mics/speakers can be controlled by FeaturePolicy.
In case, feature policy disables camera access, enumerateDevices should not enumerate camera devices. Ditto for other types of devices.

>From my reading of the spec, this is the required behavior.
I haven't found a WPT test though and I am unsure whether browsers are actually implementing that.

A WPT test would be good if this is actually not covered.
Maybe a note in the spec if we see browsers not implementing this (although a test might be more effective than a note).

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

Received on Thursday, 25 October 2018 09:03:09 UTC