Bug 177126 - getUserMedia fails with an OverConstrainedError when no devices are found
Summary: getUserMedia fails with an OverConstrainedError when no devices are found
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari Technology Preview
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-19 01:01 PDT by Trond Kjetil Bremnes
Modified: 2017-09-19 09:25 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Kjetil Bremnes 2017-09-19 01:01:54 PDT
If no devices are detected (MediaDevices.enumerateDevices responds with an empty array), the MediaDevices.getUserMedia fails with a OverConstrainedError.

This can happen if the webcam for some reason fails (happens from time to time on MacOS), or always in the case of the iOS Simulator.

According to the specs, it should have failed with a NotFoundError – OverConstrainedError should happen when the available devices are not able to fulfill the constraints set (e.g. resolution).
Comment 1 youenn fablet 2017-09-19 08:30:41 PDT
I wonder whether there is a fingerprinting issue here, probably not big in practice.
Comment 2 Radar WebKit Bug Importer 2017-09-19 09:25:47 PDT
<rdar://problem/34518610>