Having used the standard WinForms WebBrowser
control in the past, I was able to get OLECMDID_SHOWSCRIPTERROR
notifications whenever a script error occurs inside the currently loaded page of the hosted web browser control.
Now I'm switching to use Chromium Embedded (through the CefSharp .NET wrapper) and look for something similar.
I could think of injecting some JavaScript code, but really would love to have a solution that does not require to alter the HTML at all.
My question:
Is it somehow possible that Chromium Embedded notifies my application when a JavaScript error occurs in the current loaded page?
(I'm also asking this in the CefSharp group ant think that this might be independent so asking it here on Stack Overflow, too)
Update 1:
I see that there seems to be an OnUncaughtException
function that currently seems to not be implemented by CefSharp. Not sure whether this is about JavaScript errors or CEF errors, though.