Closed
Bug 36728
Opened 24 years ago
Closed 24 years ago
Java applet doesn't render with <object> element
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: rcrews, Assigned: rickg)
Details
(Whiteboard: [need update][6/27])
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m15) BuildID: 2000041805 I use the HTML 4.01 specification to create a test page for my Java applet. The applet runs and displays perfectly in Navigator 4.72, but only flashes on the screen, then disappears in Mozilla M14. Reproducible: Always Steps to Reproduce: 1. Create a file from the HTML in Additional Information below. 2. Create a directory in the same directory as the HTML file called "Java Classes". 3. Put TrivialApplet.class in "Java Classes". 4. Open the HTML page. Actual Results: Hello world applet flashes on the screen momentarily, then disappears. Blank page. Expected Results: Rendered the text "Hello world." Here's the HTML file I'm using: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Java Programming Homework 1</title> </head> <body> <p><object classid="java:TrivialApplet.class" codebase="Java Classes" codetype="application/java" width="200" height="200"> </object></p> </body> </html> This is my Java applet (TrivialApplet.java): import java.awt.*; import java.applet.Applet; public class TrivialApplet extends Applet { public void init() { repaint(); } public void paint( Graphics g ) { g.drawString( "Hello World!", 30, 30 ); } }
Comment 1•24 years ago
|
||
java isn't enabled in the nightlies, but i'm not sure what happens to these bugs.
Comment 2•24 years ago
|
||
The 'codebase' attribute value in the test case is invalid: it should be an URI. See http://www.w3.org/TR/REC-html40/struct/objects.html#adef-codebase-OBJECT AFAIK, though, Mozilla doesn't support the 'codebase' attribute yet so that's probably not causing the problem.
Comment 3•24 years ago
|
||
QA needs an update on this bug and whether it still occurs in a brand new M17 nightly build. Reporter: please retest in a new nightly and post the results here. If you still see the problem, attaching a testcase displaying the problem, rather than just posting the HTML via a comment, would be appreciated. Thanks!
Whiteboard: [need update][6/27]
Comment 4•24 years ago
|
||
This works for me with the latest June 20th Mac and Win 32 builds. Object test case uses codebase and classid attributes that specify java file.This test case is located at the following: http://mozilla.org/quality/browser/standards/html/object_classid.html
Comment 5•24 years ago
|
||
hmm...with 62108 win32, just a gray rectangle is displayed.
Comment 6•24 years ago
|
||
Can you render applet test cases ? http://slip/projects/marvin/html/applet_code_codebase.html Or is the problem just with Object as described ?
Comment 7•24 years ago
|
||
Chris, any testcases that aren't within the firewall?
Comment 8•24 years ago
|
||
Sorry. Our HTML 4.0 Transitional matrix, which is located at mozilla.org, contains 13 or so applet test cases. http://mozilla.org/quality/browser/standards/html/ These test cases contain the element and it's attribute.
Comment 9•24 years ago
|
||
This problem is caused by the invalid 'codebase' value - it should be a legal URI and may not contain whitespace. Marking Invalid. (My previous comment about 'codebase' not being supported was a bit misleaded. The attribute does work for 'classid', but not for 'data' - I've filed a bug about that.)
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
You need to log in
before you can comment on or make changes to this bug.
Description
•