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.

External exception 80000003 (JS)

Post Reply
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

External exception 80000003 (JS)

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

Re: External exception 80000003 (JS)

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

Re: External exception 80000003 (JS)

Post by dilfich »

TChromiumCore.ExecuteJavaScript It didn't help.
The problem was with CEF, since after trying out version 96, such an error disappeared. :)
Post Reply