Problem
-------
Netscape 6.0/jdk1.3.0_01 does not handle getAppletContext.showDocument
correctly. The testcase show below should produce 4 netscape windows. It only
produces one window. If the same code is run on netscape 4.7 with default
jvm it works fine.
The problem occurs on Solaris as well as NT .
/**********************showdoc.java************************************/
Code Example
------------
import java.applet.Applet;
import java.applet.AppletContext;
import java.io.PrintStream;
import java.net.URL;
import javax.swing.JApplet;
public class showdoc extends Applet
{
String code_base = null;
public showdoc()
{
}
public void init()
{
System.out.println("Go...");
try
{
System.out.println("codeBase: " + getCodeBase());
code_base = getCodeBase().toString();
System.out.println("codeBase: " + code_base);
getAppletContext().showDocument(
new URL(code_base + "/test1.html"), "Alpha");
getAppletContext().showDocument(
new URL(code_base + "/test2.html"), "Beta");
getAppletContext().showDocument(
new URL(code_base + "/test3.html"), "Delta");
getAppletContext().showDocument(
new URL(code_base + "/test4.html"), "Gamma");
}
catch(Exception e)
{
e.printStackTrace();
}
System.out.println("Done.");
}
}
/**********************end showdoc.java********************************/
/********************test.html*****************************************/
<HTML>
<HEAD>
<TITLE> ShowDocument Test</TITLE>
</HEAD>
<APPLET CODE = "showdoc.class"
WIDTH = 650
HEIGHT = 450 >
</APPLET>
</BODY>
</HTML>
/******************** end test.html*************************************/
/********************test1.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST1.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST1.HTML </H1>
</BODY>
</HTML>
/******************** end test1.html*************************************/
/********************test2.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST2.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST2.HTML </H1>
</BODY>
</HTML>
/******************** end test2.html*************************************/
/********************test3.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST3.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST3.HTML </H1>
</BODY>
</HTML>
/******************** end test3.html*************************************/
/********************test4.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST4.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST4.HTML </H1>
</BODY>
</HTML>
/******************** end test4.html*************************************/
To Reproduce
------------
1. Compile the above java program.
2. Put test files in same directory.
3. Lauch netscape 6 and point browser at the test.html file.
4. Only the window showing test4.html will be displayed.
5. Launch netscape 4.76 and point browser at the test.html file.
6. All four windows will be visible.
Circumstance/Expectations
-------------------------
to fix problem or explain workaround
Other Related Information
-------------------------
-------
Netscape 6.0/jdk1.3.0_01 does not handle getAppletContext.showDocument
correctly. The testcase show below should produce 4 netscape windows. It only
produces one window. If the same code is run on netscape 4.7 with default
jvm it works fine.
The problem occurs on Solaris as well as NT .
/**********************showdoc.java************************************/
Code Example
------------
import java.applet.Applet;
import java.applet.AppletContext;
import java.io.PrintStream;
import java.net.URL;
import javax.swing.JApplet;
public class showdoc extends Applet
{
String code_base = null;
public showdoc()
{
}
public void init()
{
System.out.println("Go...");
try
{
System.out.println("codeBase: " + getCodeBase());
code_base = getCodeBase().toString();
System.out.println("codeBase: " + code_base);
getAppletContext().showDocument(
new URL(code_base + "/test1.html"), "Alpha");
getAppletContext().showDocument(
new URL(code_base + "/test2.html"), "Beta");
getAppletContext().showDocument(
new URL(code_base + "/test3.html"), "Delta");
getAppletContext().showDocument(
new URL(code_base + "/test4.html"), "Gamma");
}
catch(Exception e)
{
e.printStackTrace();
}
System.out.println("Done.");
}
}
/**********************end showdoc.java********************************/
/********************test.html*****************************************/
<HTML>
<HEAD>
<TITLE> ShowDocument Test</TITLE>
</HEAD>
<APPLET CODE = "showdoc.class"
WIDTH = 650
HEIGHT = 450 >
</APPLET>
</BODY>
</HTML>
/******************** end test.html*************************************/
/********************test1.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST1.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST1.HTML </H1>
</BODY>
</HTML>
/******************** end test1.html*************************************/
/********************test2.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST2.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST2.HTML </H1>
</BODY>
</HTML>
/******************** end test2.html*************************************/
/********************test3.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST3.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST3.HTML </H1>
</BODY>
</HTML>
/******************** end test3.html*************************************/
/********************test4.html*****************************************/
<HTML>
<HEAD>
<TITLE> THIS IS TEST4.HTML </TITLE>
</HEAD>
<BODY>
<H1> THIS IS TEST4.HTML </H1>
</BODY>
</HTML>
/******************** end test4.html*************************************/
To Reproduce
------------
1. Compile the above java program.
2. Put test files in same directory.
3. Lauch netscape 6 and point browser at the test.html file.
4. Only the window showing test4.html will be displayed.
5. Launch netscape 4.76 and point browser at the test.html file.
6. All four windows will be visible.
Circumstance/Expectations
-------------------------
to fix problem or explain workaround
Other Related Information
-------------------------