Closed Bug 1304604 Opened 8 years ago Closed 8 years ago

[EME] Clean up HTMLMediaElement.onencrypted

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: cpearce, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The comments made in reviews of bug 1304250 and friends also apply to the implementation of HTMLMediaElement.onencrypted.

That is, we can just use EventTarget::{Get,Set}EventHandler() in HTMLMediaElement::{Get,Set}Onencrypted, and its parameter should be aCallback.
Comment on attachment 8793610 [details]
Bug 1304604 - Use EventTarget to simplyfy HTMLMediaElement.onencrypted implementation.

https://reviewboard.mozilla.org/r/80322/#review79024
Attachment #8793610 - Flags: review?(bugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6014b4e1bb361ad117525d26ea6577dd9c09789
Bug 1304604 - Use EventTarget to simplyfy HTMLMediaElement.onencrypted implementation. r=smaug
https://hg.mozilla.org/mozilla-central/rev/e6014b4e1bb3
Status: NEW → RESOLVED
Closed: 8 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: