Skip to content

Commit

Permalink
Remove incorrect claims of prefixed Web Speech interfaces
Browse files Browse the repository at this point in the history
The set of webkitSpeech* members on the global object are:
 - webkitSpeechGrammar
 - webkitSpeechGrammarList
 - webkitSpeechRecognition
 - webkitSpeechRecognitionError
 - webkitSpeechRecognitionEvent

These 3 other SpeechRecognition* interfaces are instead decorated with
[LegacyNoInterfaceObject] in Chromium source, which means their
interfaces objects are not exposed at all. They don't have constructors,
as they are accessed from the `SpeechRecognitionResultList` at
`event.results` for a "result" event.

So while use of prefixes is required to get to these APIs, they are
not themselves prefixed.

See also mdn#7554.
  • Loading branch information
foolip committed Dec 4, 2020
1 parent 9f7f6c5 commit 859a67f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions api/SpeechRecognitionAlternative.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative",
"support": {
"chrome": {
"prefix": "webkit",
"version_added": "33",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"chrome_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"edge": {
"prefix": "webkit",
"version_added": "≤79",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
Expand All @@ -41,12 +38,10 @@
"version_added": false
},
"samsunginternet_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"webview_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
}
Expand Down
5 changes: 0 additions & 5 deletions api/SpeechRecognitionResult.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult",
"support": {
"chrome": {
"prefix": "webkit",
"version_added": "33",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"chrome_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"edge": {
"prefix": "webkit",
"version_added": "≤79",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
Expand All @@ -41,12 +38,10 @@
"version_added": false
},
"samsunginternet_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"webview_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
}
Expand Down
5 changes: 0 additions & 5 deletions api/SpeechRecognitionResultList.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList",
"support": {
"chrome": {
"prefix": "webkit",
"version_added": "33",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"chrome_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"edge": {
"prefix": "webkit",
"version_added": "≤79",
"notes": "You'll need to serve your code through a web server for recognition to work."
},
Expand All @@ -41,12 +38,10 @@
"version_added": false
},
"samsunginternet_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
},
"webview_android": {
"prefix": "webkit",
"version_added": true,
"notes": "You'll need to serve your code through a web server for recognition to work."
}
Expand Down

0 comments on commit 859a67f

Please sign in to comment.