JDK-6717783 : Multiple Mozilla tabs cause Applet bail on close
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: x86
  • Submitted: 2008-06-23
  • Updated: 2011-02-16
  • Resolved: 2008-11-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.6_04

A DESCRIPTION OF THE PROBLEM :
In Mozilla Firefox when opening the same applet in multiple tabs (or multiple windows), closing one instance of the applet will cause the other applet to crash.  This works in 1.6_03, but not in 1.6_04 or later.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open the sample applet in 2 separate Mozilla Firefox tabs.  Close either of the 2 instances.  I used the following HTML

<HTML>
<HEAD>
<TITLE>TEST APPLET</TITLE>
</HEAD>
<BODY topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<APPLET NAME="TEST APPLET" CODE="TestApplet.class" width=100% height=100%>
</APPLET>
</BODY>
</HTML>

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The applet you chose to close should exit, leaving one completely functional applet left running.
ACTUAL -
The remaining tab goes gray and the status bar indicates "Applet Test Applet bail"

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;

public class TestApplet extends JApplet
{
   public void init()
   {
      JPanel mainPanel = new JPanel();
      mainPanel.add( new JLabel( "Test Applet" ) );
      getContentPane().add( mainPanel );
   }
}
---------- END SOURCE ----------

Comments
EVALUATION This issue is no longer reproducible with the new Java Plug-In available in 6u10. Confirmed that running the test case on Solaris 10 x86 within Firefox 3 with the new Java Plug-In in multiple tabs works correctly. The migration path for users of all previous versions of the Java Plug-In is to upgrade to 6u10. Closing as a duplicate of 6622332 (Initial integration of new Java Plug-In) for bookkeeping purposes.
14-11-2008