summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-18 16:37:49 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-19 18:18:41 +0200
commit00d5008c27fdff1b9f3a5de15aca27fbfcbee430 (patch)
tree4a4ed27f5cd4c22f32b55245c219e079ebb67830 /src/core
parent59f69133a067ee51a2eeb5aabc5e2f569dd66d28 (diff)
Do not let Blink advertise web speech api
At least turns our support off on html5test.com Change-Id: Ic82800b0efb70bb5589f7544b851ebcd64000105 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/web_engine_context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index 11365de62..7cc84eae7 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -620,6 +620,9 @@ WebEngineContext::WebEngineContext()
bool enableViz = !parsedCommandLine->HasSwitch("disable-viz-display-compositor");
parsedCommandLine->RemoveSwitch("disable-viz-display-compositor");
+ // Do not advertise a feature we have removed at compile time
+ parsedCommandLine->AppendSwitch(switches::kDisableSpeechAPI);
+
std::string disableFeatures;
std::string enableFeatures;
// Needed to allow navigations within pages that were set using setHtml(). One example is