Ephox sent the test case to us at /net/cores.central.sun.com/cores/71413024
Here is the reproducible steps
- Open dist/testPage.html and click the button to raise a liveconnect call to the applet.
- A dialog should appear for a few seconds then be disposed.
- From this point on, clicking in the textbox on the page will not place the caret in this field.
I can replicate the problem with JRE 6 update 10, 11, 12, 13, 14 and 15. I can also replicate the problem on JRE 1.5.0_19 and JRE 1.5.0_17. I cannot replicate the problem with JRE 6 update 7.
If I switch to classic plugin on vista and XP issue goes away.
In the customer's code, I noticed
public void setVisible(boolean visible, Runnable runner) {
if (visible && !isVisible()) {
new Thread(runner).start();
}
super.setVisible(visible);
}
The new thread spins another thread so the drawing code is not on the EDT anymore when cu calls _dialog.dispose();
I ran jstack against Firefox and java when the problem happens. Please see attached