4 <script src=
"npapi.js"></script>
8 <div id=
"statusPanel" style=
"border: 1px solid red; width: 100%">
13 Plugin Instance In Paint Test
<p>
15 Tests that there's no deadlock when a plugin instance is created while handling a paint message.
18 <embed type=
"application/vnd.npapi-test"
20 name=
"create_instance_in_paint"
26 <DIV id=
"PluginDiv2"></DIV>
29 var height
= document
.body
.offsetHeight
;
32 function CreateNewInstance() {
33 var obj
= document
.createElement('embed');
34 obj
.setAttribute('type', 'application/vnd.npapi-test');
35 obj
.setAttribute('src', 'bar');
36 obj
.setAttribute('name', 'create_instance_in_paint');
37 obj
.setAttribute('id', '2');
38 obj
.setAttribute('mode', 'np_embed');
39 document
.getElementById("PluginDiv2").appendChild(obj
);