[Bug 22355] New: Create NavigatoreUserMediaError object with name attribute as appropriate before queuing error callback

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22355

            Bug ID: 22355
           Summary: Create NavigatoreUserMediaError object with name
                    attribute as appropriate before queuing error callback
    Classification: Unclassified
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Capture and Streams
          Assignee: public-media-capture@w3.org
          Reporter: frederick.hirsch@nokia.com
                CC: public-media-capture@w3.org

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.

]]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Thursday, 13 June 2013 19:55:43 UTC