Skip to content

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

Closed

Description

@jenkins-infra-bot

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.


Originally reported by the_fire, imported from: Hudson web pages invoke browser java plugin unecessarily
  • status: Closed
  • priority: Major
  • component(s): core
  • resolution: Fixed
  • resolved: 2008-12-12T17:35:27+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

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.

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Dec 4, 2008

    @jenkins-infra-bot
    Author
    scribnerc:
    • Original comment link
    • Raw content of original 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.

    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.

  2. jenkins-infra-bot commented on Dec 12, 2008

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original 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

    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

  3. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions