Re: Problem Registering a JavaScript Extension
Posted: Thu Sep 12, 2019 9:54 am
Please, download CEF4Delphi again from GitHub.
The JS extension demos have more debug information now. JSExtension and JSRTTIExtension will create a "debug.log" file where they add custom messages with CefDebugLog calls as you can see in the GlobalCEFApp_OnWebKitInitialized procedure.
CefDebugLog also adds the process ID (PID) to the debug.log file to debug the renderer process with the "Run->Run Without Debugging..." option in Delphi as described here :
https://www.briskbard.com/index.php?lan ... #debugging
Check the log file to see if the extension was registered successfully.
The extension should be registered all the time but in some rare cases it's "undefined" :
https://magpcss.org/ceforum/viewtopic.p ... 69&p=40484
PS : I removed the mutation observer from the JSRTTIExtension demo because of this :
https://stackoverflow.com/questions/323 ... -input-tag
The JS extension demos have more debug information now. JSExtension and JSRTTIExtension will create a "debug.log" file where they add custom messages with CefDebugLog calls as you can see in the GlobalCEFApp_OnWebKitInitialized procedure.
CefDebugLog also adds the process ID (PID) to the debug.log file to debug the renderer process with the "Run->Run Without Debugging..." option in Delphi as described here :
https://www.briskbard.com/index.php?lan ... #debugging
Check the log file to see if the extension was registered successfully.
The extension should be registered all the time but in some rare cases it's "undefined" :
https://magpcss.org/ceforum/viewtopic.p ... 69&p=40484
PS : I removed the mutation observer from the JSRTTIExtension demo because of this :
https://stackoverflow.com/questions/323 ... -input-tag