Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webgui] do not use Edge browser for headless by default #16770

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

linev
Copy link
Member

@linev linev commented Oct 28, 2024

While Microsoft does not allow to use headless mode by default,
do not try to use it without explicit argument --web=edge

While Microsoft does not allow to use headless mode by default,
do not try to use it without explicit argument `--web=edge`
Copy link

github-actions bot commented Oct 28, 2024

Test Results

    18 files      18 suites   3d 20h 23m 6s ⏱️
 2 699 tests  2 697 ✅ 0 💤 2 ❌
46 103 runs  46 101 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 7346c18.

♻️ This comment has been updated with latest results.

fBatchExec = gEnv->GetValue((fEnvPrefix + "Batch").c_str(), "$prog --headless=old --no-sandbox $geometry --dump-dom $url");
fHeadlessExec = gEnv->GetValue((fEnvPrefix + "Headless").c_str(), "$prog --headless=old --no-sandbox --disable-gpu $geometry \"$url\" &");
// in interactive headless mode fork used to let stop browser via process id
fHeadlessExec = gEnv->GetValue((fEnvPrefix + "Headless").c_str(), "fork:--headless=new --no-sandbox --disable-gpu $geometry \"$url\"");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fHeadlessExec = gEnv->GetValue((fEnvPrefix + "Headless").c_str(), "fork:--headless=new --no-sandbox --disable-gpu $geometry \"$url\"");
fHeadlessExec = gEnv->GetValue((fEnvPrefix + "Headless").c_str(), "fork:--headless=old --no-sandbox --disable-gpu $geometry \"$url\"");

While in headless mode browser not always correctly stopped,
start Chrome/Edge/Firefox via wmic. In this case one got
processid and can kill it
@linev linev merged commit e851774 into root-project:master Oct 29, 2024
17 of 20 checks passed
@linev linev deleted the edge_not_native branch October 29, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants