rhomobile/rhodes — pull request #381 by debrajdhar (2014-09-05 09:47:10+00:00)
Title: Blr sr 147561

Hi, This is the fix for SR EMBPD00147561,where BadLink page is not displayed.
This fix is for IE engine in windows CE device, The previous fix i have given was for WM devices in the following link..
https://github.com/rhomobile/rhodes/pull/378

The fix is almost similar, creating a navigation thread and wait till the event m_hNavigated is signalled , or wait for timeout(45 seconds)
The difference is, here we have to handle DISPID_NAVIGATEERROR which is thrown in the invoke function, and we have to put a sleep of 400 milliseconds, to navigate to the badlink, else due to synchronization issue in the CE browser, the bad link is not navigated when we call the sendmessage function to the parent window with the message WM_BROWSER_ONNAVIGATIONERROR.(line 324)
I found the sleep time of 400 MS working perfectly after lot of trial and error .. Let me know if there is any other way to solve the same without using SLEEP command..Thanks