Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / plugins / geturlnotify-from-npp-destroystream.html
blobe2f6dc98f71277cdd4cbc91df1d33f9d04036975
1 <html>
2 <script>
3 function streamDestroyed()
5 plg.getURL("data:text/html,Stream data");
8 function runTest() {
9 plg.getURL("/plugins/resources/slow-resource.pl");
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
16 var url = 'data:text/html,<scri' + 'pt>if (window.testRunner) testRunner.notifyDone();</scri' + 'pt>';
17 url += '<div>This tests that a plugin that calls NPP_GetURLNotify from its NPP_DestroyStream during teardown '
18 url += 'will not cause a crash.</div><div>SUCCESS! Did not crash!</div>';
20 setTimeout(function() { window.location.href = url; }, 100);
23 </script>
24 <body onload="runTest()">
25 <embed name="plg" type="application/x-webkit-test-netscape" onstreamdestroy="streamDestroyed()"></embed>
26 </body>
27 </html>