JDK-6750726 : Java Plug-In must support MIME type specification in object tag in IE
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u12
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-21
  • Updated: 2010-09-08
  • Resolved: 2009-01-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u12 b01Fixed
Description
It has been pointed out that the HTML 5 specification obsoletes the applet tag. The applet tag has been deprecated for some time. See http://forums.java.net/jive/thread.jspa?threadID=47204&tstart=0 .

Currently we do not set the appropriate registry keys during installation to support the use of the application/x-java-applet MIME type in IE. Additionally, there is code in the IE version of the Java Plug-In which assumes too strongly that CLSIDs are being used.

Appropriate changes must be made to enable the object tag with the application/x-java-applet MIME type to work in both IE and Firefox.

Comments
EVALUATION http://www.w3.org/html/wg/html5/#the-object-element Based on the above spec., the width and height are supposed to be specified as attributes of the object tag. So the following will be supported: <object type="application/x-java-applet" width="800" height="300"> <param name="jnlp_href" value="docBaseBug.jnlp"> <param name="draggable" value="true"> </object> The following will not be supported: <object type="application/x-java-applet"> <param name="width" value="800"> <param name="height" value="300"> <param name="jnlp_href" value="docBaseBug.jnlp"> <param name="draggable" value="true"> </object>
15-10-2008

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u12/6750726.1
15-10-2008

EVALUATION Adding the following key to the registry fixes the problem: [HKEY_CLASSES_ROOT\MIME\DataBase\Content Type\application/x-java-applet] "CLSID"="{8AD9C840-044E-11D1-B3E9-00805F499D93}" Both JNLP and regular applets work with the above key in the registry. Example of html page containing a JNLP applet: <object type="application/x-java-applet"> <param name= WIDTH value = 800> <param name= HEIGHT value = 300> <param name="jnlp_href" value="test.jnlp"> <param name="draggable" value="true"> </object> Example of html page containing a regular applet: <object type="application/x-java-applet"> <param name = WIDTH value = 500> <param name = HEIGHT value = 500 > <PARAM NAME = CODE VALUE = "Clock.class" > </object> The only thing which isn't working correctly is for a JNLP applet, the width and the height parameters are not being processed by the Java Plug-in correctly. Currently, the default width and height of 192 is being used regardless of the ones specified in the html page when the "application/x-java-applet" MIME type is specified.
07-10-2008