From c49f768b41a3caf0541fcdbfa0d65b74c7e63a4f Mon Sep 17 00:00:00 2001 From: Bjoern Esswein <4-Bjoern@users.noreply.git.esswe.in> Date: Sun, 7 Jul 2024 18:55:56 +0200 Subject: [PATCH] add chrome args to disable hopefully all first launch popups that would block the headless mode --- Runtime/ChromeDevtools/Browser.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Runtime/ChromeDevtools/Browser.cs b/Runtime/ChromeDevtools/Browser.cs index ec6755b..2c17105 100644 --- a/Runtime/ChromeDevtools/Browser.cs +++ b/Runtime/ChromeDevtools/Browser.cs @@ -74,7 +74,17 @@ namespace bessw.Unity.WebView.ChromeDevTools $"--remote-allow-origins=http://localhost:{debugPort}", "--hide-crash-restore-bubble", "--disable-first-run-ui", - "--no-first-run" + "--no-first-run", + "--disable-search-engine-choice-screen", + "--disable-features=PrivacySandboxSettings4", + "--no-default-browser-check", + // additional flags (don't know if they are necessary) + "--disable-extensions", + "--ash-no-nudges", + "--disable-external-intent-requests", + "--disable-background-timer-throttling", + "--disable-backgrounding-occluded-windows", + "--enable-automation" }); // set headlessBrowser to false to see the browser window -- GitLab