Bug 1463496 - Enable WebSpeech synthesis in Android. r=smaug
authorEitan Isaacson <eitan@monotonous.org>
Thu, 31 May 2018 10:34:00 -0400
changeset 420939 7fa83e49f708bb49690b0ac86ebb8b12e3766e0c
parent 420938 f585271d250d8750240e8ab4ec8e462e56eac21e
child 420940 5989424834d2030fecfc43eb6536e5132fb30536
push id34083
push userapavel@mozilla.com
push dateSat, 02 Jun 2018 23:03:25 +0000
treeherdermozilla-central@1f62ecdf59b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1463496
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1463496 - Enable WebSpeech synthesis in Android. r=smaug
dom/tests/mochitest/general/test_interfaces.js
mobile/android/app/mobile.js
--- a/dom/tests/mochitest/general/test_interfaces.js
+++ b/dom/tests/mochitest/general/test_interfaces.js
@@ -872,25 +872,25 @@ var interfaceNamesInGlobalScope =
     {name: "SimpleGestureEvent", insecureContext: true, xbl: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "SimpleTest", insecureContext: true, xbl: false},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "SourceBuffer", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "SourceBufferList", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "SpeechSynthesisErrorEvent", insecureContext: true, android: false},
+    {name: "SpeechSynthesisErrorEvent", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "SpeechSynthesisEvent", insecureContext: true, android: false},
+    {name: "SpeechSynthesisEvent", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "SpeechSynthesis", insecureContext: true, android: false},
+    {name: "SpeechSynthesis", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "SpeechSynthesisUtterance", insecureContext: true, android: false},
+    {name: "SpeechSynthesisUtterance", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "SpeechSynthesisVoice", insecureContext: true, android: false},
+    {name: "SpeechSynthesisVoice", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "SpecialPowers", insecureContext: true, xbl: false},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "StereoPannerNode", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "Storage", insecureContext: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "StorageEvent", insecureContext: true},
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -562,16 +562,19 @@ pref("media.video-queue.default-size", 3
 // (the most recent) image data.
 pref("media.video-queue.send-to-compositor-size", 1);
 
 // Enable MSE
 pref("media.mediasource.enabled", true);
 
 pref("media.mediadrm-widevinecdm.visible", true);
 
+// Enable WebSpeech speech synthesis
+pref("media.webspeech.synth.enabled", true);
+
 // optimize images memory usage
 pref("image.downscale-during-decode.enabled", true);
 
 // The download protection UI is not implemented yet (bug 1239094).
 pref("browser.safebrowsing.downloads.enabled", false);
 
 // The application reputation lists are not available on Android.
 pref("urlclassifier.downloadAllowTable", "");