| var plugin = document.getElementById("testPlugin"); |
| plugin.logDestroy = true; |
| var testObject = plugin.testObject; |
| plugin.parentNode.removeChild(plugin); |
| if (e instanceof ReferenceError) |
| testObject.property = 'hello'; |
| if (e instanceof ReferenceError) |
| document.getElementById('result').innerHTML = 'SUCCESS'; |
| <body onload="runTest();"> |
| This tests that accessing plug-in script objects from a destroyed plugin cause throws the right exceptions. |
| <div id="result">FAILURE</div> |
| <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed> |