WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
105629
Java Applet embedded with object tag sends unnecessary GET request for Java class
https://bugs.webkit.org/show_bug.cgi?id=105629
Summary
Java Applet embedded with object tag sends unnecessary GET request for Java c...
kayahr
Reported
2012-12-21 05:13:32 PST
When embedding a Java applet with the object tag then Webkit sends an unnecessary GET request for the class specified in the code parameter. The class is inside the JAR file referenced in the archive parameter and works fine from there. So there is no need to try to download the class file. This happens in Safari (tested with current Webkit nightly
r138355
) and with latest Chrome (23.0.1271.97) on Windows and Linux. In Firefox, Opera and Internet Explorer no GET request is sent for the class file. To reproduce this bug simply visit
http://www.ailis.de/~k/permdata/20121221/applettest/
and wait for the applet to start (Should display a 3D cube). Now look into the error console. You will find a 404 error there because Webkit tries to download a file called "CubeApp" (Which is the class name of the applet)
Attachments
Add attachment
proposed patch, testcase, etc.
guoping.chen
Comment 1
2013-11-29 03:22:59 PST
Wir have the same problem with our applet.
kayahr
Comment 2
2014-01-02 02:41:50 PST
Bug is still present on Safari 7.0 (9537.71) and Chrome 31.0.1650.63. On StackOverflow a workaround for this bug has been posted. The code parameter can be specified as an attribute of the object tag instead of a separate param tag. Then this unnecessary GET request is not send.
http://stackoverflow.com/questions/13989257/webkit-tries-to-download-java-applet-class-before-reading-it-from-jar
Anne van Kesteren
Comment 3
2023-04-12 01:26:32 PDT
Pretty sure Java applets are no longer supported.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug