Re: [mediacapture-main] Racy devicechange event design has poor interoperability (#972)

The spec says a few things:
- The [User Agent](https://w3c.github.io/mediacapture-main/#dfn-user-agent) MAY combine firing multiple events into firing one event when several events are due or when multiple devices are added or removed at the same time, e.g. a camera with a microphone.
- These events are potentially triggered simultaneously on documents of different origins. [User Agents](https://w3c.github.io/mediacapture-main/#dfn-user-agent) MAY add fuzzing on the timing of events to avoid cross-origin activity correlation.(This is a fingerprinting vector.)

It seems hard to fix all races and have consistency between implementations.
If what we are after is allowing web pages to know that a device was inserted, exposing this information without relying on web page enumerateDevices()-based computation will probably give more interoperable results. It will also make web developer's life easier.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/972#issuecomment-1738757090 using your GitHub account


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

Received on Thursday, 28 September 2023 09:05:10 UTC