JDK-6780276 : Applet calls JS window.open() causes a new window to open in the background
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u11
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-12-04
  • Updated: 2010-05-11
  • Resolved: 2008-12-04
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM)
Client VM (build 11.0-b15, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP

EXTRA RELEVANT SYSTEM CONFIGURATION :
IE 6 and 7

A DESCRIPTION OF THE PROBLEM :
In update 10, when applet calls a JavaScript function that executes "window.open()", the resulting browser window opens in the background, behind the current browser. We tried giving the new browser window focus to bring it to the foreground, but that does not work. Calling the same "window.open()" in HTML will open a new window in the foreground.

We observed that when the new window opens, it looks like the window tries to grab focus because the title bar is highlighted as if it is the active application. Then after a few seconds, it flashes between active and inactive and finally settles into inactive state behind the current window.

This problem only occurs in update 10 when I have the "Enable the next-generation Java Plug-in" option checked in the control panel.


REPRODUCIBILITY :
This bug can be reproduced often.

---------- BEGIN SOURCE ----------
Uncheck the "Enable the next-generation Java Plug-in" option in the control panel.
---------- END SOURCE ----------

Release Regression From : 6u7
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION Duplicate of 6776124.
04-12-2008