From 598aa6e8738af1e7c12251d9b535c05d4ac67dd9 Mon Sep 17 00:00:00 2001 From: Srujan Gaddam Date: Thu, 22 Aug 2024 08:53:33 -0700 Subject: [PATCH] Add --use-mock-keychain to Chrome args Bug: https://github.com/dart-lang/sdk/issues/56519 Rolling the Chrome version in Dart CI to 128.0.6613.36 results in a system dialog requesting Chrome to use the keychain in MacOS. This then results in timeouts due to it being blocking. Instead, use a mock keychain. --- lib/src/chrome.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/chrome.dart b/lib/src/chrome.dart index b8524bb..8ee14f0 100644 --- a/lib/src/chrome.dart +++ b/lib/src/chrome.dart @@ -114,6 +114,10 @@ class Chrome { '--disable-default-apps', '--disable-translate', '--start-maximized', + // When running on MacOS, Chrome may open system dialogs requesting + // credentials. This uses a mock keychain to avoid that dialog from + // blocking. + '--use-mock-keychain', ]; if (headless) { args.add('--headless');