United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6873101 showDocument calls result in the new browser window opening on top of the IE window
JDK-6873101 : showDocument calls result in the new browser window opening on top of the IE window

Details
Type:
Bug
Submit Date:
2009-08-18
Status:
Closed
Updated Date:
2010-12-02
Project Name:
JDK
Resolved Date:
2009-12-01
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u16
Fixed Versions:
6u18 (b03)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

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.
                                     
2009-08-21



Hardware and Software, Engineered to Work Together