Bug 1886946: Remove incorrect assertion that buffer is not-pinned. r=sfink
[gecko.git] / dom / webidl / SpeechRecognitionError.webidl
blob7e1905eeceec1cf762332f8b03ff74be5de4d2c8
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 enum SpeechRecognitionErrorCode {
8   "no-speech",
9   "aborted",
10   "audio-capture",
11   "network",
12   "not-allowed",
13   "service-not-allowed",
14   "bad-grammar",
15   "language-not-supported"
18 [Pref="media.webspeech.recognition.enable",
19  Func="SpeechRecognition::IsAuthorized",
20  Exposed=Window]
21 interface SpeechRecognitionError : Event
23   constructor(DOMString type,
24               optional SpeechRecognitionErrorInit eventInitDict = {});
26   readonly attribute SpeechRecognitionErrorCode error;
27   readonly attribute DOMString? message;
30 dictionary SpeechRecognitionErrorInit : EventInit
32   SpeechRecognitionErrorCode error = "no-speech";
33   DOMString message = "";