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 25793 - Make facingMode a DOMString for now to avoid throwing on future facingModes
Summary: Make facingMode a DOMString for now to avoid throwing on future facingModes
Status: RESOLVED DUPLICATE of bug 25298
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Dan Burnett
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-19 04:57 UTC by Jan-Ivar Bruaroey [:jib]
Modified: 2014-07-02 11:12 UTC (History)
2 users (show)

See Also:


Attachments

Description Jan-Ivar Bruaroey [:jib] 2014-05-19 04:57:44 UTC
Enums inside a dictionary throw - See bug 25298 comment 13 - which means we can't add more facingModes in the future (without breaking old browsers).

A workaround would be to make it a DOMString and only allude to it being an enum-like.
Comment 1 Jan-Ivar Bruaroey [:jib] 2014-05-19 05:04:57 UTC
This may apply to other enums as well.
Comment 2 Harald Alvestrand 2014-07-01 09:14:34 UTC
This seems sad, but necessary. Assigning for editing.

The enum should be kept in the spec, and the argument should be a ConstrainDOMString, with a comment saying "legal values are from the enum".
Comment 3 Jan-Ivar Bruaroey [:jib] 2014-07-01 16:03:26 UTC
I think this is covered by the pull request in Bug 25298 Comment 20. I suggest closing this bug as a dup of that one.
Comment 4 Harald Alvestrand 2014-07-01 18:36:14 UTC
Agree with Jan-Ivar.

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