<?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>22355</bug_id>
          
          <creation_ts>2013-06-13 19:55:41 +0000</creation_ts>
          <short_desc>Create NavigatoreUserMediaError object with name attribute as appropriate before queuing error callback</short_desc>
          <delta_ts>2013-06-14 08:58:20 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22250</dup_id>
          
          <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="Frederick Hirsch">w3c</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>dom</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89276</commentid>
    <comment_count>0</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2013-06-13 19:55:41 +0000</bug_when>
    <thetext>In Section 11.1.1 , failure: will not always be PERMISSION_DENIED, it can also be CONSTRAINT_NOT_SATISFIED.  The text reason should be the text attribute of the NavigatorUserMediaError object which should be consistently created before invoking the error callback. In addition, eliminate the goto and target and simply queue the error callback as appropriate.

Proposed change:

(1) Change 2nd bullet in section 11.1.1 from

&quot;Optionally, e.g., based on a previously-established user preference, for security reasons, or due to platform limitations, jump to the step labeled failure below.&quot;

to

&quot;Optionally, e.g., based on a previously-established user preference, for security reasons, or due to platform limitations,   create a new NavigatorUserMediaError object whose name attribute has the value PERMISSION_DENIED and then queue a task to invoke errorCallback with error as its argument.&quot;

(2) Change 7.3.1 and 7.3.3  in section 11.1.1 from

&quot;and then jump to the step labeled failure below&quot;

to

&quot;and then queue a task to invoke errorCallback with error as its argument.&quot;

(3) Remove the entire failure: goto target. Specifically, remove the following:

[[
Failure:

Let error be a new NavigatorUserMediaError object whose name attribute has the value PERMISSION_DENIED.

Queue a task to invoke errorCallback with error as its argument.

]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89303</commentid>
    <comment_count>1</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-06-14 08:58:20 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 22250 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>