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

deployJava.js not detecting browser plugin in Firefox

    Details

    • Subcomponent:
    • Introduced In Version:
    • CPU:
      x86
    • OS:
      other

      Description

      FULL PRODUCT VERSION :
      java -version
      java version "1.8.0_121"
      Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
      Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10 Pro

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Firefox Version
      50.1.0
      Firefox Release
      December 13, 2016

      A DESCRIPTION OF THE PROBLEM :
      Has anything changes within the deployJava.js script? From last night, my java applet has stopped loading in firefox in multiple locations.

      Firefox has not updated since 15th December, the application and code has not changed for months, which leads me to believe it could be deployJava.js

      On my page, i wrote console.log(deployJava) and in browserName2 it states, FirefoxNoPlugin

      The page displays:
      Java Plug-in is not supported by this browser. More info

      I have uninstalled and reinstalled Java, no joy.

      The strange thing is, if i goto the java.com website and click do i have Java, the applet
      loads! However, im not sure if the official Java website uses the actual deployJava.js code.

      In firefox, i have checked the plugins to make sure they are there and are active.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      var JAVA_MIN_VER = "1.5"
      var APPLET_NAME = 'qz';
      var APPLET_REF = 'Label Print';
      var APPLET_URL = '<?php echo "$project_url/qz-print.1.8.0/"; ?>';
      var APPLET_OURL = '<?php echo "$project_url/qz-print.1.8.0/jre6/"; ?>';
      var APPLET_CLASS = 'qz.PrintApplet.class';

      var attributes = {
                                          id: APPLET_NAME,
                                          code: APPLET_CLASS,
                                          codebase: APPLET_URL,
                                          archive: 'qz-print.jar',
                                          width: 0,
                                          height: 0
                                      };
                                      var parameters = {
                                          jnlp_href: 'qz-print_jnlp.jnlp',
                                          cache_option: 'plugin',
                                          cache_archive: 'qz-print.jar',
                                          cache_version: '0.1.8.0',
                                          cache_archive_ex: 'qz-print.jar;preload',
                                          disable_logging: 'false',
                                          initial_focus: 'false'
                                      };

                                      if (deployJava.versionCheck("1.7+") == true) {
                                          alert("OK");
                                      }
                                      else if (deployJava.versionCheck("1.6+") == true) {
                                          attributes['archive'] = 'qz-print.jar';
                                          attributes['codebase'] = APPLET_OURL;
                                          parameters['jnlp_href'] = 'qz-print_jnlp.jnlp';
                                      }

                                      deployJava.installJRE = function (requestVersion, ignore) {
                                          alert("Sorry, Java " + requestVersion + " does not appear to be installed");
                                      }

                                      console.log(deployJava);

                                      deployJava.runApplet(attributes, parameters, JAVA_MIN_VER);
      ---------- END SOURCE ----------

        Issue Links

          Activity

          Hide
          pardesha Pardeep Sharma added a comment -
          Couldn't locate an official documentation, but it seems that Mozilla FF support with FF versions 50.1.0 and 51.0.1 is affected. The respective applets run fine in IE 11.306, therefore does not looks like a DeployJava.js issue.
          OS: Windows 10 (64-bit)
          FF 45.7.0 ESR 64-bit: OK
          FF 50.1.0 64-bit: FAIL
          FF 51.0.1 64-bit: FAIL
          Note: ESR 45.7 coincides with 52.0.

          According to:
          https://support.mozilla.org/t5/Firefox/I-got-a-notice-of-a-Java-update-Installed-it-The-verification/m-p/1356879
          Windows 64-bit version of Firefox doesn't support Java.
          To reproduce, simply run an applet example in FF (32-bit) versions 50.1.0 and 51.0.1 (See attached screenshot for outcome).
          https://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html
          (See attached screenshot for outcome).
          Written back to the submitter to reconfirm status with the above browser configurations.
          Show
          pardesha Pardeep Sharma added a comment - Couldn't locate an official documentation, but it seems that Mozilla FF support with FF versions 50.1.0 and 51.0.1 is affected. The respective applets run fine in IE 11.306, therefore does not looks like a DeployJava.js issue. OS: Windows 10 (64-bit) FF 45.7.0 ESR 64-bit: OK FF 50.1.0 64-bit: FAIL FF 51.0.1 64-bit: FAIL Note: ESR 45.7 coincides with 52.0. According to: https://support.mozilla.org/t5/Firefox/I-got-a-notice-of-a-Java-update-Installed-it-The-verification/m-p/1356879 Windows 64-bit version of Firefox doesn't support Java. To reproduce, simply run an applet example in FF (32-bit) versions 50.1.0 and 51.0.1 (See attached screenshot for outcome). https://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html (See attached screenshot for outcome). Written back to the submitter to reconfirm status with the above browser configurations.
          Hide
          scfitch Stephen Fitch added a comment -
          Assigned for initial review
          Show
          scfitch Stephen Fitch added a comment - Assigned for initial review
          Hide
          pardesha Pardeep Sharma added a comment - - edited
          Here is the status with another check, this time with Windows 7 (64-bit) with similar browsers and Java configurations.
          FF browser version: FF 51.0.1 (32-bit)
          Results with JRE 8u112 b15:
          Verfication applet (https://www.java.com/en/download/installed.jsp): OK
          Other example applet (https://docs.oracle.com/javase/tutorial/deployment/applet/examples/dist/applet_AppletWithCustomProgressIndicator/AppletPage.html
          ): OK

          Results with JRE 8u121 b13:
          Verfication applet (https://www.java.com/en/download/installed.jsp): OK
          Other example applet (https://docs.oracle.com/javase/tutorial/deployment/applet/examples/dist/applet_AppletWithCustomProgressIndicator/AppletPage.html
          ): FAIL

          From the above it seems a regression with 8u121. Also note in the (screenshots) that we receive two warning dialogs when running the Other example applet and even after accepting to "Activate Java", it just disappears with only only text dialog "Java Plug-in is not supported by this browser". Clicking on More info leads to download page, even though 8u121 is installed and confirmed.

          Note: Checked with 9 ea b155 and the issue is not reproducible.
          Show
          pardesha Pardeep Sharma added a comment - - edited Here is the status with another check, this time with Windows 7 (64-bit) with similar browsers and Java configurations. FF browser version: FF 51.0.1 (32-bit) Results with JRE 8u112 b15: Verfication applet ( https://www.java.com/en/download/installed.jsp): OK Other example applet ( https://docs.oracle.com/javase/tutorial/deployment/applet/examples/dist/applet_AppletWithCustomProgressIndicator/AppletPage.html ): OK Results with JRE 8u121 b13: Verfication applet ( https://www.java.com/en/download/installed.jsp): OK Other example applet ( https://docs.oracle.com/javase/tutorial/deployment/applet/examples/dist/applet_AppletWithCustomProgressIndicator/AppletPage.html ): FAIL From the above it seems a regression with 8u121. Also note in the (screenshots) that we receive two warning dialogs when running the Other example applet and even after accepting to "Activate Java", it just disappears with only only text dialog "Java Plug-in is not supported by this browser". Clicking on More info leads to download page, even though 8u121 is installed and confirmed. Note: Checked with 9 ea b155 and the issue is not reproducible.
          Hide
          dmarkov Dmitry Markov added a comment -
          The problem is already fixed by JDK-8173911.
          Closing this one as dupe.
          Show
          dmarkov Dmitry Markov added a comment - The problem is already fixed by JDK-8173911 . Closing this one as dupe.

            People

            • Assignee:
              dmarkov Dmitry Markov
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: