JDK-6920870 : JavaScript confirm dialogs lose focus when shown multiple times via an applet
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u17
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2010-01-28
  • Updated: 2010-07-29
  • Resolved: 2010-04-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
Vista SP1 IE7 1.5.0_17

If JavaScript dialog was shown multiple times using confirm() function via LiveConnect from
an Applet, second and later dialogs lose focus.  Users need to use mouse, etc to activate the
dialog to press OK or cancel. 

If we do the same thing using html and javascript only, then we don't see the issue.   Confirm
dialogs have focus and we can press default button by space or return key.

This did not happen with XP + IE6.
If we use FireFox3.5 on Vista SP1, the problem does not happen.  Users can press default
button on the dialog by space key or enter key without using pointing device since the
dialog has focus.

If I use 1.5.0_18 and later, I don't see the problem.

The symptom is similar to the following issue fixed in 1.5.0_18, though the actual operations
are different.

 6643769	 Applet main windows steals focus on Popup windows which is running Applet.

Due to the maintenance policy at the end user's site, my customer needs to narrow down the 
cause and get the proper fix back-ported to older release (custom revision).

EVALUATION we should investigate if this is a duplicate of 6643769.