From 14c5e57c4ddf88b0fff7439c03e3e5708bd45606 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Tue, 10 Feb 2026 00:28:22 +0000 Subject: [PATCH 1/2] Add --disable-session-crashed-bubble https://github.com/dart-lang/tools/pull/2311#issuecomment-3829414880 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. --- pkgs/browser_launcher/CHANGELOG.md | 3 ++- pkgs/browser_launcher/lib/src/chrome.dart | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/browser_launcher/CHANGELOG.md b/pkgs/browser_launcher/CHANGELOG.md index bceea7063..698666e33 100644 --- a/pkgs/browser_launcher/CHANGELOG.md +++ b/pkgs/browser_launcher/CHANGELOG.md @@ -1,6 +1,7 @@ ## 1.2.0-wip -- Add `--test-type` flag when launching chrome to prevent some warnings. +- Add `--test-type` and `--disable-session-crashed-bubble` flags when launching + chrome to prevent some warnings. ## 1.1.3 diff --git a/pkgs/browser_launcher/lib/src/chrome.dart b/pkgs/browser_launcher/lib/src/chrome.dart index b31a80914..b4c89c016 100644 --- a/pkgs/browser_launcher/lib/src/chrome.dart +++ b/pkgs/browser_launcher/lib/src/chrome.dart @@ -121,6 +121,9 @@ class Chrome { // Prevent warnings for using flags that are not recommended for general // browsing but are applicable for use in dev-focused workflows. '--test-type', + // Dev runs of the browser should be considered independent of one + // anothers, don't announce when the previous session crashed. + '--disable-session-crashed-bubble', ]; if (headless) { args.add('--headless'); From a4b4d33056d54861dd9cbaa75eaf478b0cb7d612 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Tue, 10 Feb 2026 00:31:36 +0000 Subject: [PATCH 2/2] Fix typo --- pkgs/browser_launcher/lib/src/chrome.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/browser_launcher/lib/src/chrome.dart b/pkgs/browser_launcher/lib/src/chrome.dart index b4c89c016..3f6a4ff4e 100644 --- a/pkgs/browser_launcher/lib/src/chrome.dart +++ b/pkgs/browser_launcher/lib/src/chrome.dart @@ -122,7 +122,7 @@ class Chrome { // browsing but are applicable for use in dev-focused workflows. '--test-type', // Dev runs of the browser should be considered independent of one - // anothers, don't announce when the previous session crashed. + // another, don't announce when the previous session crashed. '--disable-session-crashed-bubble', ]; if (headless) {