Page 1 of 2
Update to CEF 3.3626.1886.g162fdec
Posted: Tue Feb 12, 2019 11:39 am
by salvadordf
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 :
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Wed Feb 13, 2019 11:16 am
by Chinyaev
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).
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Wed Feb 13, 2019 12:12 pm
by salvadordf
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 :
- TCefSchemeRegistrar in uCEFTypes.pas
- TCefSchemeRegistrarRef in uCEFSchemeRegistrar.pas
The 3683 is not the stable branch and it may have unresolved issues. Check that the binaries work with the official "cefclient" demo.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Wed Feb 13, 2019 1:44 pm
by Chinyaev
Thank you very much for detailed explanation! I will try.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Sat Feb 16, 2019 11:57 am
by dilfich
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?
Code: Select all
GlobalCEFApp.SitePerProcess:= False;
GlobalCEFApp.DisableWebSecurity:= True;
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Sat Feb 16, 2019 1:14 pm
by salvadordf
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.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Sat Feb 16, 2019 1:58 pm
by dilfich
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.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Sat Feb 16, 2019 2:21 pm
by dilfich
Code: Select all
GlobalCEFApp.CheckCEFFiles:= False;
And libray 70.0.3538.102 no problem..
Not working since version 71.0.3578.98 and above.. Apparently you need something else to switch to.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Mon Feb 18, 2019 9:57 am
by salvadordf
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.
Re: Update to CEF 3.3626.1886.g162fdec
Posted: Mon Feb 18, 2019 12:21 pm
by dilfich
I've tried everything.. it is for =>71 that does not work.
