diff --git a/CefSharp.Wpf.HwndHost/CefSettings.cs b/CefSharp.Wpf.HwndHost/CefSettings.cs index 9fd120e..01b1d0d 100644 --- a/CefSharp.Wpf.HwndHost/CefSettings.cs +++ b/CefSharp.Wpf.HwndHost/CefSettings.cs @@ -9,5 +9,18 @@ namespace CefSharp.Wpf.HwndHost /// public class CefSettings : CefSettingsBase { + /// + /// Intialize with default values + /// + 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"); + } } }