aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorwebbeef <me@webbeef.org>2025-03-01 23:14:18 -0800
committerGitHub <noreply@github.com>2025-03-02 07:14:18 +0000
commit27970e184706c4cb1a970f5faa66774048e7ff40 (patch)
tree35701cde005bf16181490b1d84cce74956febd09 /ports
parent18de59dd63f14f667e8a4a267e8528384665e7a6 (diff)
downloadservo-27970e184706c4cb1a970f5faa66774048e7ff40.tar.gz
servo-27970e184706c4cb1a970f5faa66774048e7ff40.zip
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>
Diffstat (limited to 'ports')
-rw-r--r--ports/servoshell/prefs.rs2
1 files changed, 1 insertions, 1 deletions
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<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,