From 27970e184706c4cb1a970f5faa66774048e7ff40 Mon Sep 17 00:00:00 2001 From: webbeef Date: Sat, 1 Mar 2025 23:14:18 -0800 Subject: [PATCH] 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 --- ports/servoshell/prefs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/servoshell/prefs.rs b/ports/servoshell/prefs.rs index ef5506614ec..1aba21e267b 100644 --- a/ports/servoshell/prefs.rs +++ b/ports/servoshell/prefs.rs @@ -617,7 +617,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec) -> 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,