by kbiskar » Tue Nov 25, 2014 2:49 pm
I'm having an issue when a client may have several of our Cef1 based browsers open at the same time. Occasionally, the page won't load properly when we execute some Javascript after the OnLoadEnd event is fired. This seems to be because the DOM isn't ready at that time, so some javascript functions aren't defined by the time we call them. A simple reload of the page will fix this, but it can still happen later. I can get a workaround in by using a DOMEventListener and DOMVisitor class to wait until the DOM is loaded before executing javascript, but it seems like it should be unnecessary. Is the assumption that the DOM will always be ready before OnLoadEnd incorrect? Is this a bug in Cef1? This problem does not appear to be an issue for our Cef3 browser, but we're still in the process of moving our consumers to our Cef3 browser.