This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25900 - [EME] MediaKeys.loadSession(sessionId) should specify what happens if a loaded sessionId is passed
Summary: [EME] MediaKeys.loadSession(sessionId) should specify what happens if a loade...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Encrypted Media Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: David Dorwin
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-28 01:09 UTC by Chris Pearce
Modified: 2014-06-13 22:13 UTC (History)
4 users (show)

See Also:


Attachments

Description Chris Pearce 2014-05-28 01:09:10 UTC
MediaKeys.loadSession(sessionId) does not specify what happens if a loaded sessionId is passed in. I'm guess we should either return the already loaded session's MediaKeySession object, or return a rejected promise.
Comment 1 David Dorwin 2014-05-29 21:40:37 UTC
We may want to resolve the promise with null, as happens when createSession() is called with Initialization Data matching an existing session.
Comment 2 David Dorwin 2014-06-13 22:13:56 UTC
Fixed in https://dvcs.w3.org/hg/html-media/rev/85aebacf35c8. null is returned like in the createSession() case.