1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-12 22:07:39 +02:00

Update to CEF 127.3.1

This commit is contained in:
Salvador Díaz Fau
2024-08-08 12:53:31 +02:00
parent b7f0c51ee6
commit 14e64f556e
16 changed files with 293 additions and 188 deletions

View File

@ -97,6 +97,9 @@ type
FCookieableSchemesExcludeDefaults : boolean;
FChromePolicyId : ustring;
FChromeAppIconId : integer;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
FDisableSignalHandlers : boolean;
{$IFEND}
// Fields used to set command line switches
FSingleProcess : boolean;
@ -161,6 +164,7 @@ type
FAutoAcceptCamAndMicCapture : boolean;
FUIColorMode : TCefUIColorMode;
FDisableHangMonitor : boolean;
FHideCrashRestoreBubble : boolean;
// Fields used during the CEF initialization
@ -756,6 +760,12 @@ type
/// runtime on Windows.
/// </summary>
property ChromeAppIconId : integer read FChromeAppIconId write FChromeAppIconId;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
/// <summary>
/// Specify whether signal handlers must be disabled on POSIX systems.
/// </summary>
property DisableSignalHandlers : boolean read FDisableSignalHandlers write FDisableSignalHandlers;
{$IFEND}
/// <summary>
/// Runs the renderer and plugins in the same process as the browser.
/// </summary>
@ -1241,6 +1251,13 @@ type
/// </remarks>
property DisableHangMonitor : boolean read FDisableHangMonitor write FDisableHangMonitor;
/// <summary>
/// Does not show the "Restore pages" popup bubble after incorrect shutdown.
/// </summary>
/// <remarks>
/// <para><see href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --hide-crash-restore-bubble</see></para>
/// </remarks>
property HideCrashRestoreBubble : boolean read FHideCrashRestoreBubble write FHideCrashRestoreBubble;
/// <summary>
/// Ignores certificate-related errors.
/// </summary>
/// <remarks>
@ -1842,6 +1859,9 @@ begin
FCookieableSchemesExcludeDefaults := False;
FChromePolicyId := '';
FChromeAppIconId := 0;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
FDisableSignalHandlers := False;
{$IFEND}
// Fields used to set command line switches
FSingleProcess := False;
@ -1906,6 +1926,7 @@ begin
FAutoAcceptCamAndMicCapture := False;
FUIColorMode := uicmSystemDefault;
FDisableHangMonitor := False;
FHideCrashRestoreBubble := True;
// Fields used during the CEF initialization
FWindowsSandboxInfo := nil;
@ -2824,6 +2845,9 @@ begin
aSettings.cookieable_schemes_exclude_defaults := Ord(FCookieableSchemesExcludeDefaults);
aSettings.chrome_policy_id := CefString(FChromePolicyId);
aSettings.chrome_app_icon_id := FChromeAppIconId;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
aSettings.disable_signal_handlers := ord(FDisableSignalHandlers);
{$IFEND}
end;
function TCefApplicationCore.InitializeLibrary(const aApp : ICefApp) : boolean;
@ -3384,6 +3408,9 @@ begin
if FDisableHangMonitor then
ReplaceSwitch(aKeys, aValues, '--disable-hang-monitor');
if FHideCrashRestoreBubble then
ReplaceSwitch(aKeys, aValues, '--hide-crash-restore-bubble');
if FNetLogEnabled then
begin
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);