<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>177126</bug_id>
          
          <creation_ts>2017-09-19 01:01:54 -0700</creation_ts>
          <short_desc>getUserMedia fails with an OverConstrainedError when no devices are found</short_desc>
          <delta_ts>2017-09-19 09:25:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trond Kjetil Bremnes">tkbremnes</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1350269</commentid>
    <comment_count>0</comment_count>
    <who name="Trond Kjetil Bremnes">tkbremnes</who>
    <bug_when>2017-09-19 01:01:54 -0700</bug_when>
    <thetext>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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1350311</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2017-09-19 08:30:41 -0700</bug_when>
    <thetext>I wonder whether there is a fingerprinting issue here, probably not big in practice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1350340</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-09-19 09:25:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/34518610&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>