W3C home > Mailing lists > Public > public-media-capture@w3.org > May 2013

[Bug 22216] New: NavigatorUserMediaError should inherit from DOMError

From: <bugzilla@jessica.w3.org>
Date: Thu, 30 May 2013 15:04:16 +0000
To: public-media-capture@w3.org
Message-ID: <bug-22216-5753@http.www.w3.org/Bugs/Public/>

            Bug ID: 22216
           Summary: NavigatorUserMediaError should inherit from DOMError
    Classification: Unclassified
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Capture and Streams
          Assignee: public-media-capture@w3.org
          Reporter: dom@w3.org
                CC: public-media-capture@w3.org

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 "PermissionDenied" and "ConstraintNotSatisfied".

I don't think these values should be defined as an enum — that doesn't bring us
anything, and it doesn't align with what the DOM spec does (nor other APIs
AFAICT); instead, the prose should simply say which errors get raised in what

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, 30 May 2013 15:04:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:17 UTC