mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-16 00:05:55 +01:00
Added 2 GlobalCEFApp properties to disable some security settings
- Added GlobalCEFApp.AllowFileAccessFromFiles - Added GlobalCEFApp.AllowRunningInsecureContent
This commit is contained in:
parent
b3213a1052
commit
b2f599e31b
@ -154,6 +154,8 @@ type
|
||||
FAutoplayPolicy : TCefAutoplayPolicy;
|
||||
FDisableBackgroundNetworking : boolean;
|
||||
FMetricsRecordingOnly : boolean;
|
||||
FAllowFileAccessFromFiles : boolean;
|
||||
FAllowRunningInsecureContent : boolean;
|
||||
|
||||
FMustCreateResourceBundleHandler : boolean;
|
||||
FMustCreateBrowserProcessHandler : boolean;
|
||||
@ -400,6 +402,8 @@ type
|
||||
property AutoplayPolicy : TCefAutoplayPolicy read FAutoplayPolicy write FAutoplayPolicy;
|
||||
property DisableBackgroundNetworking : boolean read FDisableBackgroundNetworking write FDisableBackgroundNetworking;
|
||||
property MetricsRecordingOnly : boolean read FMetricsRecordingOnly write FMetricsRecordingOnly;
|
||||
property AllowFileAccessFromFiles : boolean read FAllowFileAccessFromFiles write FAllowFileAccessFromFiles;
|
||||
property AllowRunningInsecureContent : boolean read FAllowRunningInsecureContent write FAllowRunningInsecureContent;
|
||||
property ChildProcessesCount : integer read GetChildProcessesCount;
|
||||
property UsedMemory : cardinal read GetUsedMemory;
|
||||
property TotalSystemMemory : uint64 read GetTotalSystemMemory;
|
||||
@ -561,6 +565,8 @@ begin
|
||||
FAutoplayPolicy := appDefault;
|
||||
FDisableBackgroundNetworking := False;
|
||||
FMetricsRecordingOnly := False;
|
||||
FAllowFileAccessFromFiles := False;
|
||||
FAllowRunningInsecureContent := False;
|
||||
|
||||
FMustCreateResourceBundleHandler := False;
|
||||
FMustCreateBrowserProcessHandler := True;
|
||||
@ -1547,6 +1553,12 @@ begin
|
||||
if FMetricsRecordingOnly then
|
||||
commandLine.AppendSwitch('--metrics-recording-only');
|
||||
|
||||
if FAllowFileAccessFromFiles then
|
||||
commandLine.AppendSwitch('--allow-file-access-from-files');
|
||||
|
||||
if FAllowRunningInsecureContent then
|
||||
commandLine.AppendSwitch('--allow-running-insecure-content');
|
||||
|
||||
if (FCustomCommandLines <> nil) and
|
||||
(FCustomCommandLineValues <> nil) and
|
||||
(FCustomCommandLines.Count = FCustomCommandLineValues.Count) then
|
||||
|
Loading…
Reference in New Issue
Block a user