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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update to CEF 3.3626.1886.g162fdec

User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to CEF 3.3626.1886.g162fdec

Post 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 :
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Update to CEF 3.3626.1886.g162fdec

Post 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).
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3626.1886.g162fdec

Post 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.
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Update to CEF 3.3626.1886.g162fdec

Post by Chinyaev »

Thank you very much for detailed explanation! I will try.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3626.1886.g162fdec

Post 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;
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3626.1886.g162fdec

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3626.1886.g162fdec

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3626.1886.g162fdec

Post 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.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3626.1886.g162fdec

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3626.1886.g162fdec

Post by dilfich »

I've tried everything.. it is for =>71 that does not work. :(
Post Reply