Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.MediaDevices.enumerateDevices - Firefox needs the page running the code to be in system #21106

Open
netizen-ais opened this issue Oct 27, 2023 · 0 comments
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@netizen-ais
Copy link

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

Firefox does check that the page running the code is in system focus (not clear in the spec).

This should at least be noticed in the browser compatibility table

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

The spec isn't clear about this requirement. Other engines return the Promise resolved with the data

Did you test this? If so, how?

  • Open a blank page
  • Open developer tools
  • Detach developer tools to another window
  • Go to the console
  • Run await navigator.mediaDevices.enumerateDevices()

Chrome will return the data, Firefox will return the data when the main page/window (blank page) is clicked

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

Discussion at bugzilla

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices

MDN metadata

MDN page report details
  • Query: api.MediaDevices.enumerateDevices
  • Report started: 2023-10-27T10:55:03.966Z
@queengooborg queengooborg added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants
@netizen-ais @queengooborg and others