diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas index 0e3997af..a1b66601 100644 --- a/source/uCEFApplicationCore.pas +++ b/source/uCEFApplicationCore.pas @@ -71,7 +71,7 @@ const CEF_SUPPORTED_VERSION_RELEASE = 10; CEF_SUPPORTED_VERSION_BUILD = 0; - CEF_CHROMEELF_VERSION_MAJOR = 101; + CEF_CHROMEELF_VERSION_MAJOR = 102; CEF_CHROMEELF_VERSION_MINOR = 0; CEF_CHROMEELF_VERSION_RELEASE = 5005; CEF_CHROMEELF_VERSION_BUILD = 115; @@ -189,6 +189,7 @@ type FDisableComponentUpdate : boolean; FAllowInsecureLocalhost : boolean; FKioskPrinting : boolean; + FTreatInsecureOriginAsSecure : ustring; // Fields used during the CEF initialization FWindowsSandboxInfo : pointer; @@ -504,6 +505,7 @@ type property DisableComponentUpdate : boolean read FDisableComponentUpdate write FDisableComponentUpdate; // --disable-component-update property AllowInsecureLocalhost : boolean read FAllowInsecureLocalhost write FAllowInsecureLocalhost; // --allow-insecure-localhost property KioskPrinting : boolean read FKioskPrinting write SetKioskPrinting; // --kiosk-printing + property TreatInsecureOriginAsSecure : ustring read FTreatInsecureOriginAsSecure write FTreatInsecureOriginAsSecure; // --unsafely-treat-insecure-origin-as-secure // Properties used during the CEF initialization property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo; @@ -751,6 +753,7 @@ begin FDisableComponentUpdate := False; FAllowInsecureLocalhost := False; FKioskPrinting := False; + FTreatInsecureOriginAsSecure := ''; // Fields used during the CEF initialization FWindowsSandboxInfo := nil; @@ -2088,6 +2091,9 @@ begin if FAllowInsecureLocalhost then ReplaceSwitch(aKeys, aValues, '--allow-insecure-localhost'); + if (length(FTreatInsecureOriginAsSecure) > 0) then + ReplaceSwitch(aKeys, aValues, '--unsafely-treat-insecure-origin-as-secure', FTreatInsecureOriginAsSecure); + // The list of features you can enable is here : // https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_features.cc // https://source.chromium.org/chromium/chromium/src/+/main:content/public/common/content_features.cc diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index e6220a64..7fee3bcb 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 407, + "InternalVersion" : 408, "Name" : "cef4delphi_lazarus.lpk", "Version" : "102.0.10.0" }