Skip to content

Add Firefox enumerateDevices focus note - #30365

Open
pttydou wants to merge 1 commit into
mdn:mainfrom
pttydou:fix/21106-enumerate-devices-focus-note
Open

Add Firefox enumerateDevices focus note#30365
pttydou wants to merge 1 commit into
mdn:mainfrom
pttydou:fix/21106-enumerate-devices-focus-note

Conversation

@pttydou

@pttydou pttydou commented Aug 29, 2026

Copy link
Copy Markdown

Summary

Adds a Firefox note that enumerateDevices() only resolves when the document has system focus.

Test results and supporting details

  • node lint/lint.js api/MediaDevices.json
  • node node_modules/prettier/bin/prettier.cjs --check api/MediaDevices.json
  • node node_modules/typescript/bin/tsc --noEmit
  • node --test --test-reporter=spec --test-isolation=none lint/linter/test-notes.test.js
  • Mozilla bug 1818588

Related issues

Fixes #21106

@github-actions github-actions Bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:xs [PR only] 0-6 LoC changed labels Aug 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Comment thread api/MediaDevices.json
"notes": "`enumerateDevices()` enumerates both input and output devices. Previously only input devices were returned."
"notes": [
"`enumerateDevices()` enumerates both input and output devices. Previously only input devices were returned.",
"The promise returned by `enumerateDevices()` only resolves when the document has system focus. See [bug 1818588](https://bugzil.la/1818588)."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what "system focus" means vs. just "focus". What do you think?

Suggested change
"The promise returned by `enumerateDevices()` only resolves when the document has system focus. See [bug 1818588](https://bugzil.la/1818588)."
"The promise returned by `enumerateDevices()` only resolves when the document has focus. See [bug 1818588](https://bugzil.la/1818588)."

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 size:xs [PR only] 0-6 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants