Skip to content

Commit

Permalink
WebDriver: Use --allow-popups option when launching Ladybird
Browse files Browse the repository at this point in the history
This prevents an "unable to find test window" error on tests that
attempt to open a popup window.
  • Loading branch information
tcl3 committed Jun 17, 2024
1 parent 9a54b73 commit eac84d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Ladybird/WebDriver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit eac84d0

Please sign in to comment.