Skip to content

Commit 45f2573

Browse files
committed
Set --hide-crash-restore-bubble by default to prevent Chromium window from opening after unsuccessful shutdown.
Resolves #4903
1 parent 0260a6b commit 45f2573

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

CefSharp.OffScreen/CefSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public CefSettings() : base()
2626
// the Chrome login prompt is disabled
2727
// https://github.com/chromiumembedded/cef/issues/3603
2828
CefCommandLineArgs.Add("disable-chrome-login-prompt");
29+
30+
// Disable "Restore pages" popup after incorrect shutdown
31+
// https://github.com/chromiumembedded/cef/issues/3767
32+
CefCommandLineArgs.Add("hide-crash-restore-bubble");
2933
}
3034

3135
/// <summary>

CefSharp.WinForms/CefSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public CefSettings() : base()
2121
// the Chrome login prompt is disabled
2222
// https://github.com/chromiumembedded/cef/issues/3603
2323
CefCommandLineArgs.Add("disable-chrome-login-prompt");
24+
25+
// Disable "Restore pages" popup after incorrect shutdown
26+
// https://github.com/chromiumembedded/cef/issues/3767
27+
CefCommandLineArgs.Add("hide-crash-restore-bubble");
2428
}
2529
}
2630
}

CefSharp.Wpf/CefSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public CefSettings() : base()
2727
// the Chrome login prompt is disabled
2828
// https://github.com/chromiumembedded/cef/issues/3603
2929
CefCommandLineArgs.Add("disable-chrome-login-prompt");
30+
31+
// Disable "Restore pages" popup after incorrect shutdown
32+
// https://github.com/chromiumembedded/cef/issues/3767
33+
CefCommandLineArgs.Add("hide-crash-restore-bubble");
3034
}
3135
}
3236
}

0 commit comments

Comments
 (0)