FULL PRODUCT VERSION :
Java Plug-in 188.8.131.52
Using JRE version 1.8.0_65-b17 Java HotSpot(TM) Client VM
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
When adding dynamically an applet on an html page on a button click, using the tag object, a 20 seconds delay appears on ie before anything happens.
This does not occur when the applet is included directly in the page, or when the applet is added by inline script.
REGRESSION. Last worked in version 8u51
ADDITIONAL REGRESSION INFORMATION:
Java Plug-in 184.108.40.206
Using JRE version 1.8.0_51-b16 Java HotSpot(TM) Client VM
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open in ie11 the html page provided as source code.
Click on the "Show applet" button
EXPECTED VERSUS ACTUAL BEHAVIOR :
The function f should execute immediately.
In the console, we should have t1 and t2 nearly equal.
The applet should show immediately.
Note: to make a shorter example, the applet nor the jnlp are included here, so the applet will not show, but anyway the execution should be immediate.
the exact same problem is reproduced with an existing applet.
There is a 20 seconds delay between t1 and t2.
The delay is always the same.
Nothing happens during these 20 seconds.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The ie profiler shows that time is spend in innerHTML.
Note: we have the same result if we create DOM elements instead of using innerHTML.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
// same behavior (delay) with a valid jnlp file or if the jnlp file does not exist
'<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="200" height="200">'+
'<param name="jnlp_href" value="dummy.jnlp"/>'+
console.log("t1: "+new Date());
// t2 is 20 seconds after t1 on ie11 with java 1.8.0_65-b17
// Same behavior with java 1.8.0_60-b27
console.log("t2: "+new Date());
<button onClick="f()">Show applet</button>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Using the tag applet works with 1.8.0_65-b17, but not correctly with 1.8.0_60-b27