Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Update to CEF 3.3626.1886.g162fdec
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Update to CEF 3.3626.1886.g162fdec
Hi,
I just uploaded a small CEF4Delphi update to CEF 3.3626.1886.g162fdec which includes the new Chromium 72.0.3626.96
There's also a new demo for Lazarus/FPC users called "ToolBoxLazBrowser".
The CEF3 binaries used in this version are :
I just uploaded a small CEF4Delphi update to CEF 3.3626.1886.g162fdec which includes the new Chromium 72.0.3626.96
There's also a new demo for Lazarus/FPC users called "ToolBoxLazBrowser".
The CEF3 binaries used in this version are :
Re: Update to CEF 3.3626.1886.g162fdec
Hi, Salvador!
Can you tell how you are doing update to the latest versions of cef? Example I have cef binary 3683 with ffmpeg codecs, but it doesn't work with your library. I'm tried to change only consts version in uCEFApplication.pas, but it doesn't work (white screen).
Can you tell how you are doing update to the latest versions of cef? Example I have cef binary 3683 with ffmpeg codecs, but it doesn't work with your library. I'm tried to change only consts version in uCEFApplication.pas, but it doesn't work (white screen).
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Update to CEF 3.3626.1886.g162fdec
I compare the CEF branches. You can do that in BitBucket or using any other file compare program.
If this case you can take a look at the differences here :
https://bitbucket.org/chromiumembedded/ ... =3626#diff
CEF4Delphi is a C API wrapper and CEF3 defines that API in the "include/capi" directory.
The "include/internal" also has variable types, enums, etc. that need to be converted to Delphi.
In some cases, the CEF3 demos in the "tests" directory include changes in the way to handle the API and those changes need to be translated in the Delphi demos too.
In some rare cases I also have to take a look at the rest of directories to know what is the API doing with some event parameters.
The 3683 branch has some API differences in cef_scheme_registrar_t and cef_referrer_policy_t.
To update cef_referrer_policy_t you need to change TCefReferrerPolicy in uCEFTypes.pas
To update cef_scheme_registrar_t you need to change :
If this case you can take a look at the differences here :
https://bitbucket.org/chromiumembedded/ ... =3626#diff
CEF4Delphi is a C API wrapper and CEF3 defines that API in the "include/capi" directory.
The "include/internal" also has variable types, enums, etc. that need to be converted to Delphi.
In some cases, the CEF3 demos in the "tests" directory include changes in the way to handle the API and those changes need to be translated in the Delphi demos too.
In some rare cases I also have to take a look at the rest of directories to know what is the API doing with some event parameters.
The 3683 branch has some API differences in cef_scheme_registrar_t and cef_referrer_policy_t.
To update cef_referrer_policy_t you need to change TCefReferrerPolicy in uCEFTypes.pas
To update cef_scheme_registrar_t you need to change :
- TCefSchemeRegistrar in uCEFTypes.pas
- TCefSchemeRegistrarRef in uCEFSchemeRegistrar.pas
Re: Update to CEF 3.3626.1886.g162fdec
Thank you very much for detailed explanation! I will try.
Re: Update to CEF 3.3626.1886.g162fdec
Again there was a problem with disabling the security check.
Uncaught SecurityError: Blocked a frame with origin
70.0.3538.102 not problem
What has changed in this regard?

Uncaught SecurityError: Blocked a frame with origin
70.0.3538.102 not problem
What has changed in this regard?
Code: Select all
GlobalCEFApp.SitePerProcess:= False;
GlobalCEFApp.DisableWebSecurity:= True;
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Update to CEF 3.3626.1886.g162fdec
I don't know. I haven't checked the change logs in the last Chrome/Chromium releases.
You can take a look at the change logs in this blog :
https://chromereleases.googleblog.com/
Every "Stable Channel Update for Desktop" article has a link with a list of all changes in that release.
You can take a look at the change logs in this blog :
https://chromereleases.googleblog.com/
Every "Stable Channel Update for Desktop" article has a link with a list of all changes in that release.
Re: Update to CEF 3.3626.1886.g162fdec
https://chromium.googlesource.com/chrom ... er&n=10000
I don't even know what I was supposed to find. But the web Security switch does not work this fact.
I don't even know what I was supposed to find. But the web Security switch does not work this fact.
Re: Update to CEF 3.3626.1886.g162fdec
Code: Select all
GlobalCEFApp.CheckCEFFiles:= False;
Not working since version 71.0.3578.98 and above.. Apparently you need something else to switch to.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Update to CEF 3.3626.1886.g162fdec
That switch appears in the official list of Chromium command line switches :
https://peter.sh/experiments/chromium-c ... -switches/
Not all the switches in that list work and there might be a new issue blocking it but I also found this :
https://stackoverflow.com/questions/310 ... -in-chrome
Try setting GlobalCEFApp.UserDataPath to a writable directory and also try setting TChromium.Options.WebSecurity to STATE_DISABLED before the TChromium.CreateBrowser call.
https://peter.sh/experiments/chromium-c ... -switches/
Not all the switches in that list work and there might be a new issue blocking it but I also found this :
https://stackoverflow.com/questions/310 ... -in-chrome
Try setting GlobalCEFApp.UserDataPath to a writable directory and also try setting TChromium.Options.WebSecurity to STATE_DISABLED before the TChromium.CreateBrowser call.
Re: Update to CEF 3.3626.1886.g162fdec
I've tried everything.. it is for =>71 that does not work. 
