Closed Bug 84864 Opened 23 years ago Closed 23 years ago

Mozilla freezes when clicking clicking on Javascript URL

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 83698

People

(Reporter: subsolar, Assigned: xiaobin.lu)

References

()

Details

(Keywords: hang)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i686; en-US; rv:0.9.1+) Gecko/20010608
BuildID:    2001060811

Mozilla will freeze on the "Click on a color to paint" when you choose any color
for any model

Reproducible: Always
Steps to Reproduce:
1.Go to http://www.honda2001.com/models/civic_coupe/customize.html
2.Choose any model car.
3.Click on any paint color

Actual Results:  Mozilla freezes and become unresponsive

Expected Results:  Should change the color of the car to whatever paint color
you choose.
The site uses an applet:

<APPLET NAME="a" CODEBASE="/models/customize/java" CODE="HondaLayersWin.class" 
 WIDTH="355" HEIGHT="153">


And here is part of the JavaScript:


function selectcolor(color) {
  if (!document.applets || !document.applets[0].isActive()) 
    return;
  
  var returnVal = 0;
  if (color!="") {        
    //turn off current images
    loopstart = eval('layerstart_'+selected_color);
    loopend = 1+numofaccessories+loopstart;

    for (var i=loopstart; i<loopend; i++) {
      returnVal = document.applets[0].hideLayer(i);
      if (returnVal==0) return;       
    }
      
    selected_color = color;
    //turn on current images
    loopstart = eval('layerstart_'+selected_color);
    loopend = 1+numofaccessories+loopstart;
 
    for (var i=loopstart; i<loopend; i++) {
      returnVal = document.applets[0].showLayer(i);      
      if (returnVal==0) return;   
    }
  }
}
        
Reassigning to OJI and to Xiaobin for advice. This bug is a 
duplicate of another OJI/LiveConnect bug, but I'm not sure which one. 

I have no problem with this site on WinNT (build 20010607xx).
I only have a problem on Linux (same build date). 

However, if I first bring up the Java Console on Linux, 
BEFORE trying this site, everything works fine. So is this
therefore a problem with the "lazy loading" of the JVM? 

I had wanted to mark this as a duplicate of bug 84526, but 
I'm not sure they are the same. Bug 84526 actually brings down 
my entire Linux box, whereas this bug only makes Mozilla hang -
Assignee: rogerl → xiaobin.lu
Status: UNCONFIRMED → NEW
Component: Javascript Engine → OJI
Ever confirmed: true
Keywords: hang
QA Contact: pschwartau → shrir
Phil:
   This is the bug Joe is fixing now for Unix platform.

*** This bug has been marked as a duplicate of 83698 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Thank you - marking Verified Duplicate - 
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.