Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Add --use-mock-keychain to Chrome args
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
srujzs committed Aug 22, 2024
1 parent fe7ffa1 commit 598aa6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/chrome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 598aa6e

Please sign in to comment.