<?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>180777</bug_id>
          
          <creation_ts>2017-12-13 15:59:39 -0800</creation_ts>
          <short_desc>getUserMedia errors have incorrect name property</short_desc>
          <delta_ts>2022-08-29 03:28:16 -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>Media</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aiham Hammami">aiham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adam</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>oscar</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1381341</commentid>
    <comment_count>0</comment_count>
    <who name="Aiham Hammami">aiham</who>
    <bug_when>2017-12-13 15:59:39 -0800</bug_when>
    <thetext>Steps:

1. Run: navigator.mediaDevices.getUserMedia({ video: { width: { exact: 123123123 } } }).catch(err =&gt; console.error(err.name))

Expected:

- &quot;OverconstrainedError&quot; is logged to console (based on https://www.w3.org/TR/mediacapture-streams/#overconstrainederror.prototype.name)

Actual

- &quot;Error&quot; is logged to console.


This works as expected in Firefox 57 and Chrome 64.
Currently to determine if its an OverconstrainedError you have to use `err instanceof window.OverconstrainedError` or `Object.prototype.toString.call(err)` which are suboptimal and non-standard.
This probably also applies to other types of errors returned by getUserMedia but I haven&apos;t confirmed them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894465</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-29 03:28:05 -0700</bug_when>
    <thetext>I am unable to reproduce this error in Safari Technology Preview 152 on macOS 12.5.1 and when running from Console, it shows:

OverconstrainedError - which is expected result.

I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Please reopen, if you think this is still an issue. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>