5 if (window.layoutTestController)
6 layoutTestController.dumpAsText();
9 var plugin = document.getElementById("testPlugin");
10 plugin.logDestroy = true;
12 var testObject = plugin.testObject;
13 plugin.parentNode.removeChild(plugin);
18 if (e instanceof ReferenceError)
23 testObject.property = 'hello';
25 if (e instanceof ReferenceError)
29 if (successCount == 2)
30 document.getElementById('result').innerHTML = 'SUCCESS';
35 <body onload="runTest();">
36 This tests that accessing plug-in script objects from a destroyed plugin cause throws the right exceptions.
37 <div id="result">FAILURE</div>
38 <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed>