JDK-6873101 : showDocument calls result in the new browser window opening on top of the IE window
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u16
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-08-18
  • Updated: 2010-12-02
  • Resolved: 2009-12-01
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.
JDK 6 JDK 7
6u17-revFixed 7Fixed
Related Reports
Relates :  
Description
New browser window to be shown on top of the applet's window instead of the original browser window. 
Will see that new browser window opened on top of calling browser window but beyond the separate frame window.

When you uncheck "Enable the next-generation Java Plug-in" this flag from control panel, you will see correct behavior. 

See note for problem reproductions steps.
Repro test case is attached
Steps to reproduce:

ShowDocument.class*
ShowDocument.java*
applet.htm*

1) Copy class and html file in same folder
2) Launch html file
3) This will launch separate frame
4) Click on Go field

Will see that new browser window opened on top of calling browser window but beyond the separate frame window.

When you uncheck "Enable the next-generation Java Plug-in" this flag from control panel, you will see correct behavior. 

** NOTE **
the cusotmer has also provided a video file demonstrating the issue
Probl1.zip
I have provded a copy of 1.6.0_18 provided by Calvin Cheung
and it did not resolve this issue.

Comments
EVALUATION Problem: if an applet is loaded in a separate frame and showDocument with the "_blank" target is called from the applet to open a new web page in a new browser window, with the old java plugin, the window stacking order (from top to bottom) is: new browser window, applet window, original browser window. This isn't the case with the new java plugin as the stacking order is: new browser window, original browser window, applet window. Fix: on top of the fix for 6783619, we need to check if the original browser window is the same as the foreground window before setting focus on the original browser window.
21-08-2009