blob: 6a21e6636f58c5b373e00e4f74eaa45b4b1e5682 [file] [log] [blame]
<html>
<head>
<script src="npapi.js"></script>
<script>
function DeletePluginWithinScript() {
var plugin_div = document.getElementById("PluginDiv");
plugin_div.innerHTML = "Object Deleted";
onSuccess("execute_script_delete_in_mouse_up", 1);
}
</script>
</head>
<body>
<div id="statusPanel" style="border: 1px solid red; width: 100%">
Test running....
</div>
NPObject Proxy Test<p>
Tests the case where a plugin instance is deleted in the context
of a synchronous mouse event.
<DIV ID=PluginDiv>
<embed type="application/vnd.npapi-test"
src="foo"
name="execute_script_delete_in_mouse_up"
id="1"
mode="np_embed"
width="100%"
height="100%"
>
</DIV>
<script>
var height = document.body.offsetHeight;
// Force plugin to be loaded so that we can click on it.
var embed = document.getElementById('1');
embed.dummy = true;
</script>
</body>
</html>