| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function removePlugin() { | 2 function removePlugin() { |
| 3 var plugin = document.getElementById('plugin'); | 3 var plugin = document.getElementById('plugin'); |
| 4 plugin.parentNode.removeChild(plugin); | 4 plugin.parentNode.removeChild(plugin); |
| 5 | 5 |
| 6 document.getElementById('console').innerText = 'SUCCESS'; | 6 document.getElementById('console').innerText = 'SUCCESS'; |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.notifyDone(); | 8 testRunner.notifyDone(); |
| 9 } | 9 } |
| 10 | 10 |
| 11 if (window.testRunner) { | 11 if (window.testRunner) { |
| 12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
| 13 testRunner.waitUntilDone(); | 13 testRunner.waitUntilDone(); |
| 14 } | 14 } |
| 15 </script> | 15 </script> |
| 16 <body> | 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> | 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 plug-in doesn't crash.</p> | 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> | 19 <div id="console">FAILURE</div> |
| OLD | NEW |