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: Fri, 28 Oct 2022 07:49:09 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1294620741-1666943347-sysbot+gh@w3.org>
> if we can make this work:

> With that fixed, there is no race possible, because the check is done synchronously.

Thanks! I would recommend adding an explicit guideline note in the spec to hint implementors to realize that this synchronicity is explicitly depended on - so that no implementations will be doing other things under the "as-if" rule.

That is because there are likely no unit test suites that can be written to verify that a browser works explicitly under that API contract(?)

We are cautious  to start relying on the above, just to realize that we'd then get a small % of users hanging the page loads on background in practice when they open a page and then immediately navigate away, if some browser is doing something else under the "as-if" rule.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 28 October 2022 07:49:10 UTC

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