This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22355 - Create NavigatoreUserMediaError object with name attribute as appropriate before queuing error callback
Summary: Create NavigatoreUserMediaError object with name attribute as appropriate bef...
Status: RESOLVED DUPLICATE of bug 22250
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-13 19:55 UTC by Frederick Hirsch
Modified: 2013-06-14 08:58 UTC (History)
2 users (show)

See Also:


Attachments

Description Frederick Hirsch 2013-06-13 19:55:41 UTC
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

"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."

to

"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."

(2) Change 7.3.1 and 7.3.3  in section 11.1.1 from

"and then jump to the step labeled failure below"

to

"and then queue a task to invoke errorCallback with error as its argument."

(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.

]]
Comment 1 Dominique Hazael-Massieux 2013-06-14 08:58:20 UTC

*** This bug has been marked as a duplicate of bug 22250 ***