Skip to content

Commit

Permalink
Set --hide-crash-restore-bubble and --disable-chrome-login-prompt (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
SLT-World authored Sep 3, 2024
1 parent eed6bdc commit fa14071
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CefSharp.Wpf.HwndHost/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 fa14071

Please sign in to comment.