Page 1 of 1

CEF4Delphi recent updates

Posted: Wed Dec 04, 2019 11:02 am
by salvadordf
Hi,

CEF4Delphi has been updated with the following changes :
  • TChromium.CreateClientHandler now tries to create the resource request handler when you call it before showing a new tab or popup window.
  • New TChromium.AcceptLanguageList property. This property modifies the browser preferences and it can be called after TChromium.CreateBrowser. It accepts the same values as GlobalCEFApp.AcceptLanguageList and TChromium.Options.AcceptLanguageList.
  • New menu option to set the Accept Language List in MiniBrowser to test the new TChromium.AcceptLanguageList property.
  • CookieVisitor now uses the TChromium.OnCanSaveCookie event to block some cookies from a custom domain.
  • Added GlobalCEFApp.DisableSiteIsolationTrials property. This property adds the "--disable-site-isolation-trials" command line switch when CEF is initialized.
The description for the "--disable-site-isolation-trials" switch is this :
Disables site isolation. Note that the opt-in (to site-per-process, isolate-origins, etc.) via enterprise policy and/or cmdline takes precedence over the kDisableSiteIsolation switch (i.e. the opt-in takes effect despite potential presence of kDisableSiteIsolation switch). Note that for historic reasons the name of the switch misleadingly mentions "trials", but the switch also disables the default site isolation that ships on desktop since M67. The name of the switch is preserved for backcompatibility of chrome://flags.
GlobalCEFApp.DisableSiteIsolationTrials is a workaround for cross origin errors and it's equivalent to the "Site isolation trial opt-out" flag in Chrome.

The CEF binaries used in this version are the same as the previous release :
https://www.briskbard.com/forum/viewtop ... f=8&t=1047

Re: CEF4Delphi recent updates

Posted: Thu Dec 12, 2019 11:37 am
by salvadordf
I'm not aware of any issues related to that workaround but I don't work for Google and I'm not in the Chrome development team so my information is limited.

The site isolation feature is a security feature and it's not recommended to disable it but it still has some known unresolved issues.

Read this for more information :
https://www.chromium.org/Home/chromium- ... -isolation
https://bitbucket.org/chromiumembedded/ ... er-process