Vista, IE7 + 5u17 based custom revision.
While working on an IE window activation issue when one of modal dialogs is closed,
it turned out that moving focus to next modal dialog at a close of a modal
dialog was not enough.
IE window can be activated by clicking title bar even if a modal JDialog is still shown.
These are joint requests for CR 6954221 and CR 6968959.
This issue happens because the original fix for CR 6579743 does not
take into account nested modality. The following condition in
if (hWndComponent == NULL && hParent != NULL &&
IsWindowEnabled(hParent) && <<<===
does not allow to properly maintain the disabled level counter for
the native parent window of the modal dialog (that is the browser window
in the customer's test case).
There are two approaches to fix this problem:
1) To left this "native parent window" check for the modal dialog only.
In this case we can move it to AwtDialog::ModalEnable() and
2) To do the "native parent window" check for all Java windows run in
the given toolkit.
For now the first approach was chosen and successfully verified by
the customer. But in case of further modality-related problems, it makes
sense to try the second approach.