United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5018119 applet not working with Mozilla 1.4 Beta
JDK-5018119 : applet not working with Mozilla 1.4 Beta

Details
Type:
Bug
Submit Date:
2004-03-22
Status:
Closed
Updated Date:
2004-06-09
Project Name:
JDK
Resolved Date:
2004-05-10
Component:
deploy
OS:
solaris_8
Sub-Component:
plugin
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4_12b
Fixed Versions:
1.4.2_05 (05)

Related Reports

Sub Tasks

Description
My application uses an applet to login, the applet works fine with Mozilla 1.2,
Mozilla 1.4 I downloaded from iWork web site, but it doesn't work with 
Mozilla 1.4 Beta.

I checked those three versions of Mozilla, Mozilla 1.2 is using Java plugin
1.4.2, Mozilla 1.4 from iWork web site is using 1.4.2_03 while Mozilla 1.4 Beta
is using Java Plugin 1.4.2_02.

It looks like that Java Plugin 1.4.2_02 is a problem.

Someone else has a similar problem in Bug 5005607.

                                    

Comments
SUGGESTED FIX

In share/classes/sun/plugin/viewer/MNetscapePluginObject.java, setWindow function.
 change 
    if (width == 0 || height == 0)
  return;

  to 
     if (width == 0) width = 1;
	
     if (height == 0) height = 1;
     
      if (winID == newID) {
        if (width != this.width || height != this.height)
            setFrameSize(width, height);
            return;
      }

With this change, test relative width and height applet to make sure it works fine. The URL of the testcases is in:http://www.mozilla.org/quality/browser/front-end/testcases/oji/test7.html

###@###.### 2004-03-30
                                     
2004-03-30
EVALUATION

this bug only occurs on jre 1.4.2_02, no matter what version of mozilla is used.
###@###.### 2004-03-30

The root cause of this bug is we reject the width=0 and height=0 applet. The fix is to set width=1 and height=1 if width=0 or height=0.

Refer to the suggested fix for the fix.



###@###.### 2004-03-30
------------------------------

Since similar fix is already in Tiger, this bug is not applicable to Tiger
###@###.### 2004-05-06
                                     
2004-03-30
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_05
generic

FIXED IN:
1.4.2_05

INTEGRATED IN:
1.4.2_05

VERIFIED IN:
1.4.2_05


                                     
2004-06-18



Hardware and Software, Engineered to Work Together