Page 1 of 2

Update to CEF 78.2.14

Posted: Wed Nov 06, 2019 10:23 am
by salvadordf
Hi,

CEF4Delphi is now updated to CEF 78.2.14 which includes Chromium 78.0.3904.87 :D

The CEF binaries are :
  • 32 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.2.14%2Bg9633d3e%2Bchromium-78.0.3904.87_windows32.tar.bz2
  • 64 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.2.14%2Bg9633d3e%2Bchromium-78.0.3904.87_windows64.tar.bz2
WARNING :
The shutdown and resize issues in OSR mode are still present. Use the latest release version if you need a stable component :
https://github.com/salvadordf/CEF4Delphi/releases/latest

Re: Update to CEF 78.2.14

Posted: Wed Nov 06, 2019 11:57 am
by salvadordf
If you have stability issues with this version please try adding this before the GlobalCEFApp.StartMainProcess call in the DPR file :

Code: Select all

GlobalCEFApp.AddCustomCommandLine('-–disable-site-isolation-trials');

Re: Update to CEF 78.2.14

Posted: Wed Nov 06, 2019 3:02 pm
by salvadordf
This CEF issue may be the cause of random crashes in complex sites :
https://bitbucket.org/chromiumembedded/cef/issues/2799/cefclient-crash-in-cefbrowserinfo

Re: Update to CEF 78.2.14

Posted: Thu Nov 07, 2019 5:53 am
by dian
Which is the replacement for Frame.LoadString() ?

Re: Update to CEF 78.2.14

Posted: Thu Nov 07, 2019 10:20 am
by salvadordf
dian wrote:
Thu Nov 07, 2019 5:53 am
Which is the replacement for Frame.LoadString() ?
Please, download the latest CEF4Delphi again from GitHub. It includes a new TChromium.LoadString procedure that uses a DATA URL.
If you need to load a string in a specific frame, use the second "aFrame" parameter.

The MiniBrowser demo uses it here :
https://github.com/salvadordf/CEF4Delphi/blob/172e7ba9e4ef23ff4cc6073b1766ecf7831e33f7/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L767

Re: Update to CEF 78.2.14

Posted: Thu Nov 07, 2019 5:39 pm
by thefunkyjoint
salvadordf wrote:
Wed Nov 06, 2019 3:02 pm
This CEF issue may be the cause of random crashes in complex sites :
https://bitbucket.org/chromiumembedded/cef/issues/2799/cefclient-crash-in-cefbrowserinfo
They marked the issue to 'fixed' ; does it mean the latest CEF4Delphi release already includes the fix, as it uses the latest CEF release :?:

Re: Update to CEF 78.2.14

Posted: Thu Nov 07, 2019 5:45 pm
by salvadordf
Yes, that fix is included in the latest CEF4Delphi version :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=1023

...but the shutdown issue is not fixed yet. :oops:

Re: Update to CEF 78.2.14

Posted: Fri Nov 08, 2019 1:03 am
by dian
salvadordf wrote:
Thu Nov 07, 2019 10:20 am
Please, download the latest CEF4Delphi again from GitHub. It includes a new TChromium.LoadString procedure that uses a DATA URL.
If you need to load a string in a specific frame, use the second "aFrame" parameter.
That's good but how to bind this string to certain URL?

Re: Update to CEF 78.2.14

Posted: Fri Nov 08, 2019 8:38 am
by salvadordf
That's not possible with the new TChromium.LoadString procedure.

What you describe can only be accomplished with a "filter" to replace the entire contents of a web page with your own contents.

Read this for more details :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=543&p=4196&hilit=ResponseFilterBrowser#p4196
https://www.briskbard.com/forum/viewtopic.php?f=8&t=1006&p=4425&hilit=ResponseFilterBrowser#p4425

Re: Update to CEF 78.2.14

Posted: Fri Nov 08, 2019 9:38 am
by dilfich
dian wrote:
Fri Nov 08, 2019 1:03 am
That's good but how to bind this string to certain URL?
Apparently Google realized that this function is not used for its intended purpose and stupidly removed, more or less stable version of the latter is 75.1.14. If you need the LoadString function there is no point in updates anymore. ((
filter and other crap will not replace this function (