Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2694

Hudson web pages invoke browser java plugin unecessarily

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      Viewing the hudson pages in your web browser causes the java plugin for that
      browser to start up even though hudson doesn't currently use any java applets.

      It appears that the following code in hudson-behaviour.js is the culprit:

      // are we run as unit tests?
      var isRunAsTest = (function() {
      try

      { return Packages.java.lang.System.getProperty("hudson.unitTest")!=null; }

      catch(e)

      { return false; }

      })();

      If the System Property retrieval is removed then the java browser plugin no
      longer initializes as a result of loading Hudson web pages.

          [JENKINS-2694] Hudson web pages invoke browser java plugin unecessarily

          scribnerc added a comment -

          If you have the Java 6 Update 10 plugin installed, and are using the Hudson Plot
          plugin, when you try to view a plot it causes Firefox to hang or even crash.
          The proposed code changes fixes the hang/crash.

          scribnerc added a comment - If you have the Java 6 Update 10 plugin installed, and are using the Hudson Plot plugin, when you try to view a plot it causes Firefox to hang or even crash. The proposed code changes fixes the hang/crash.

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/Functions.java
          trunk/hudson/main/core/src/main/resources/lib/layout/layout.jelly
          trunk/hudson/main/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java
          trunk/hudson/main/war/resources/scripts/hudson-behavior.js
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=13546
          Log:
          [FIXED JENKINS-2694] Detection of the test mode now is done by Java code

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/Functions.java trunk/hudson/main/core/src/main/resources/lib/layout/layout.jelly trunk/hudson/main/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java trunk/hudson/main/war/resources/scripts/hudson-behavior.js trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=13546 Log: [FIXED JENKINS-2694] Detection of the test mode now is done by Java code

            Unassigned Unassigned
            the_fire the_fire
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: