JDK-6721587 : Browser crash on launching applets that perform java to java-javascript communic
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u5
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2008
  • CPU: x86
  • Submitted: 2008-07-02
  • Updated: 2011-02-16
  • Resolved: 2009-03-09
Related Reports
Duplicate :  
Description
OPERATING SYSTEM
----------------
Windows Server 2008

FULL JDK VERSION
----------------
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

DESCRIPTION
-----------
Mozilla/Firefox/Netscape crashes on Windows 2008 while launching non-converted applets that perform java to java-js communication.

STEPS TO REPRODUCE
-------------------
1. Download the above mentioned Sun java build.

2. Check that java plugin is associated with Internet Explorer &
   Mozilla during installation or through the control panel.

3. Launch the below test case using mozilla/firefox/netscape. The
   browser will crash.

Expected Result:
Browser should not crash and applets should be launched smoothly.

Observed Result:
Browser crashes.

TESTCASE SOURCE
---------------
-----------------------------------------------------------------------
Test.html
-----------------------------------------------------------------------
<html>
<head/>
<body lang=EN-US style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><script>
function changeMyCar(){
	window.document.myCar.src="Ferrari.jpg";
}
</script><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal><span class=GramE><b>DOM scripting via <span class=SpellE>JSObject</span>.</b></span></p>

<p>An applet will change the car picture via <span class=SpellE>JSObject</span>.
Click on the &#8216;Upgrade My Car&#8217; button<span
style='mso-spacerun:yes'>&nbsp; </span>and observe the change.</p>

<p>

<applet code="AppScripting.class" width="400" height="30" name="Applet1" MAYSCRIPT="true">
</applet>

</p>

<p><img width=200 height=150 id="_x0000_i1028" src=Vauxhall.jpg name=myCar></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

</div>

</body>

</html>
-----------------------------------------------------------------------

-----------------------------------------------------------------------
AppScripting.java
-----------------------------------------------------------------------
import netscape.javascript.JSObject;
import java.lang.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class AppScripting extends Applet implements ActionListener{
	JSObject win;
	String dispMsg;
	private Button fireButton;

	public void init(){
		win = JSObject.getWindow(this);
		fireButton = new Button("Upgrade My Car");
		
		add(fireButton);
		fireButton.addActionListener(this);
	}

	public void actionPerformed(ActionEvent e){
		if(e.getSource() == fireButton){
			win.call("changeMyCar",null);
		}
	}


}
-----------------------------------------------------------------------

Comments
EVALUATION Duplicate of 6567254 - will create new SubCR there for backporting.
09-03-2009

EVALUATION There was a mistake in the procedure. I can see the error with jdk5_20. Ignore the previous post.
10-12-2008

EVALUATION The problem is not reproducible with jdk5_20 latest bundle. The firefox version used is 3.0.4.
10-12-2008

WORK AROUND Upgrade to JRE 6u7 or newer release.
20-11-2008

EVALUATION With windows 2008 server standard 32-bit and Firefox 3.0.4, investigation shows that this problem was fix in JRE 6u7. Trasferring this to sustaining for further investigation on which fix in 6u7 had fixed this problem and backport the fix into JRE 5.0 update release if necessary.
20-11-2008

EVALUATION This isn't reproducible with Windows Server 2008 Standard 32-bit with 6u10 FCS with either old or new java plugin. Browser is IE7.
28-10-2008