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

[macosx] Can not open a browser window from Java Applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 9
    • 7u17, 8, 9
    • client-libs

      FULL PRODUCT VERSION :
      Java 1.7.0 Update 17 (build 1.7.0_17-b02)

      Java Plug-in 10.17.2.02
      Using JRE version 1.7.0_17-b02 Java HotSpot(TM) 64-Bit Server VM

      ADDITIONAL OS VERSION INFORMATION :
      This problem is platform specific MAC OS X running Java 1.7.
      Mac OS X 10.7.5


      A DESCRIPTION OF THE PROBLEM :
      Applet can not show a browser window using getAppletContext().showDocument(url, " _blank " );

        Program and html are below.

      I get no error. This works on
      Mac OS X 10.6.8
      Java 1.6.0_43-b01-447

      Also works on Windows all os version and Java levels.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :


      Simple class

      ------------------
      import java.applet.*;
      import java.net.*;


      public class SimpleBrowser extends Applet
      {
        public void start()
        {

          try
          {
            URL url=new URL( " http://www.yahoo.com " );
            getAppletContext().showDocument(url, " _blank " );
          }
          catch(Exception e)
          {
            System.out.println( " error= " +e.getMessage());
            System.out.println( " error string= " +e.toString());
          }

        }
      } // end of class
      -----------------------------
      Html
      <html>
      <head>
      <title>IBM Global Expense Reporting Solutions</title>
      </head>
      <body>
      <APPLET mayscript code= " SimpleBrowser.class " align= " baseline " width= " 0 " height= " 0 " >
      <param name= " archive " value= " Browser.jar " >
      </APPLET>
      </body>
      </html>


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Browser should launch and display content in a browser window.
      ACTUAL -
      No browser window displayed.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      See above -- 1 class, 1 html - very simple
      ---------- END SOURCE ----------

      SUPPORT :
      YES

            pchelko Petr Pchelko (Inactive)
            webbuggrp Webbug Group
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: