Set a valid default value for the --userscripts command line option (#35740)

This prevents a crash when not specifying the path and matches the help message for that option.

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-03-01 23:14:18 -08:00 committed by GitHub
parent 18de59dd63
commit 27970e1847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -617,7 +617,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
time_profiler_trace_path: opt_match.opt_str("profiler-trace-path"),
mem_profiler_period,
nonincremental_layout,
userscripts: opt_match.opt_default("userscripts", ""),
userscripts: opt_match.opt_default("userscripts", "resources/user-agent-js"),
user_stylesheets,
hard_fail: opt_match.opt_present("f") && !opt_match.opt_present("F"),
webdriver_port,