Bugzilla – Bug 18928
Update examples to use addEventListener instead of onkeyadded, onkeymessage, and onkeyerror
Last modified: 2013-05-03 15:52:40 UTC
The Examples in section 8 add event handlers to MediaKeySession objects by setting its onkeymessage and onkeyerror attributes, but these are not listed in the MediaKeySession IDL. Please consider adding and documenting these attributes.
Since these objects are not defined declaratively, I believe using addEventListener is sufficient and we shouldn't also need to support attributes. Propose WONTFIX.
If that's the case, the example sections will all need to be rewritten, so as not to cause confusion.
*** Bug 19622 has been marked as a duplicate of this bug. ***
*** Bug 19624 has been marked as a duplicate of this bug. ***
*** Bug 19625 has been marked as a duplicate of this bug. ***
Updating the Summary to match our intent.