Page 1 of 1
Update to CEF 74.1.13
Posted: Thu Apr 25, 2019 8:54 am
by salvadordf
Hi,
CEF4Delphi is now updated to CEF 74.1.13 which includes Chromium 74.0.3729.108
The new CEF binaries are these :
Re: Update to CEF 74.1.13
Posted: Sat Apr 27, 2019 11:40 am
by snoop
hello, some users say this version is less stable. Some of them reported that they have browser initializtion problem after update of my program. Worked perfect before
Also, something is broken now with executing javascript in frames (I need it at one site)
this is most important now and I need your help fast please
this code worked before:
Chromium.browser.GetFrame('frame').ExecuteJavaScript('script','about:blank',0);
now this doesnt work (I think it gives an error)
I tried this way:
Chromium.ExecuteJavaScript('script','about:blank','frame',0);
doesn't work (but no errors)
Re: Update to CEF 74.1.13
Posted: Sat Apr 27, 2019 4:29 pm
by salvadordf
There's an issue in CEF with some of the frame functions in the latest binaries.
I've added an issue in the CEF project with all the details :
https://bitbucket.org/chromiumembedded/ ... le-and-not
These are some of the symptoms I found so far :
- TChromium.GetFrameNames returns an array of strings but all of them are empty.
- All TChromium functions that use a frame name will not work because TChromium.Browser.GetFrame returns NIL even with a valid frame name.
- TChromium.GetFrameIdentifiers and TChromium.Browser.GetFrameByident work correctly but all the returned frames have an empty name.
Perhaps you can use some other ICefFrame property to identify the frame you need and then you can call TChromium.ExecuteJavaScript using that ICefFrame as the third parameter.
You need to call TChromium.GetFrameIdentifiers and then call TChromium.Browser.GetFrameByident for all the identifiers until you find the one you need. Use this function and add the TChromium.Browser.GetFrameByident call :
https://github.com/salvadordf/CEF4Delph ... .pas#L1087
Re: Update to CEF 74.1.13
Posted: Sat Apr 27, 2019 6:22 pm
by snoop
Thanks this works. A bit harder but ok.
What about browser initialization? something changed? Please check possible errors
Re: Update to CEF 74.1.13
Posted: Sat Apr 27, 2019 8:11 pm
by salvadordf
snoop wrote: Sat Apr 27, 2019 6:22 pm
What about browser initialization? something changed? Please check possible errors
This time the API changes needed to update CEF4Delphi were minimal as you can see here :
https://github.com/salvadordf/CEF4Delph ... caa8a640d0
TCefRequestContextRef.ResolveHostCached was removed from the API and that function is not used in the browser initialization.
If there were initialization changes they would be in CEF or in Chromium code.
I'll test the demos in more computers to see if there's something wrong.
Please, ask the users with that issue to test one of the demos, add your application to the antivirus whitelist, etc.