W3C home > Mailing lists > Public > public-media-capture@w3.org > January 2016

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

From: KOLANICH via GitHub <sysbot+gh@w3.org>
Date: Sun, 31 Jan 2016 20:37:26 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-130178601-1454272645-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:35 UTC