refactor(webdriver): move webdriver_port option to servoshell pref (#37867)

Move `webdriver_port` option from servo config options to servoshell
preference.

Testing: run `./mach run` with/without `--webdriver` option and see if
the webdriver server runs on the port (default: 7000)
Fixes: https://github.com/servo/servo/issues/37843

Signed-off-by: Jason Tsai <git@pews.dev>
This commit is contained in:
Jason Tsai 2025-07-04 16:04:49 +09:00 committed by GitHub
parent 6ba54e4d79
commit cf408f7302
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 15 deletions

View file

@ -44,10 +44,6 @@ pub struct Opts {
/// behavior for debugging purposes.
pub debug: DebugOptions,
/// `None` to disable WebDriver or `Some` with a port number to start a server to listen to
/// remote WebDriver commands.
pub webdriver_port: Option<u16>,
/// Whether we're running in multiprocess mode.
pub multiprocess: bool,
@ -192,7 +188,6 @@ impl Default for Opts {
nonincremental_layout: false,
user_stylesheets: Vec::new(),
hard_fail: true,
webdriver_port: None,
multiprocess: false,
background_hang_monitor: false,
random_pipeline_closure_probability: None,