-
Notifications
You must be signed in to change notification settings - Fork 463
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
chrome: Disable "Restore pages" popup after incorrect shutdown #3767
Comments
Are you calling |
No I'm not calling CefShutdown, and the application is running as intended. I have also tested this on other machines, and get the same result. |
You need to call CefShutdown (or CefSharp equivalent) for proper shutdown. That is likely why you're getting the popup window with "Chromium didn't shut down correctly". |
Sorry for the ignorance but why would I need to call CefShutdown? isn't its purpose to close the application? The issue i'm encountering happens during the application startup |
You can try the This is related to |
This issue is likely occurring because your previous application run did not shut down CEF/Chromium properly. From your link it sounds like CefSharp may call CefShutdown for you. I suggest you explore why that might not be occurring in your case. For example, maybe your application is crashing during shutdown. |
@magreenblatt Thank you so much! that worked. |
@magreenblatt I encountered a similar problem In the cef_binary_128.4.9+g9840ad9+chromium-128.0.6613.120_windows64. My Win32 program needs to enable |
Issue
I have a WPF application using Cefsharp 126.2.70. The changes from the 126.2.70 changes the cefsettings runtime to chrome. The ChromeRuntime bootstrap opens a random chrome tab when the WPF window is loaded. This does not happen every time but it happens on every other try of opening the application. Below the what the tab looks like:
Reproduce
Expected Behavior
**Versions **
Code Example
App.xaml.cd
`
private void Application_Startup(object sender, StartupEventArgs e)
{
var settings = new CefSettings()
{
// ChromeRuntime = false,
LogFile = "Debug.log",
LogSeverity = LogSeverity.Verbose,
CachePath = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\Cache"),
};
`
MainWindow.xaml.cd
`
public MainWindow()
{
InitializeComponent();
}
`
The text was updated successfully, but these errors were encountered: