You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-14 21:42:50 +02:00
Added GlobalCEFApp.TreatInsecureOriginAsSecure
This commit is contained in:
@@ -71,7 +71,7 @@ const
|
|||||||
CEF_SUPPORTED_VERSION_RELEASE = 10;
|
CEF_SUPPORTED_VERSION_RELEASE = 10;
|
||||||
CEF_SUPPORTED_VERSION_BUILD = 0;
|
CEF_SUPPORTED_VERSION_BUILD = 0;
|
||||||
|
|
||||||
CEF_CHROMEELF_VERSION_MAJOR = 101;
|
CEF_CHROMEELF_VERSION_MAJOR = 102;
|
||||||
CEF_CHROMEELF_VERSION_MINOR = 0;
|
CEF_CHROMEELF_VERSION_MINOR = 0;
|
||||||
CEF_CHROMEELF_VERSION_RELEASE = 5005;
|
CEF_CHROMEELF_VERSION_RELEASE = 5005;
|
||||||
CEF_CHROMEELF_VERSION_BUILD = 115;
|
CEF_CHROMEELF_VERSION_BUILD = 115;
|
||||||
@@ -189,6 +189,7 @@ type
|
|||||||
FDisableComponentUpdate : boolean;
|
FDisableComponentUpdate : boolean;
|
||||||
FAllowInsecureLocalhost : boolean;
|
FAllowInsecureLocalhost : boolean;
|
||||||
FKioskPrinting : boolean;
|
FKioskPrinting : boolean;
|
||||||
|
FTreatInsecureOriginAsSecure : ustring;
|
||||||
|
|
||||||
// Fields used during the CEF initialization
|
// Fields used during the CEF initialization
|
||||||
FWindowsSandboxInfo : pointer;
|
FWindowsSandboxInfo : pointer;
|
||||||
@@ -504,6 +505,7 @@ type
|
|||||||
property DisableComponentUpdate : boolean read FDisableComponentUpdate write FDisableComponentUpdate; // --disable-component-update
|
property DisableComponentUpdate : boolean read FDisableComponentUpdate write FDisableComponentUpdate; // --disable-component-update
|
||||||
property AllowInsecureLocalhost : boolean read FAllowInsecureLocalhost write FAllowInsecureLocalhost; // --allow-insecure-localhost
|
property AllowInsecureLocalhost : boolean read FAllowInsecureLocalhost write FAllowInsecureLocalhost; // --allow-insecure-localhost
|
||||||
property KioskPrinting : boolean read FKioskPrinting write SetKioskPrinting; // --kiosk-printing
|
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
|
// Properties used during the CEF initialization
|
||||||
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
||||||
@@ -751,6 +753,7 @@ begin
|
|||||||
FDisableComponentUpdate := False;
|
FDisableComponentUpdate := False;
|
||||||
FAllowInsecureLocalhost := False;
|
FAllowInsecureLocalhost := False;
|
||||||
FKioskPrinting := False;
|
FKioskPrinting := False;
|
||||||
|
FTreatInsecureOriginAsSecure := '';
|
||||||
|
|
||||||
// Fields used during the CEF initialization
|
// Fields used during the CEF initialization
|
||||||
FWindowsSandboxInfo := nil;
|
FWindowsSandboxInfo := nil;
|
||||||
@@ -2088,6 +2091,9 @@ begin
|
|||||||
if FAllowInsecureLocalhost then
|
if FAllowInsecureLocalhost then
|
||||||
ReplaceSwitch(aKeys, aValues, '--allow-insecure-localhost');
|
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 :
|
// The list of features you can enable is here :
|
||||||
// https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_features.cc
|
// 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
|
// https://source.chromium.org/chromium/chromium/src/+/main:content/public/common/content_features.cc
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 407,
|
"InternalVersion" : 408,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "102.0.10.0"
|
"Version" : "102.0.10.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user