@@ -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;
0 commit comments