[EME] Bug 25901 - HTMLMediaElement.mediaKeys should be nullable
authorDavid Dorwin <ddorwin@google.com>
Thu, 12 Jun 2014 10:44:53 -0700
changeset 339 6b2c3622f578
parent 338 1168ceaa1fbc
child 340 4edf0ef324dd
[EME] Bug 25901 - HTMLMediaElement.mediaKeys should be nullable
encrypted-media/encrypted-media.html
encrypted-media/encrypted-media.xml
--- a/encrypted-media/encrypted-media.html	Thu Jun 12 10:43:20 2014 -0700
+++ b/encrypted-media/encrypted-media.html	Thu Jun 12 10:44:53 2014 -0700
@@ -336,7 +336,7 @@
 enum <dfn id="dom-mediawaitingfor">MediaWaitingFor</dfn> { "<dfn id="dom-waitingfornone">none</dfn>", "<dfn id="dom-waitingfordata">data</dfn>", "<dfn id="dom-waitingforkey">key</dfn>" };
 partial interface <dfn id="dom-htmlmediaelement">HTMLMediaElement</dfn> {
   // Encrypted Media
-  readonly attribute <a href="#dom-mediakeys">MediaKeys</a> <a href="#dom-attrmediakeys">mediaKeys</a>;
+  readonly attribute <a href="#dom-mediakeys">MediaKeys</a>? <a href="#dom-attrmediakeys">mediaKeys</a>;
   Promise&lt;any&gt; <a href="#dom-setmediakeys">setMediaKeys</a>(<a href="#dom-mediakeys">MediaKeys</a>? mediaKeys);
   
   attribute <a href="http://www.w3.org/TR/html5/webappapis.html#eventhandler">EventHandler</a> <a href="#dom-onneedkey">onneedkey</a>;
--- a/encrypted-media/encrypted-media.xml	Thu Jun 12 10:43:20 2014 -0700
+++ b/encrypted-media/encrypted-media.xml	Thu Jun 12 10:44:53 2014 -0700
@@ -333,7 +333,7 @@
 enum <precodedfn>MediaWaitingFor</precodedfn> { "<precodedfn prefix="waitingfor">none</precodedfn>", "<precodedfn prefix="waitingfor">data</precodedfn>", "<precodedfn prefix="waitingfor">key</precodedfn>" };
 partial interface <precodedfn>HTMLMediaElement</precodedfn> {
   // Encrypted Media
-  readonly attribute <precoderef>MediaKeys</precoderef> <precoderef prefix="attr">mediaKeys</precoderef>;
+  readonly attribute <precoderef>MediaKeys</precoderef>? <precoderef prefix="attr">mediaKeys</precoderef>;
   Promise&lt;any&gt; <premethodref>setMediaKeys</premethodref>(<precoderef>MediaKeys</precoderef>? mediaKeys);
   
   attribute <EventHandler/> <precoderef>onneedkey</precoderef>;