Closed Bug 87546 Opened 23 years ago Closed 11 years ago

getApplets in Java AppletContext does not work.

Categories

(Core Graveyard :: Java: OJI, defect, P2)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: dknowles, Unassigned)

References

()

Details

(Whiteboard: [jpibug])

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1)
Gecko/20010607 Netscape6/6.1b1
BuildID:    2001060703

The function call getApplet and getApplets in the class
java.applet.AppletContext do not work. This means that it is impossible for one
applet to locate another in the same web page. The same applets work fine in the
following web browsers:
All Netscape up to 4.77
All IE up to 5.5
All Opera up to 5

All versions of Mozilla exhibit the same bug.

Reproducible: Always
Steps to Reproduce:
1. Go the the specified URL.
2. Click the button on the second applet. No other applets are displayed
3. None of the other applets list. This is erroneous.

Actual Results:  getApplet called failed to find other applets.

Expected Results:  getApplet call in the applet should have listed the other
applet on the page.
OJI? Java APIs to Webshell?
Assignee: asa → edburns
Component: Browser-General → OJI
QA Contact: doronr → shrir
Accept.  GOOD ONE!
Severity: major → normal
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P2
I have filed bugtraq bug 4475606 on this.  jpibug
Assignee: edburns → James.Melvin
Status: ASSIGNED → NEW
Whiteboard: [jpibug]
jpibug invalid
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
According to Steve Katz <skatz@east.sun.com> this bug has been fixed in 
JDK1.4.  The bugtraq bug has been closed.
*** Bug 88597 has been marked as a duplicate of this bug. ***
This is just a comment and feel free to ignore this however the bug was listed 
as will be fixed by using Java version 1.4.

I have noticed that Opera 5.0 uses an almost identical system to mozilla for 
handling Java applets and that this program does not exhibit this error (JRE 
1.3).

Does this imply that the fault may be related to something else?
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
*** Bug 91628 has been marked as a duplicate of this bug. ***
SPAM: reassigning all OJI bugs to new OJI QA, pmac ( 227 bugs)
QA Contact: shrir → pmac
with java plugin 1.3.1_01 i see this :

Results of getApplets():
- GetApplets by Kathy Walrath
________________________
getApplet() works under certain conditions. See 
http://www.highscore.de/mozilla/getapplet.html
I have retested this bug using Mozilla 0.95 and JRE 1.4 beta 2.  The bug is 
intermitent.  Sometimes the browser finds the applets, sometimes not.  My test 
program reads the applet context in the "start" method.  Could it be that the 
start method is being called BEFORE all the components on an HTML page are 
fully loaded an initialized?

This was a bug in some earlier version of Netscape.
The method getApplets only gives one applet on the page, not all of them. 
Actually, it gives the last applet on the page.
getApplet() still doesn't work (tested with Mozilla 0.9.9, Windows 98, SUN JRE 
1.4.0, http://www.highscore.de/mozilla/getapplet.html). 
However after reloading the page several times the first applet finds the 
second sometimes and the second the first. But I didn't get both applets to 
find each other. 
Will this bug ever be fixed?? Using Mozilla 1.0 and JRE 1.4.0 the testcase at 
http://www.highscore.de/mozilla/getapplet.html still doesn't work. 
Chris Petersen is a new QA contact for oji component. His email is:
petersen@netscape.com
Assignee: James.Melvin → petersen
Status: REOPENED → 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
Testcase in URL works for me: Following is the result in second applet
Results of getApplets():
- GetApplets by Kathy Walrath
- Receiver (named old pal) by Kathy Walrath
- Sender by Kathy Walrath
________________________
http://www.highscore.de/mozilla/getapplet.html also works for me.
Linux/Windows2000 mozilla1.2.1 JRE1.4.1_01

Reporter: Can you try latest JRE? Thanks
Whiteboard: [jpibug] → [jpibug], close
fixed
Status: NEW → RESOLVED
Closed: 23 years ago22 years ago
Resolution: --- → FIXED
-- Verified on the latest trunk on WinXP with JRE1.4.1_02. Works fine. Clicking
on the button of second applet lists all the applets in the page.

Following is the output 
Results of getApplets():
- GetApplets by Kathy Walrath
- Receiver (named old pal) by Kathy Walrath
- Sender by Kathy Walrath

Reporter can you try with latest JRE.
Status: RESOLVED → VERIFIED
I have tried the applets on the test page with Mozilla 1.4a on Windows XP with
the Java 1.4.1_02 java plug in. It appears to work fine.
Sorry the bug appears to have reappeared.
Mozilla 1.7b with Java Version 1.4.2_03 (build 1.4.2_03-b02)
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee: joshua.xia → nobody
QA Contact: chrispetersen → java.oji
Whiteboard: [jpibug], close → [jpibug]
Product: Core → Core Graveyard
Mass-closing bugs in the "OJI" component: OJI plugin integration was replaced with npruntime long ago, and these bugs appear to be irrelevant now. If there is in fact a real bug that remains, please file it new in the "Core" product, component "Plug-ins".
Status: REOPENED → RESOLVED
Closed: 22 years ago11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.