[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 25/34: Bug 1764778 - Check media.webspeech.synth.enabled in AllocPSpeechSynthesisParent. r=eeejay, a=dsmith
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.9esr-11.0-1
in repository tor-browser.
commit 54ec83b3d10df28e9a79a9f8148dab0c14a273fe
Author: Andrew McCreight <continuation@xxxxxxxxx>
AuthorDate: Wed Apr 20 14:50:37 2022 +0000
Bug 1764778 - Check media.webspeech.synth.enabled in AllocPSpeechSynthesisParent. r=eeejay,a=dsmith
Differential Revision: https://phabricator.services.mozilla.com/D143952
---
dom/ipc/ContentParent.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp
index 492f9582ba54e..9e11d81a395de 100644
--- a/dom/ipc/ContentParent.cpp
+++ b/dom/ipc/ContentParent.cpp
@@ -4368,6 +4368,9 @@ bool ContentParent::DeallocPBenchmarkStorageParent(
#ifdef MOZ_WEBSPEECH
PSpeechSynthesisParent* ContentParent::AllocPSpeechSynthesisParent() {
+ if (!StaticPrefs::media_webspeech_synth_enabled()) {
+ return nullptr;
+ }
return new mozilla::dom::SpeechSynthesisParent();
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits