[Bug 23619] Drop or change MediaKeyError constant prefix

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

Adrian Bateman [MSFT] <adrianba@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW

--- Comment #4 from Adrian Bateman [MSFT] <adrianba@microsoft.com> ---
(In reply to David Dorwin from comment #2)
> Philip: Thanks for the suggestion. Can you point us to an example of an API
> using enum strings for errors?
> 
> In the October 29 telecon, Adrian took an action to make a proposal.
> 
> We probably shouldn't make an actual spec change until we know the actual
> codes we want (bug 21798).

I think the proposal is to change

  interface MediaKeyError {
    const unsigned short MEDIA_KEYERR_UNKNOWN = 1;
    const unsigned short MEDIA_KEYERR_CLIENT = 2;
    const unsigned short MEDIA_KEYERR_SERVICE = 3;
    const unsigned short MEDIA_KEYERR_OUTPUT = 4;
    const unsigned short MEDIA_KEYERR_HARDWARECHANGE = 5;
    const unsigned short MEDIA_KEYERR_DOMAIN = 6;
    readonly attribute unsigned short code;
    readonly attribute unsigned long systemCode;
  };

to

  enum MediaKeyErrorCode { "unknown", "client", "service", "output",
"hardware-change", "domain" };

  interface MediaKeyError {
    readonly attribute MediaKeyErrorCode code;
    readonly attribute unsigned long systemCode;
  };

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 11 November 2013 10:07:47 UTC