Skip to content

Commit

Permalink
Add Web Speech API feature flags (#49934)
Browse files Browse the repository at this point in the history
This PR adds the --enable-features=InstallOnDeviceSpeechRecognition,OnDeviceWebSpeechAvailable,OnDeviceWebSpeech,MediaStreamTrackWebSpeech feature flag that enables testing of the new Web Speech API features.
  • Loading branch information
evanbliu authored Jan 7, 2025
1 parent a057897 commit a70f302
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/wptrunner/wptrunner/browsers/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ def executor_kwargs(logger, test_type, test_environment, run_info_data, subsuite
chrome_options["args"].append("--disable-infobars")
# For WebNN tests.
chrome_options["args"].append("--enable-features=WebMachineLearningNeuralNetwork")
# For Web Speech API tests.
chrome_options["args"].append("--enable-features=" + ",".join([
"InstallOnDeviceSpeechRecognition",
"OnDeviceWebSpeechAvailable",
"OnDeviceWebSpeech",
"MediaStreamTrackWebSpeech",
]))

# Classify `http-private`, `http-public` and https variants in the
# appropriate IP address spaces.
Expand Down

0 comments on commit a70f302

Please sign in to comment.