@@ -165,7 +165,7 @@ The term "interim result" indicates a SpeechRecognitionResult in which the final
165
165
</dl>
166
166
167
167
<xmp class="idl">
168
- [Exposed=Window]
168
+ [SecureContext, Exposed=Window]
169
169
interface SpeechRecognition : EventTarget {
170
170
constructor();
171
171
@@ -223,7 +223,7 @@ enum AvailabilityStatus {
223
223
"available"
224
224
};
225
225
226
- [Exposed=Window]
226
+ [SecureContext, Exposed=Window]
227
227
interface SpeechRecognitionErrorEvent : Event {
228
228
constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
229
229
readonly attribute SpeechRecognitionErrorCode error;
@@ -236,29 +236,29 @@ dictionary SpeechRecognitionErrorEventInit : EventInit {
236
236
};
237
237
238
238
// Item in N-best list
239
- [Exposed=Window]
239
+ [SecureContext, Exposed=Window]
240
240
interface SpeechRecognitionAlternative {
241
241
readonly attribute DOMString transcript;
242
242
readonly attribute float confidence;
243
243
};
244
244
245
245
// A complete one-shot simple response
246
- [Exposed=Window]
246
+ [SecureContext, Exposed=Window]
247
247
interface SpeechRecognitionResult {
248
248
readonly attribute unsigned long length;
249
249
getter SpeechRecognitionAlternative item(unsigned long index);
250
250
readonly attribute boolean isFinal;
251
251
};
252
252
253
253
// A collection of responses (used in continuous mode)
254
- [Exposed=Window]
254
+ [SecureContext, Exposed=Window]
255
255
interface SpeechRecognitionResultList {
256
256
readonly attribute unsigned long length;
257
257
getter SpeechRecognitionResult item(unsigned long index);
258
258
};
259
259
260
260
// A full response, which could be interim or final, part of a continuous response or not
261
- [Exposed=Window]
261
+ [SecureContext, Exposed=Window]
262
262
interface SpeechRecognitionEvent : Event {
263
263
constructor(DOMString type, SpeechRecognitionEventInit eventInitDict);
264
264
readonly attribute unsigned long resultIndex;
@@ -271,15 +271,15 @@ dictionary SpeechRecognitionEventInit : EventInit {
271
271
};
272
272
273
273
// The object representing a phrase for contextual biasing.
274
- [Exposed=Window]
274
+ [SecureContext, Exposed=Window]
275
275
interface SpeechRecognitionPhrase {
276
276
constructor(DOMString phrase, optional float boost = 1.0);
277
277
readonly attribute DOMString phrase;
278
278
readonly attribute float boost;
279
279
};
280
280
281
281
// The object representing a list of phrases for contextual biasing.
282
- [Exposed=Window]
282
+ [SecureContext, Exposed=Window]
283
283
interface SpeechRecognitionPhraseList {
284
284
constructor(sequence<SpeechRecognitionPhrase> phrases);
285
285
readonly attribute unsigned long length;
0 commit comments