Page 1 of 1

External exception 80000003 (JS)

Posted: Sat Aug 07, 2021 2:42 am
by dilfich
Updated the component from CEF 91.1.21 to version CEF 92.0.21.
External exception 80000003

Code: Select all

FChromium.Browser.MainFrame.ExecuteJavaScript(StrJS, FChromium.Browser.MainFrame.GetURL(), 0);
In the new version, errors began to occur when working with scripts, or the browser may hang at all. :(
Has something been changed in these calls?

Re: External exception 80000003 (JS)

Posted: Sat Aug 07, 2021 9:44 am
by salvadordf
Hi,

CEF has changed a few things about frame handling lately. There are new events and methods to know when a frame is valid, created, attached, detached, etc.

I would suggest that you use TChromiumCore.ExecuteJavaScript instead of using TChromiumCore.Browser.MainFrame.ExecuteJavaScript because it checks if the browser and frame are valid before executing the JS code.

Re: External exception 80000003 (JS)

Posted: Thu Dec 16, 2021 11:05 am
by dilfich
TChromiumCore.ExecuteJavaScript It didn't help.
The problem was with CEF, since after trying out version 96, such an error disappeared. :)