OLD | NEW |
| (Empty) |
1 <html> | |
2 | |
3 <head> | |
4 <script src="npapi.js"></script> | |
5 | |
6 <script> | |
7 function DeletePluginWithinScript() { | |
8 var plugin_div = document.getElementById("PluginDiv"); | |
9 plugin_div.innerHTML = "Object Deleted"; | |
10 onSuccess("execute_script_delete_in_mouse_up", 1); | |
11 } | |
12 </script> | |
13 </head> | |
14 | |
15 <body> | |
16 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | |
17 Test running.... | |
18 </div> | |
19 | |
20 | |
21 NPObject Proxy Test<p> | |
22 | |
23 Tests the case where a plugin instance is deleted in the context | |
24 of a synchronous mouse event. | |
25 | |
26 <DIV ID=PluginDiv> | |
27 <embed type="application/vnd.npapi-test" | |
28 src="foo" | |
29 name="execute_script_delete_in_mouse_up" | |
30 id="1" | |
31 mode="np_embed" | |
32 width="100%" | |
33 height="100%" | |
34 > | |
35 </DIV> | |
36 <script> | |
37 var height = document.body.offsetHeight; | |
38 // Force plugin to be loaded so that we can click on it. | |
39 var embed = document.getElementById('1'); | |
40 embed.dummy = true; | |
41 </script> | |
42 | |
43 </body> | |
44 </html> | |
OLD | NEW |