OLD | NEW |
| (Empty) |
1 <script> | |
2 function removePlugin() { | |
3 var plugin = document.getElementById('plugin'); | |
4 plugin.parentNode.removeChild(plugin); | |
5 | |
6 document.getElementById('console').innerText = 'SUCCESS'; | |
7 if (window.testRunner) | |
8 testRunner.notifyDone(); | |
9 } | |
10 | |
11 if (window.testRunner) { | |
12 testRunner.dumpAsText(); | |
13 testRunner.waitUntilDone(); | |
14 } | |
15 </script> | |
16 <body> | |
17 <embed id="plugin" type="application/x-webkit-test-netscape" test="get-url-with-
javascript-url-destroying-plugin" width=100 height=100></embed> | |
18 <p id="description">This tests that evaluating JS that calls NPN_GetURL to evalu
ate a javascript: URL that destroys the plugin doesn't crash.</p> | |
19 <div id="console">FAILURE</div> | |
OLD | NEW |