WebDriver: Use --allow-popups option when launching Ladybird

This prevents an "unable to find test window" error on tests that
attempt to open a new window.
This commit is contained in:
Tim Ledbetter 2024-06-17 10:40:50 +01:00 committed by Alexander Kalenik
parent 577a7610fb
commit b94ec419ac

View file

@ -45,6 +45,8 @@ static ErrorOr<pid_t> launch_browser(ByteString const& socket_path)
arguments.append(certificate_args.last().view().characters_without_null_termination());
}
arguments.append("--allow-popups");
arguments.append("about:blank");
return launch_process("Ladybird"sv, arguments.span());