Re: [mediacapture-main] Why does `navigator.mediaDevices.enumerateDevices()` require that `Document` must have active keyboard focus? (#905)

The previous discussion states e.g. `Firefox has this behavior as well. Turning on camera/mic from a background tab is creepy.`

However that does not seem to be accurate in the scope of the question of this ticket: definitely agree that camera/mic should only be possible to turn on from the currently visible tab.

Though `navigator.mediaDevices.enumerateDevices()` does not turn on a device, it just returns information. Further, the information is already anonymized to avoid finger-printing beyond a binary "does a webcam exist or not" information, iiuc.

So after reading the above tickets, the same questions do still remain:
 - could `navigator.mediaDevices.enumerateDevices()` be allowed to progress on the background so that page loading progress is not risked, and/or require separate watchdogs to guess when the Promise won't be coming back any time soon?
 - if not, could the Promise be specced to acquire a form, e.g. `navigator.mediaDevices.enumerateDevices({rejectIfUnavailable: true});` that would immediately reject if now is not a suitable time to perform such a query?


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


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

Received on Thursday, 6 October 2022 08:33:59 UTC