Closed Bug 1611998 Opened 5 years ago Closed 5 years ago

navigator.mediaDevices.enumerateDevices() fails to get video sources after a fresh FF andriod install

Categories

(GeckoView :: Media, defect)

68 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: michael.whittemore, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Steps to reproduce:

On Android, uninstall then reinstall Firefox. Then go to this codepen https://codepen.io/michaelwhittemore/pen/LYEaLjr. You should notice that only one enumerated device is listed (the audio input). However, if you then make call to navigator.mediaDevices.getUserMedia ({video:true,audio:true}) by clicking on the "try video and audio capture" button you will be prompted for both camera and microphone access. Upon refreshing the page, three enumerated devices will be listed as expected.

Actual results:

On a fresh Android Firefox installation, enumerateDevices fails to get video input devices. After requesting video with getUserMedia, enumerateDevices behaves correctly.

Expected results:

The call to enmuerateDevices should have returned the correct number of devices the first time.

Product: Firefox for Android → GeckoView
Version: Firefox 68 → 68 Branch

I think this is working as expected. We intentionally made enumerateDevices() not prompt for camera access and return camera devices due to fingerprinting issues. See bug 1450762.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX

Moving some media bugs to the new GeckoView::Media component.

Component: General → Media
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: