Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4420501

Netscape 6.0/jdk1.3.0_01 does not handle getAppletContext.showDocument

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      solaris_7, windows_nt

      Description

      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
      -------------------------

        Attachments

          Activity

            People

            Assignee:
            skatzsunw Steven Katz (Inactive)
            Reporter:
            hszyszko Henry Szyszko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: