@@ -160,7 +160,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
160
160
161
161
< pre class ="idl ">
162
162
partial interface Navigator {
163
- Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
163
+ [SecureContext] Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
164
164
};
165
165
</ pre >
166
166
< dl >
@@ -335,7 +335,7 @@ <h2 id="MIDIAccess"><dfn>MIDIAccess</dfn> Interface</h2>
335
335
< p > This interface provides the methods to list MIDI input and output
336
336
devices, and obtain access to an individual device.</ p >
337
337
< pre class ="idl ">
338
- interface MIDIAccess: EventTarget {
338
+ [SecureContext] interface MIDIAccess: EventTarget {
339
339
readonly attribute MIDIInputMap inputs;
340
340
readonly attribute MIDIOutputMap outputs;
341
341
attribute EventHandler onstatechange;
@@ -377,7 +377,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
377
377
378
378
< p > This interface represents a MIDI input or output port.</ p >
379
379
< pre class ="idl ">
380
- interface MIDIPort: EventTarget {
380
+ [SecureContext] interface MIDIPort: EventTarget {
381
381
readonly attribute DOMString id;
382
382
readonly attribute DOMString? manufacturer;
383
383
readonly attribute DOMString? name;
@@ -653,7 +653,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
653
653
< section data-dfn-for ="MIDIInput ">
654
654
< h3 id ="MIDIInput "> < dfn > MIDIInput</ dfn > Interface</ h3 >
655
655
< pre class ="idl ">
656
- interface MIDIInput: MIDIPort {
656
+ [SecureContext] interface MIDIInput: MIDIPort {
657
657
attribute EventHandler onmidimessage;
658
658
};
659
659
</ pre >
@@ -713,7 +713,7 @@ <h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
713
713
< section data-dfn-for ="MIDIOutput ">
714
714
< h3 id ="MIDIOutput "> < dfn > MIDIOutput</ dfn > Interface</ h3 >
715
715
< pre class ="idl ">
716
- interface MIDIOutput : MIDIPort {
716
+ [SecureContext] interface MIDIOutput : MIDIPort {
717
717
void send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
718
718
void clear();
719
719
};
@@ -832,7 +832,7 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
832
832
< h2 id ="MIDIMessageEvent "> < dfn > MIDIMessageEvent</ dfn > Interface</ h2 >
833
833
< 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 >
834
834
< pre class ="idl ">
835
- [Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
835
+ [SecureContext], [ Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
836
836
interface MIDIMessageEvent: Event {
837
837
readonly attribute Uint8Array data;
838
838
};
@@ -887,7 +887,7 @@ <h2 id="MIDIConnectionEvent"><dfn>MIDIConnectionEvent</dfn> Interface</h2>
887
887
for new devices infrequently. As such, it is suggested that heavy
888
888
reliance on connection events not be used.</ p >
889
889
< pre class ="idl ">
890
- [Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
890
+ [SecureContext], [ Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
891
891
interface MIDIConnectionEvent: Event {
892
892
readonly attribute MIDIPort port;
893
893
};
0 commit comments