Skip to content
Snippets Groups Projects
Verified Commit 5004257d authored by Björn Eßwein's avatar Björn Eßwein
Browse files

Use --headless=old to stop chrome from displaying things like the first run popup

parent 923dcaa9
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment