Files
camoufox/docs
Jake WriterandClaude Opus 5 80c47c54c7 fix(media): enumerate, capture and label the identity's media devices coherently
The fake media engine now enumerates the identity's microphones, cameras and
speakers (labels and group ids from new mediaDevices:*Labels/*Groups config
keys), MediaManager uses it whenever mediaDevices:enabled, and stock exposure
rules apply: before a grant one device per input kind, no outputs, no labels;
after a grant OS-style labels, distinct deviceIds, shared groupIds. So
enumerateDevices(), getUserMedia() tracks and getSettings() ids agree, and a
claimed camera captures instead of throwing NotFoundError. Fixes the
content-process crash on an identity with a camera and no microphone
(InsertElementAt on an empty array). docs/MEDIA-DEVICES.md; guard
tests/patches/media-devices-coherence.py.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 22:08:33 -06:00
..