[Bug 26776] Diagnosing and resolving CDM errors needs a numeric systemCode (deleted with MediaKeyError)

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

Chris Pearce <cpearce@mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #17 from Chris Pearce <cpearce@mozilla.com> ---
(In reply to David Dorwin from comment #16)
> At the last meeting, Jerry said he would add a proposal (for an attribute)
> to this bug [1].
> [1] http://www.w3.org/2014/12/16-html-media-minutes.html#item07

A proposal for an attribute seems sub-optimal, as if there are multiple errors
to be reported by the CDM, only the last can be reported, which could result in
un-observed error codes being overwritten by subsequent errors.

Why can't we just subclass something other than DOMException with a systemCode
attribute? Like Error. How about:

interface MediaKeyError : Error {
  readonly attribute unsigned long systemCode;
  readonly attribute DOMString message;
};

If we can't subclass Error, then how about Event?

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

Received on Tuesday, 13 January 2015 21:51:25 UTC