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

Deployment toolkit: launchWebStartApplication JavaScript function breaks history

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 7-pool
    • 6u18
    • deploy
    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.6.0_18"
      Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
      Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux 2.6.18-164.10.1.el5PAE #1 SMP Thu Jan 7 20:37:53 EST 2010 i686 i686 i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Firefox 3.5.7

      A DESCRIPTION OF THE PROBLEM :
      I am trying out the new functionality to allow deployment of JNLP files without the codebase - to do this I use the JavaScript functionality at http://java.com/js/deployJava.js. I have a link of
      <a href="javascript:deployJava.launchWebStartApplication('http://web.example.com/webstart/app.jnlp&#39;);">WebStart</a></td>

      Clicking on this link correctly launches my application if I have JRE 1.6.0_18 installed. However, my browser history now contains two extra entries, a "wyciwyg" link and the current page again. This means that clicking "Back" now relaunches the WebStart application instead of going back one page.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Open Firefox
      2. Go to http://www.google.com
      3. Go to http://java.sun.com/docs/books/tutorial/deployment/webstart/examples/dist/webstart_ComponentArch_DynamicTreeDemo/JavaWebStartAppPage_No_Codebase.html
      4. Click on either the text link or the Launch icon - the application launches
      5. Close the webstart application that just launched
      6. Click on the "Back" button of the browser

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      After clicking "Back", we should be back at the Google home page.
      ACTUAL -
      The webstart application is launched a second time and Firefox presents a blank page.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 6u17
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.
      this functionality did not exist in 6u17, so it cannot be the case that this behavior is a regression in 6u18.

            ngthomas Thomas Ng (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: