EVALUATION
Problem: When an AWT modal dialog is popped up through Javascript(only) the browser window doesn't receive any windows messsages and hence hangs most of the times. In this bug, the modal dialog popped up is a FileDialog and doesn't receive any key/mouse events.
This regression is a side effect of fix for 5077565,5079850. The previous fix removed code for pumping messages to the browser window while a modal dialog is active and only user messages are dispatched.
Fix: The fix proposed here is to have different codepaths (one when a modal dialog is active and the other when it is not). The fix checks for the existence of the modal dialog in the do-while loop of JavaAdapter::WaitForJS(...) method. This has to be done because WaitForJS gets called before the modal dialog comes up and so GetActiveWindow will never point to the dialog unless put into the loop.
In summary,
When modal dialog is active -> pump windows messages to the browser window
When modal dialog is not present -> pump user messages (code that currently exists after fix for 5077565,5079850)
###@###.### 2005-03-23 19:40:07 GMT
|