@@ -165,7 +165,7 @@ The term "interim result" indicates a SpeechRecognitionResult in which the final
165165</dl>
166166
167167<xmp class="idl">
168- [Exposed=Window]
168+ [SecureContext, Exposed=Window]
169169interface SpeechRecognition : EventTarget {
170170 constructor();
171171
@@ -223,7 +223,7 @@ enum AvailabilityStatus {
223223 "available"
224224};
225225
226- [Exposed=Window]
226+ [SecureContext, Exposed=Window]
227227interface SpeechRecognitionErrorEvent : Event {
228228 constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
229229 readonly attribute SpeechRecognitionErrorCode error;
@@ -236,29 +236,29 @@ dictionary SpeechRecognitionErrorEventInit : EventInit {
236236};
237237
238238// Item in N-best list
239- [Exposed=Window]
239+ [SecureContext, Exposed=Window]
240240interface SpeechRecognitionAlternative {
241241 readonly attribute DOMString transcript;
242242 readonly attribute float confidence;
243243};
244244
245245// A complete one-shot simple response
246- [Exposed=Window]
246+ [SecureContext, Exposed=Window]
247247interface SpeechRecognitionResult {
248248 readonly attribute unsigned long length;
249249 getter SpeechRecognitionAlternative item(unsigned long index);
250250 readonly attribute boolean isFinal;
251251};
252252
253253// A collection of responses (used in continuous mode)
254- [Exposed=Window]
254+ [SecureContext, Exposed=Window]
255255interface SpeechRecognitionResultList {
256256 readonly attribute unsigned long length;
257257 getter SpeechRecognitionResult item(unsigned long index);
258258};
259259
260260// A full response, which could be interim or final, part of a continuous response or not
261- [Exposed=Window]
261+ [SecureContext, Exposed=Window]
262262interface SpeechRecognitionEvent : Event {
263263 constructor(DOMString type, SpeechRecognitionEventInit eventInitDict);
264264 readonly attribute unsigned long resultIndex;
@@ -271,15 +271,15 @@ dictionary SpeechRecognitionEventInit : EventInit {
271271};
272272
273273// The object representing a phrase for contextual biasing.
274- [Exposed=Window]
274+ [SecureContext, Exposed=Window]
275275interface SpeechRecognitionPhrase {
276276 constructor(DOMString phrase, optional float boost = 1.0);
277277 readonly attribute DOMString phrase;
278278 readonly attribute float boost;
279279};
280280
281281// The object representing a list of phrases for contextual biasing.
282- [Exposed=Window]
282+ [SecureContext, Exposed=Window]
283283interface SpeechRecognitionPhraseList {
284284 constructor(sequence<SpeechRecognitionPhrase> phrases);
285285 readonly attribute unsigned long length;
@@ -717,7 +717,7 @@ For a non-continuous recognition it will hold only a single value.</p>
717717<p> The SpeechSynthesis interface is the scripted web API for controlling a text-to-speech output.</p>
718718
719719<pre class="idl">
720- [Exposed=Window]
720+ [SecureContext, Exposed=Window]
721721interface SpeechSynthesis : EventTarget {
722722 readonly attribute boolean pending;
723723 readonly attribute boolean speaking;
@@ -736,7 +736,7 @@ partial interface Window {
736736 [SameObject] readonly attribute SpeechSynthesis speechSynthesis;
737737};
738738
739- [Exposed=Window]
739+ [SecureContext, Exposed=Window]
740740interface SpeechSynthesisUtterance : EventTarget {
741741 constructor(optional DOMString text);
742742
@@ -756,7 +756,7 @@ interface SpeechSynthesisUtterance : EventTarget {
756756 attribute EventHandler onboundary;
757757};
758758
759- [Exposed=Window]
759+ [SecureContext, Exposed=Window]
760760interface SpeechSynthesisEvent : Event {
761761 constructor(DOMString type, SpeechSynthesisEventInit eventInitDict);
762762 readonly attribute SpeechSynthesisUtterance utterance;
@@ -789,7 +789,7 @@ enum SpeechSynthesisErrorCode {
789789 "not-allowed",
790790};
791791
792- [Exposed=Window]
792+ [SecureContext, Exposed=Window]
793793interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
794794 constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict);
795795 readonly attribute SpeechSynthesisErrorCode error;
@@ -799,7 +799,7 @@ dictionary SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit {
799799 required SpeechSynthesisErrorCode error;
800800};
801801
802- [Exposed=Window]
802+ [SecureContext, Exposed=Window]
803803interface SpeechSynthesisVoice {
804804 readonly attribute DOMString voiceURI;
805805 readonly attribute DOMString name;
0 commit comments