Closed Bug 1233274 Opened 9 years ago Closed 9 years ago

[EME] Don't shutdown detached MediaKeys

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Chrome doesn't shutdown a MediaKeys object which is attached to an HTMLMediaElement when a new MediaKeys is set on said HTMLMediaElement.

See attached testcase; we reject the MediaKeySession.generateRequest promise, Chrome does not.

Note the spec gives us wiggle room to choose what to do here. I think we should try to match Chrome and not shutdown the MediaKeys.
I note that Chrome refuses to allow the MediaKeys to be reset if its already loaded a resource in the media element.
We can basically take this opportunity to update our HTMLMediaElement.setMediaKeys() implementation to match the current spec:
http://www.w3.org/TR/encrypted-media/#widl-HTMLMediaElement-setMediaKeys-Promise-void--MediaKeys-mediaKeys
Assignee: nobody → cpearce
Comment on attachment 8704410 [details]
MozReview Request: Bug 1233274 - Don't shutdown detached MediaKeys. r?gerald

https://reviewboard.mozilla.org/r/29659/#review26479

r+ after typo is fixed:

::: dom/media/test/test_eme_detach_media_keys.html:38
(Diff revision 1)
> +// after the second MediaKeys has been se on the media element.

"se" -> "set"
Attachment #8704410 - Flags: review?(gsquelart) → review+
https://hg.mozilla.org/mozilla-central/rev/ef39bda60d33
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: