| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>Self Deleting Plugin Test - Invoke</title> | |
| 4 <script src="npapi.js"></script> | |
| 5 <script> | |
| 6 function DeletePluginWithinScript() { | |
| 7 var plugin_div = document.getElementById("PluginDiv"); | |
| 8 plugin_div.innerHTML = "Object Deleted"; | |
| 9 } | |
| 10 </script> | |
| 11 </head> | |
| 12 | |
| 13 <body> | |
| 14 | |
| 15 <h2>Test to delete a plugin during script execution</h2> | |
| 16 | |
| 17 <p> | |
| 18 This test is for a corner case when a plugin executes a script | |
| 19 that deletes the invoking plugin itself. | |
| 20 </p> | |
| 21 | |
| 22 <DIV ID=PluginDiv> | |
| 23 <embed name="plg" type="application/x-webkit-test-netscape"></embed> | |
| 24 </DIV> | |
| 25 <script> | |
| 26 var plg = window.document["plg"]; | |
| 27 plg.testCallback("DeletePluginWithinScript"); | |
| 28 onSuccess("self_delete_plugin_invoke", 1); | |
| 29 </script> | |
| 30 | |
| 31 </body> | |
| 32 </html> | |
| 33 | |
| OLD | NEW |