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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22216</bug_id>
          
          <creation_ts>2013-05-30 15:04:16 +0000</creation_ts>
          <short_desc>NavigatorUserMediaError should inherit from DOMError</short_desc>
          <delta_ts>2013-08-27 08:55:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Media Capture and Streams</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Hazael-Massieux">dom</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>harald</cc>
    
    <cc>paul.neave</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88453</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-05-30 15:04:16 +0000</bug_when>
    <thetext>Based on my understanding of our discussions on error handling, NavigatorUserMediaError should inherit from DOMError to use the behavior of the object as defined in the DOM spec.

Also, I think the names of errors in DOMError are camel-cased rather than uppercase (uppercase names were used to define constants matching integer values assigned to the deprecated code attribute); so the errors for getUserMedia should be &quot;PermissionDenied&quot; and &quot;ConstraintNotSatisfied&quot;.

I don&apos;t think these values should be defined as an enum — that doesn&apos;t bring us anything, and it doesn&apos;t align with what the DOM spec does (nor other APIs AFAICT); instead, the prose should simply say which errors get raised in what conditions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92420</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2013-08-21 13:50:33 +0000</bug_when>
    <thetext>It looks as though DOMError is being dropped in favor of DOMException: http://dom.spec.whatwg.org/#domerror

How does this impact NavigatorUserMediaError?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92625</commentid>
    <comment_count>2</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-08-27 08:55:22 +0000</bug_when>
    <thetext>Resolved in 20130824 version of MediaCapture.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>