Bug 194401 - getUserMedia should return NotFoundError if there is no capture device
Summary: getUserMedia should return NotFoundError if there is no capture device
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-07 10:46 PST by youenn fablet
Modified: 2019-02-07 10:47 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2019-02-07 10:46:53 PST
Currently, we return an OverConstrainedError.
Note that doing so prevents some fingerprinting which could allow to silently detect the absence of capture device.
But doing something like getUserMedia({video: true}) should return NotFoundError if there is no camera.
Comment 1 Radar WebKit Bug Importer 2019-02-07 10:47:28 PST
<rdar://problem/47889066>