Skip to content

Commit dc3c224

Browse files
authored
Add --disable-session-crashed-bubble (#2321)
#2311 (comment) For development focused browser launches it's typically not useful to get extra warnings that the previous session crashed. Add a flag to disable the startup bubble and treat separate launches as independent.
1 parent 3e1d1c4 commit dc3c224

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkgs/browser_launcher/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.2.0-wip
22

3-
- Add `--test-type` flag when launching chrome to prevent some warnings.
3+
- Add `--test-type` and `--disable-session-crashed-bubble` flags when launching
4+
chrome to prevent some warnings.
45

56
## 1.1.3
67

pkgs/browser_launcher/lib/src/chrome.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ class Chrome {
121121
// Prevent warnings for using flags that are not recommended for general
122122
// browsing but are applicable for use in dev-focused workflows.
123123
'--test-type',
124+
// Dev runs of the browser should be considered independent of one
125+
// another, don't announce when the previous session crashed.
126+
'--disable-session-crashed-bubble',
124127
];
125128
if (headless) {
126129
args.add('--headless');

0 commit comments

Comments
 (0)