W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > October 2022

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

From: juj via GitHub <sysbot+gh@w3.org>
Date: Thu, 06 Oct 2022 08:33:57 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1269585568-1665045234-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:59 UTC