Skip to content

Commit da41368

Browse files
committed
Make SpeechRecognition objects [SecureContext]
1 parent 227a270 commit da41368

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.bs

+8-8
Original file line numberDiff line numberDiff line change
@@ -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]
169169
interface SpeechRecognition : EventTarget {
170170
constructor();
171171

@@ -223,7 +223,7 @@ enum AvailabilityStatus {
223223
"available"
224224
};
225225

226-
[Exposed=Window]
226+
[SecureContext, Exposed=Window]
227227
interface 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]
240240
interface 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]
247247
interface 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]
255255
interface 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]
262262
interface 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]
275275
interface 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]
283283
interface SpeechRecognitionPhraseList {
284284
constructor(sequence<SpeechRecognitionPhrase> phrases);
285285
readonly attribute unsigned long length;

0 commit comments

Comments
 (0)