[mediacapture-main] MediaDeviceInfo.label and groupId are unnecessarily nullable

jan-ivar has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== MediaDeviceInfo.label and groupId are unnecessarily nullable ==
[The 
spec](http://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-MediaDeviceInfo)
 lists MediaDeviceInfo.label and groupId as nullable:

    interface MediaDeviceInfo {
        readonly    attribute DOMString       deviceId;
        readonly    attribute MediaDeviceKind kind;
        readonly    attribute DOMString?      label;
        readonly    attribute DOMString?      groupId;
    };

But the enumerateDevices algorithm never ever returns null for these 
(instead it returns empty string). Even the description of label says 
it returns empty string, so we should remove nullable here.

See https://github.com/w3c/mediacapture-main/issues/141

Received on Saturday, 21 February 2015 04:50:44 UTC