Bug 1495049: Launcher process: Treat headless mode as implicit --wait-for-browser; r=mhowell

Differential Revision: https://phabricator.services.mozilla.com/D7204

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Aaron Klotz 2018-09-28 19:33:16 +00:00
parent 00927ac95e
commit 0a3958d730

View File

@ -99,7 +99,11 @@ ProcessCmdLine(int& aArgc, wchar_t* aArgv[])
mozilla::CheckArg(aArgc, aArgv, L"marionette",
static_cast<const wchar_t**>(nullptr),
mozilla::CheckArgFlag::None) == mozilla::ARG_FOUND ||
mozilla::EnvHasValue("MOZ_AUTOMATION")) {
mozilla::CheckArg(aArgc, aArgv, L"headless",
static_cast<const wchar_t**>(nullptr),
mozilla::CheckArgFlag::None) == mozilla::ARG_FOUND ||
mozilla::EnvHasValue("MOZ_AUTOMATION") ||
mozilla::EnvHasValue("MOZ_HEADLESS")) {
result |= mozilla::LauncherFlags::eWaitForBrowser;
}