Closed Bug 138528 Opened 22 years ago Closed 20 years ago

Assigning JS Var to Applet's name hangs browser

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME
mozilla1.0

People

(Reporter: koan620, Assigned: joshua.xia)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1)
Gecko/20020417
BuildID:    2002041711

This Problem has daunted me since 0.9.7 (occurs in 0.9.8 and 0.9.9 as well as
1.0rc1)

1) I Load a basic HTML page with an applet. 
2) The applet's start() method calls the JS function forward() from the HTML page.
3) only the alert statement in the forward() function before the assignment
actually works. 

Sample Code:
-----------------------------------


<HTML>
<HEAD>
<TITLE>SupFS LMS - Student Login</TITLE>
<META http-equiv="expires" CONTENT="-1">
<META http-equiv="Pragma" CONTENT="no-cache">

<SCRIPT language="javascript">

var API = null;

function forward() {
// called from LMSAPIAdapter.start()

//statement works;
alert('forward call1');

//this line causes the problem!! 
API=window.document.LMSAPIAdapter;

//statement never executed
alert('forward call2');


}

</SCRIPT>

</HEAD>

<BODY BGCOLOR="#006699" MARGINHEIGHT=0 MARGINWIDTH=0 TOPMARGIN=0 LEFTMARGIN=0>
<IFRAME HEIGHT="100%" WIDTH="150" SCROLLING="auto" id="ControlFrame"
name="ControlFrame" HSPACE=0 VSPACE=0 src="blank.html" $
<IFRAME FRAMEBORDER=0 HEIGHT="100%" WIDTH="100%" SCROLLING="auto"
id="ContentFrame" name="ContentFrame" HSPACE=0 VSPACE=0 sr$
<APPLET code="client/APIAdapterApplet.class"
        archive="cmi.jar,lmsclient.jar,debug.jar"
        codebase="/lms"
        src="/lms"
        height="0"
        name="LMSAPIAdapter"
        width="0"
        scriptable="true"
        MAYSCRIPT="true"
        MAYSCRIPT
        SCRIPTABLE>
  <param name="code" VALUE = "client/APIAdapterApplet.class" >
  <param name="codebase" VALUE = "/lms" >
  <param name="type" VALUE="application/x-java-applet;version=1.4">
  <param name="mayscript" VALUE="true" >
  <param name="scriptable" VALUE="true" >
  <param name="archive" VALUE = "cmi.jar,lmsclient.jar,debug.jar">
</APPLET>


</BODY>
</HTML>


Reproducible: Always
Steps to Reproduce:
1. load html page with applet
2. wait

Actual Results:  Alert Statement #1 executes.
Browser/Plugin Hangs.

Expected Results:  Alert Statement #1 executes.
Alert Statement #2 executes.

This is done with JRE 1.4.0
In Linux, the code works fine.
Target Milestone: --- → mozilla1.0
Chris Petersen is a new QA contact for oji component. His email is:
petersen@netscape.com
Assignee: joe.chou → petersen
Status: UNCONFIRMED → NEW
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → joe.chou
QA Contact: pmac → petersen
reassign to me
Assignee: joe.chou → joshua.xia
Status: NEW → UNCONFIRMED
"Reporter: Can you reproduce this bug with a recent build of Mozilla (for
example, 1.4 RC1)? If so, then please comment again with details. If not, then
please resolve this bug as WORKSFORME. Thanks."
I'm closing this one, becuase their has been no response from the reporter.

If this bug still appears feel free to reopen
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.