[mediacapture-main] enumerateDevices can be used to track user devices in background pages (#561)

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

== enumerateDevices can be used to track user devices in background pages ==
enumerateDevices currently use [storedDeviceList] to return the same list of devices as long as there is no devicechange event. devicechange events only fire when page has focus.
enumerateDevices can still be used on an iframe being reloaded every 1 second to gather the exact number of devices since [storedDeviceList] is initially null.

As per the spec, if the origin was granted once device access (say for a funny hat cool game), any page of that origin will be able to monitor in near realtime the exact list of devices including labels.

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

Received on Thursday, 24 January 2019 04:54:55 UTC