[mediacapture-main] devicechange should fire when enumerateDevices works (#842)

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

== devicechange should fire when enumerateDevices works ==
[enumerateDevices()](https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-enumeratedevices) says the _"User Agent MAY wait to proceed to the next step until document is fully active and has focus"_, but [devicechange](https://w3c.github.io/mediacapture-main/getusermedia.html#dfn-device-change-notification-steps) doesn't.

The point of the event is to alert JS to call enumerateDevices, so firing it when the method will just block seems pointless.

Moving the _MAY_ into the [device enumeration can proceed](https://w3c.github.io/mediacapture-main/getusermedia.html#device-enumeration-can-proceed) algorithm should fix this.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 17 December 2021 18:55:26 UTC