Skip to content

Commit 2c690eb

Browse files
authored
Add --use-mock-keychain to Chrome args (dart-archive/browser_launcher#63)
Bug: dart-lang/sdk#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.
1 parent 8ed7db4 commit 2c690eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/browser_launcher/lib/src/chrome.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ class Chrome {
114114
'--disable-default-apps',
115115
'--disable-translate',
116116
'--start-maximized',
117+
// When running on MacOS, Chrome may open system dialogs requesting
118+
// credentials. This uses a mock keychain to avoid that dialog from
119+
// blocking.
120+
'--use-mock-keychain',
117121
];
118122
if (headless) {
119123
args.add('--headless');

0 commit comments

Comments
 (0)