Closed Bug 108242 Opened 23 years ago Closed 22 years ago

Java applet fails to make HTTP connection, throwing access denied exception or even locking up, when called from Javascript

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: pp, Assigned: joshua.xia)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) BuildID: 2001101117 Clicking on any of the links at http://pp.siedziba.pl/mozilla should open a pop- up window with "Test passed!" message in it. In Mozilla the first link causes a deadlock, the second displays a window with "null" text and "access denied" message on status bar, only the last one work as expected. Reproducible: Always Steps to Reproduce: 1.Load the page at http://pp.siedziba.pl/mozilla 2.Wait for the applet to finish loading 3.Click on the links Actual Results: Link 1 - deadlock, browser doesn't respond Link 2 - messagebox appears with "null" message in it Link 3 - messagebox appears with "Test passed!" message Expected Results: "Test passed!" message should appear in all cases.
--> OJI cc'ing Patrick
Assignee: rogerl → joe.chou
Status: UNCONFIRMED → NEW
Component: Live Connect → OJI
Ever confirmed: true
QA Contact: pschwartau → pmac
Looks like test #2 fails due to Java Plugin bug #4473593, and it is duplicate of Mozilla bug #86437. It works fine after installing JRE 1.4.0 beta 3. Test #1 seems to be a different problem, though. At the first glance it doesn't seem to be a Java bug since it works on Internet Explorer with Java Plugin installed as default Java Runtime. I will try to investigate more on this problem.
Both of the remaining tests run just fine with the MRJ plugin for Mac OS X (as of v1.0d5).
I have modified com_thread.java file a bit so I could see on Java Console how far it goes. In my case it freezes at line: OutputStream os=c.getOutputStream(); It won't go any further until Javascript call to document.comapplet.post() returns. Then it continues execution. See test #4 at http://pp.siedziba.pl/mozilla. This test freezes the browser for 10 seconds, then displays "null" (should display "Test passed!")
Chris Petersen is a new QA contact for oji component. His email is: petersen@netscape.com
Assignee: joe.chou → petersen
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → joe.chou
QA Contact: pmac → petersen
I take it
Assignee: joe.chou → joshua.xia
Confirm bug on windows2000 bug works for me on Linux
Yes, this bug is Windows specific. I have retested it on Windows XP using Mozilla 1.2, Phoenix 0.5, with Sun's JRE 1.4.1 - result is the same. However, it works fine on my Linux box.
-- Verified it on latest trunk build on Win2K with JRE1.4.2_Beta. All the tests are passing. Marking WORKSFORME.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
-- Reporter, if you still see the problem with the latest JRE, please reopen the bug. Marking VERIFIED.
Status: RESOLVED → VERIFIED
QA Contact: cpetersen0953 → dsirnapalli
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.