Skip to content

Commit 578f3a2

Browse files
committed
Do not de-elevate CEF browser process
1 parent 592906e commit 578f3a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Client/cefweb/CWebApp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ void CWebApp::OnBeforeCommandLineProcessing(const CefString& process_type, CefRe
2626
if (!pWebCore->GetGPUEnabled())
2727
command_line->AppendSwitch("disable-gpu");
2828

29+
// Disable the AutoDeElevate feature to make launching CEF with Admin privileges work.
30+
// https://github.com/chromiumembedded/cef/issues/3960
31+
// https://chromium-review.googlesource.com/c/chromium/src/+/6515318
32+
command_line->AppendSwitch("do-not-de-elevate");
33+
2934
command_line->AppendSwitch("disable-gpu-compositing"); // always disable this, causes issues with official builds
3035

3136
// command_line->AppendSwitch("disable-d3d11");

0 commit comments

Comments
 (0)