Skip to content

Commit

Permalink
Set --hide-crash-restore-bubble and --disable-chrome-login-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
SLT-World committed Aug 31, 2024
1 parent 65efa93 commit 5ba2655
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CefSharp.Wpf.HwndHost/CefSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,18 @@ namespace CefSharp.Wpf.HwndHost
/// </summary>
public class CefSettings : CefSettingsBase
{
/// <summary>
/// Intialize with default values
/// </summary>
public CefSettings() : base()
{
// CEF doesn't call GetAuthCredentials unless the Chrome login prompt is disabled
// https://github.com/chromiumembedded/cef/issues/3603
CefCommandLineArgs.Add("disable-chrome-login-prompt");

// Disable "Restore pages" popup after incorrect shutdown
// https://github.com/chromiumembedded/cef/issues/3767
CefCommandLineArgs.Add("hide-crash-restore-bubble");
}
}
}

0 comments on commit 5ba2655

Please sign in to comment.