diff --git a/Runtime/ChromeDevtools/Browser.cs b/Runtime/ChromeDevtools/Browser.cs index 2c17105288b1fde175a2161cdc0cf20c3f09e410..b29550273d3bd0439aeba252202d7900013ed43b 100644 --- a/Runtime/ChromeDevtools/Browser.cs +++ b/Runtime/ChromeDevtools/Browser.cs @@ -72,6 +72,7 @@ namespace bessw.Unity.WebView.ChromeDevTools $"--user-data-dir={Path.Join(Application.temporaryCachePath, "BrowserView")}", $"--remote-debugging-port={debugPort}", $"--remote-allow-origins=http://localhost:{debugPort}", + // might not be needed with headless=old "--hide-crash-restore-bubble", "--disable-first-run-ui", "--no-first-run", @@ -90,7 +91,9 @@ namespace bessw.Unity.WebView.ChromeDevTools // set headlessBrowser to false to see the browser window if (headless) { - browserProcess.StartInfo.Arguments = string.Concat(browserProcess.StartInfo.Arguments, " --headless=new"); + // --headless=old should be sufficient for rendering web pages, + // --headless=new has the drawback that it still opens the first run popup, the crash restore bubble, etc. + browserProcess.StartInfo.Arguments = string.Concat(browserProcess.StartInfo.Arguments, " --headless=old"); } else {