[plugin2] showDocument() open browser window behind of applet in Firefox 3.6.xx
8(b18) (Bug ID:2207521)
, 7u4(b05) (Bug ID:2214180)
The problem is described in xxxxx BugDB 10316548 https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=10316548
The full overview of Show_Doc work can be found at :
Applet when launched in Firefox 3.6 will show new html page at the back of Applet.
New html page is opened from Applet via a call to showDocument.
This bug is logged in response to ATI bug 10311193 .
This is having same testcase as earlier reported issues for BugDB 8265526.
The URL where we implemented the testcase is
http://ap481sun.us. customer .com:6800/OA_HTML/testhtml.html
1. Open the above URL in Firefox 3.6.XX Version.
2. Press Go Button in Applet launched.
This will launch new google.com window at the back of the Applet Window.
This has worked correctly with Firefox 3.5
This has stopped working after Firefox 3.6.XX
We have tested with latest build of 1.6.0_23-ea-b01 and Firefox 3.6.12
It does not work.
This was also tested in 1.6.0_23-b05 and it reproduced.
It is available from http://jre.sfbay.sun.com/java/re/jdk/6u23/promoted/fcs/b05/bundles/
Source Code of ShowDocument.java is
public class ShowDocument extends Applet
public void init()
appletFrame = new Frame(" separateFrame Applet");
urlField = new TextField("http://www.google.com");
goButton = new Button("Go!");
exitButton = new Button("Exit");
goButton.setBounds(100, 100, 20, 20);
public void paint(Graphics g)
g.drawString("Type your URL and click go!", 20, 80);
g.drawString("Malformed URL: " + userUrl, 20, 80);
g.drawString("This Applet only allows .com domains", 20, 100);
public void actionPerformed(ActionEvent actionevent)
UrlOnError = false;
String s = actionevent.getActionCommand();
String s1 = urlField.getText();
if(s1.indexOf(".com") == -1)
UrlOnError = true;
userUrl = new URL(s1);
UrlOnError = true;
Text of testhtml.html is
<title>Show Document in Firefox seperate Frame</title>
<applet archive="/OA_JAVA/ customer /apps/fnd/jar/ShowDoc.jar"
codebase="/OA_JAVA/" code=ShowDocument.class width=460 height=160>
<param name=separateFrame value="true">
Also uploaded following files to
ftp://bugftp.us. customer .com/upload/bug_10/bug10316548
Posted Date : 2010-11-24 17:13:15.0
I discussed the situation around rework of showDocument() for Firefox
with Andrey Pikalev and Alexey Utkin. We came to agreement that:
- Technically, the most correct implementation is the implementation in pure
- There were a working JDK7-based prototype using this approach, and the webrev
of the corresponding source code changes is available here:
- We estimated the amount of work as several days for backporting the changes
to JDK 6 and building the verification binary, and, maybe, another several
days for thorough verification of the fix in different environments. So,
1-1.5 week should be enough to complete this work. Alexey's involvement
will be kept minimal. (It will be mostly for the code review part.)
- The risk of any behavior change/regressions for IE part is minimal.
For Firefox, there is a possibility of behavior change caused by the popup
blocker and security restrictions on focus transfer, but, as for IE,
we have to adhere to these restrictions and rules.
Posted Date : 2011-08-17 12:32:35.0
The verification binary is available here:
I've run the test cases in the following configurations:
Windows XP + Firefox 3.0.19/3.5.19/3.6.20/4.0.1/5.0.1/6.0
and the results are good.
An important comment here is that there are several Firefox
options that control showDocument() behavior.
- The popup blocker should be configured to enable popup
windows for that specific site:
Tools/Options/Content tab/Block popup windows = On/
Exceptions... button/Add the site address to
the exception list
Advanced... button/Raise or lower windows = On
Posted Date : 2011-08-26 13:52:45.0
The customer confirmed that the fix works well.
I'm working on its integration into 6u29 b01.
Posted Date : 2011-08-31 14:12:21.0
Due to 6uX update releases renumbering, the fix is integrated into 6u30 b08.
Posted Date : 2011-10-19 12:52:57.0
PLEASE NOTE: JDK6 is formerly known as Project Mustang