chore(browser): sync current working implementation
Rollback tag: pre-current-browser-sync-20260818
This commit is contained in:
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Xilium.CefGlue;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.Control.BrowserSetting
|
||||
{
|
||||
@@ -47,12 +46,7 @@ namespace Lskj.Control.BrowserSetting
|
||||
|
||||
protected override void OnRenderProcessTerminated(CefBrowser browser, CefTerminationStatus status)
|
||||
{
|
||||
// Reloading immediately from this callback can create a new
|
||||
// renderer while the old one is tearing down and cause a native
|
||||
// libcef crash loop. Record the termination and let the module
|
||||
// lifecycle decide whether a later reopen is appropriate.
|
||||
LogUtil.WriteError("CEF 渲染进程已终止,状态=" + status,
|
||||
new InvalidOperationException("CEF renderer termination status=" + status));
|
||||
browser.Reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user