Firefox 6 + noscript or adblock plus enabled hangs Java

Ask for help about NoScript, no registration needed to post
mwildam

Firefox 6 + noscript or adblock plus enabled hangs Java

Post by mwildam »

The Java test page http://www.java.com/en/download/testjava.jsp hangs Firefox 6 on Ubuntu if noscript or adblock plus is enabled (one of those two is sufficient to enable to hang it).

Same page works in Chrome or if both addons are disabled.

Same effect is for Java 6 update 26 (current partner repository java version) as well as for Java 7 (all alternatives changed appropriately).

There are other Java test pages that work - it looks like as soon as graphics are involved it does not work. I tried a lot of options, allowing java even for untrusted sites etc. - nothing helped.

I have the same effect on different machines - one running either older version of Firefox so I assume the problem got introduced with some version of Noscript because it already worked with Java 6 Update 26 and older version of Firefox and NoScript.
Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Firefox 6 + noscript or adblock plus enabled hangs Java

Post by dhouwn »

The Java plugin is not running in its own process, is this correct?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0
mwildam

Re: Firefox 6 + noscript or adblock plus enabled hangs Java

Post by mwildam »

It looks, like it is not running in a separate process - thanks for that question - I discovered that first I get this:

Code: Select all

mwildam   3088  1958  0 17:26 ?        00:00:00              |   \_ /bin/sh -c firefox
mwildam   3089  3088  2 17:26 ?        00:01:45              |       \_ /usr/lib/firefox-6.0/firefox-bin
mwildam   3091  3089  0 17:26 ?        00:00:00              |           \_ [firefox-bin] <defunct>
mwildam   4286  3089  0 18:35 ?        00:00:00              |           \_ /usr/lib/firefox-6.0/plugin-container /opt/google/talkplugin/libnpgoogletalk.so -greomni /usr/lib/firefox-6.0/omni.jar 3089 tr
ue plugin
mwildam   4290  3089  1 18:35 ?        00:00:07              |           \_ /usr/lib/firefox-6.0/plugin-container /usr/lib/flashplugin-installer/libflashplayer.so -greomni /usr/lib/firefox-6.0/omni.jar 
3089 true plugin
mwildam   4469  3089 53 18:42 ?        00:00:02              |           \_ /opt/java/jdk1.7.0/jre/bin/java -D__jvm_launched=5630576888 -Xbootclasspath/a:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/deploy.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/javaws.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/plugin.jar -Djava.class.path=/usr/lib/jvm/java-6-sun-1.6.0.26/jre/classes -Dsun.awt.warmup=true sun.plugin2.main.client.PluginMain write_pipe_name=/tmp/.com.sun.deploy.net.socket.3089.4997961700107276168.AF_UNIX
And after a while, process 4469 is gone.

I don't understand, why it tries to load jdk1.7.0 having classpath set to java-6-sun-1.6.0.26. Alternatives for all Java relevant commands are set to java-6-sun-1.6.0.26.

But: Effect is a little different now. The Java-cup-animation starts and then the area gets white - Firefox does not crash any more.
What I have done in the meantime is: I inistalled Java 7 to find out, whether it works with the Java 7 plugin or not - it does not.
Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Firefox 6 + noscript or adblock plus enabled hangs Java

Post by Giorgio Maone »

mwildam wrote:I have the same effect on different machines - one running either older version of Firefox so I assume the problem got introduced with some version of Noscript because it already worked with Java 6 Update 26 and older version of Firefox and NoScript.
I cannot reproduce on Natty with Firefox 6 (tried 5 too), Java 1.6.0_26 and NoScript 2.1.2.7rc3.

Could you check on a clean profile with just NoScript installed?

However the 7 binary with 6 JDK mixage might explain your problem.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Firefox 6 + noscript or adblock plus enabled hangs Java

Post by dhouwn »

Side note: You could set dom.ipc.plugins.java.enabled to true to run Java in its own process so it shouldn't hog Firefox at least. Though I have no idea why the default setting is false, maybe because the Java plugin itself is not doing much?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0
Post Reply