[mediacapture-main] Replace device enumeration API with a secure widget

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

== Replace device enumeration API with a secure widget ==
```js
navigator.mediaDevices.enumerateDevices();
```
allows the website to get the list of devices which can be used to 
identify user and/or his hardware and/or environment.

This kind of stuff mustn't be exposed to webpages at all. Instead of 
this the API should return a list of devices as a list of secure dom 
nodes (see [this discussion about how such elements should 
behave](https://www.w3.org/Bugs/Public/show_bug.cgi?id=29350#c2)), to 
which the user should be able to interact directly and which are 
indistinguishable for the web page from each other (their order 
visible to the webpage should also be random).

This will allow a user to select the device but won't allow a webpage 
to get information about hardware/environment directly.

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

Received on Sunday, 31 January 2016 20:37:28 UTC