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 26829 - MediaKeys.create()'s spec mentions an unassociated media element
Summary: MediaKeys.create()'s spec mentions an unassociated media element
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Encrypted Media Extensions (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: David Dorwin
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 04:50 UTC by Chris Pearce
Modified: 2014-09-19 16:34 UTC (History)
3 users (show)

See Also:


Attachments

Description Chris Pearce 2014-09-17 04:50:21 UTC
Step 3 of the MediaKeys.create() function's specification [https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-create] says:

"If keySystem is not supported or not allowed on the origin of the media element's Document, return a promise rejected with a new DOMException whose name is "NotSupportedError"."

This mentions a media element, but the MediaKeys is not yet associated with a media element at this stage; the MediaKeys object does not even exist yet!

Perhaps that should be:

"If keySystem is not supported or not allowed in the origin of calling context's Document..."
Comment 1 David Dorwin 2014-09-19 16:34:16 UTC
Thanks for the report and suggestion. https://dvcs.w3.org/hg/html-media/rev/d4cd783f02b3 changes it to:

If keySystem is not supported or not allowed in the origin of the calling context's Document, return a promise rejected with a new DOMException whose name is "NotSupportedError".