servoshell: Set dom_testing_html_input_element_select_files_enabled when WebDriver is enabled (#37873)

Testing:
`.\tests\wpt\tests\webdriver\tests\classic\execute_script\collections.py`
can now run to the end when running either locally or `try`.
Fixes: #37870

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-07-04 18:02:41 +08:00 committed by GitHub
parent fe7aa91235
commit 291b42f6e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -539,6 +539,10 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
preferences.devtools_server_port = port; preferences.devtools_server_port = port;
} }
if opt_match.opt_present("webdriver") {
preferences.dom_testing_html_input_element_select_files_enabled = true;
}
let parse_resolution_string = |string: String| { let parse_resolution_string = |string: String| {
let components: Vec<u32> = string let components: Vec<u32> = string
.split('x') .split('x')

View file

@ -117,7 +117,6 @@ def handle_preset(s: str) -> Optional[JobConfig]:
wpt_args=" ".join( wpt_args=" ".join(
[ [
"./tests/wpt/tests/webdriver/tests/classic/", "./tests/wpt/tests/webdriver/tests/classic/",
"--pref=dom_testing_html_input_element_select_files_enabled",
"--product servodriver", "--product servodriver",
"--headless", "--headless",
] ]