[mediacapture-main] List-devices permission seems wrong for ondevicechanged (after edits).

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

== List-devices permission seems wrong for ondevicechanged (after 
edits). ==
We're working on `ondevicechange` and trying to figure out 
*list-devices*, also used for labels. Back [in 
February](https://w3c.github.io/mediacapture-main/archives/20160222/getusermedia.html#dom-mediadevices-enumeratedevices)
 we had: **show labels = persistent gum permission OR active gum**.

Then an [editorial 
change](https://github.com/w3c/mediacapture-main/commit/aadf65a4c9e9dcaeb529f1fecd46a28fc35f37b7#diff-ea76d38900f79cfae8f60e5f7cf16dd1R2343)
 outsourced it:

  **list-devices = persistent gum permission OR active gum**
  **show label = list-devices**

Then, a [subsequent editorial 
change](https://github.com/w3c/mediacapture-main/commit/049fd00f87f9ed39a642826fb3ae521cf0e49bb2#diff-ea76d38900f79cfae8f60e5f7cf16dd1R2344)
 swapped that with:

  **list-devices = persistent gum permission**
  **show label = list-devices OR active gum**

Effectively, ***OR active gum*** was taken out of ***list-devices***, 
changing its (absent) definition.

Confusingly, we then met and [agreed 
to](https://github.com/w3c/mediacapture-main/commit/23a07add4f536ae595a88ccffa76f33757a77423)
 **ondevicechange = list-devices**.

But now **ondevicechange != show labels**, which is not OK, because 
during an active gum call in Firefox, we want JS to receive 
`ondevicechange`.

Also, why have a *list-devices* permission separate from *persistent 
gum permission*? We mostly talk about the latter, and never say how 
the former is set or acts. Unless one tracks the other, it's also a 
behavioral change compared to what we had before.

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

Received on Friday, 8 July 2016 02:41:14 UTC