- From: <bugzilla@jessica.w3.org>
- Date: Thu, 30 May 2013 15:04:16 +0000
- To: public-media-capture@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22216
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
conditions.
--
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