@@ -159,7 +159,7 @@ <h2>Feature Policy Integration</h2>
159159 < h2 > Extensions to the < dfn > Navigator</ dfn > interface</ h2 >
160160
161161 < pre class ="idl ">
162- partial interface Navigator {
162+ [SecureContext] partial interface Navigator {
163163 Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
164164 };
165165 </ pre >
@@ -335,7 +335,7 @@ <h2 id="MIDIAccess"><dfn>MIDIAccess</dfn> Interface</h2>
335335 < p > This interface provides the methods to list MIDI input and output
336336 devices, and obtain access to an individual device.</ p >
337337 < pre class ="idl ">
338- interface MIDIAccess: EventTarget {
338+ [SecureContext] interface MIDIAccess: EventTarget {
339339 readonly attribute MIDIInputMap inputs;
340340 readonly attribute MIDIOutputMap outputs;
341341 attribute EventHandler onstatechange;
@@ -377,7 +377,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
377377
378378 < p > This interface represents a MIDI input or output port.</ p >
379379 < pre class ="idl ">
380- interface MIDIPort: EventTarget {
380+ [SecureContext] interface MIDIPort: EventTarget {
381381 readonly attribute DOMString id;
382382 readonly attribute DOMString? manufacturer;
383383 readonly attribute DOMString? name;
@@ -653,7 +653,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
653653 < section data-dfn-for ="MIDIInput ">
654654 < h3 id ="MIDIInput "> < dfn > MIDIInput</ dfn > Interface</ h3 >
655655 < pre class ="idl ">
656- interface MIDIInput: MIDIPort {
656+ [SecureContext] interface MIDIInput: MIDIPort {
657657 attribute EventHandler onmidimessage;
658658 };
659659 </ pre >
@@ -713,7 +713,7 @@ <h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
713713 < section data-dfn-for ="MIDIOutput ">
714714 < h3 id ="MIDIOutput "> < dfn > MIDIOutput</ dfn > Interface</ h3 >
715715 < pre class ="idl ">
716- interface MIDIOutput : MIDIPort {
716+ [SecureContext] interface MIDIOutput : MIDIPort {
717717 void send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
718718 void clear();
719719 };
@@ -832,7 +832,7 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
832832 < h2 id ="MIDIMessageEvent "> < dfn > MIDIMessageEvent</ dfn > Interface</ h2 >
833833 < p > An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM < a > Event</ a > < code > timeStamp</ code > attribute is defined as a < a > DOMHighResTimeStamp</ a > , and represents the high-resolution time of when the event was received or is to be sent.</ p >
834834 < pre class ="idl ">
835- [Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
835+ [SecureContext] [ Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
836836 interface MIDIMessageEvent: Event {
837837 readonly attribute Uint8Array data;
838838 };
@@ -887,7 +887,7 @@ <h2 id="MIDIConnectionEvent"><dfn>MIDIConnectionEvent</dfn> Interface</h2>
887887 for new devices infrequently. As such, it is suggested that heavy
888888 reliance on connection events not be used.</ p >
889889 < pre class ="idl ">
890- [Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
890+ [SecureContext] [ Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
891891 interface MIDIConnectionEvent: Event {
892892 readonly attribute MIDIPort port;
893893 };
0 commit comments