Bug 1446505 - Don't pass topic when creating speech services. r=smaug
☠☠ backed out by 185218df560a ☠ ☠
authorEitan Isaacson <eitan@monotonous.org>
Fri, 16 Mar 2018 12:15:00 +0200
changeset 408586 231448afb53d8997b569a42f682adb79042bab1a
parent 408585 ecc6886f6f9a6445f2068fba616654f660907aae
child 408587 5ea69407408936dc79877a460fd9eaa1ef03b7b3
push id100983
push userdluca@mozilla.com
push dateFri, 16 Mar 2018 21:46:04 +0000
treeherdermozilla-inbound@231448afb53d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1446505
milestone61.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 1446505 - Don't pass topic when creating speech services. r=smaug
dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp
--- a/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp
+++ b/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp
@@ -170,18 +170,17 @@ nsSynthVoiceRegistry::GetInstance()
 {
   MOZ_ASSERT(NS_IsMainThread());
 
   if (!gSynthVoiceRegistry) {
     gSynthVoiceRegistry = new nsSynthVoiceRegistry();
     ClearOnShutdown(&gSynthVoiceRegistry);
     if (XRE_IsParentProcess()) {
       // Start up all speech synth services.
-      NS_CreateServicesFromCategory(NS_SPEECH_SYNTH_STARTED, nullptr,
-        NS_SPEECH_SYNTH_STARTED);
+      NS_CreateServicesFromCategory(NS_SPEECH_SYNTH_STARTED, nullptr, nullptr);
     }
   }
 
   return gSynthVoiceRegistry;
 }
 
 already_AddRefed<nsSynthVoiceRegistry>
 nsSynthVoiceRegistry::GetInstanceForService()