Closed Bug 1304249 Opened 9 years ago Closed 9 years ago

[EME] Implement MediaKeySession.onkeystatuseschange

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: cpearce, Unassigned)

References

()

Details

Attachments

(1 file)

This Web Platform test is failing because we don't implement MediaKeySession.onkeystatuseschange: https://w3c-test.org/encrypted-media/idlharness.html Should be an easy fix.
Priority: -- → P3
Summary: Implement MediaKeySession.onkeystatuseschange → [EME] Implement MediaKeySession.onkeystatuseschange
Comment on attachment 8793143 [details] Bug 1304249 - Implement MediaKeySession.onkeystatuseschange. https://reviewboard.mozilla.org/r/79930/#review78766 ::: dom/media/eme/MediaKeySession.cpp:495 (Diff revision 1) > + return elm ? elm->GetEventHandler(nsGkAtoms::onkeystatuseschange, EmptyString()) > + : nullptr; > +} > + > +void > +MediaKeySession::SetOnkeystatuseschange(EventHandlerNonNull* handler) aHandler or aCallback ::: dom/media/eme/MediaKeySession.cpp:499 (Diff revision 1) > +void > +MediaKeySession::SetOnkeystatuseschange(EventHandlerNonNull* handler) > +{ > + EventListenerManager *elm = GetOrCreateListenerManager(); > + if (elm) { > + elm->SetEventHandler(nsGkAtoms::onkeystatuseschange, EmptyString(), handler); As I mentioned in the other bug, Get/SetEventHandler is handy for this case.
Comment on attachment 8793143 [details] Bug 1304249 - Implement MediaKeySession.onkeystatuseschange. https://reviewboard.mozilla.org/r/79930/#review78768
Attachment #8793143 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: