| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="npapi.js"></script> | |
| 4 <script> | |
| 5 | |
| 6 function DeletePluginWithinScript() { | |
| 7 var plugin_div = document.getElementById("PluginDiv"); | |
| 8 var html = plugin_div.innerHTML; | |
| 9 html = html.replace("npobject_delete_create_plugin_in_evaluate", | |
| 10 "invoke_js_function_on_create"); | |
| 11 plugin_div.innerHTML = "Object Deleted"; | |
| 12 plugin_div.innerHTML = html; | |
| 13 } | |
| 14 | |
| 15 function PluginCreated() { | |
| 16 onSuccess("npobject_delete_create_plugin_in_evaluate", 1); | |
| 17 } | |
| 18 | |
| 19 </script> | |
| 20 </head> | |
| 21 | |
| 22 <body> | |
| 23 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | |
| 24 Test running.... | |
| 25 </div> | |
| 26 | |
| 27 Tests the case where a plugin instance is deleted and created in the context | |
| 28 of the NPN_Evaluate call. | |
| 29 | |
| 30 <DIV ID=PluginDiv> | |
| 31 <embed type="application/vnd.npapi-test" | |
| 32 src="foo" | |
| 33 name="npobject_delete_create_plugin_in_evaluate" | |
| 34 id="1" | |
| 35 mode="np_embed" | |
| 36 > | |
| 37 </DIV> | |
| 38 | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |