Closed
Bug 187649
Opened 22 years ago
Closed 21 years ago
First call from Javascript to Java applet hangs the browser for about 10sec
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 191035
People
(Reporter: rich, Assigned: joshua.xia)
Details
Attachments
(1 file)
(deleted),
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212
When running a page with a Java applet and Javascript that calls it, the first
time you call from Javascript to Java, the browser hangs for several seconds
(cursor stays as a hand, and you can't close the browser, or get any
interactivity). Perhaps the Java plugin (Sun 1.4.1_01) is doing a security
check? Browser also jumps to 100%CPU for this duration.
This works fine for 2nd and later calls from Javascript to Java.
This happens in Netscape 7 as well. It doesn't happen with the same Sun Java in
IE 6.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Comment 1•22 years ago
|
||
with apologies to Sun... Here is a zip of an HTML page and a java applet (based
on Bubbles) that displays the problem. The first click on the "reset" link
will hang for about 10 seconds. The applet simply writes "reset" to the
console when it finally gets called. 2nd and later clicks on reset happen
immediately.
Comment 2•22 years ago
|
||
--> OJI
Assignee: rogerl → joshua.xia
Component: Live Connect → OJI
QA Contact: pschwartau → petersen
javascript function to demonstrate the bug:
The second alert takes a long time on the first execution of the function.
Bugzilla build ID = 2003071814
---------------------------------------------------------------------
function doIt()
{
alert ("getting data");
var str = document.applets[0].getHTMLSummaryData();
alert ("opening window");
var msgWindow = window.open("","anything");
msgWindow.document.open();
msgWindow.document.write(str);
msgWindow.document.close();
}
---------------------------------------------------------------------
*** This bug has been marked as a duplicate of 191035 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•