[Bug 23619] Change MediaKeyError to extend DOMError and use strings for error names

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

--- Comment #8 from David Dorwin <ddorwin@google.com> ---
I implemented this change in changeset
https://dvcs.w3.org/hg/html-media/rev/953628e21b0a.

However, if systemCode is mainly for debugging and/or logging, I wonder if we
should just allow implementations to write a string containing the system code
to DOMError's message attribute^. That would allow us to eliminate
MediaKeyError and use DOMError directly, which is probably more desirable.

The only loss is that the logging would now be a string (or number parsed from
a string). Key system could even choose to use a standard string that makes
parsing simple and consistent

^ http://www.w3.org/TR/dom/#dom-domerror-message says "The value of the message
will typically be implementation-dependent and for informational purposes
only."

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

Received on Tuesday, 28 January 2014 01:48:40 UTC