Reviewed by Dan Bernstein.
[WebKit-https.git] / LayoutTests / plugins / js-from-destroy.html
1 <html>
2 <script>
3 if (window.layoutTestController) {
4     layoutTestController.dumpAsText();
5     layoutTestController.waitUntilDone();
6     layoutTestController.setXSSAuditorEnabled(true);
7 }
8
9 function runtest()
10 {
11     frames[0].document.getElementById("plg").foobar; // Force plug-in load.
12
13     location = "data:text/html,PASS if didn't crash." +
14         "<script>" + 
15         "if (window.layoutTestController)" +
16         "   layoutTestController.notifyDone();" +
17         "</scr" + "ipt>";
18 }
19
20
21 </script>
22 <body onload="runtest()">
23 <iframe id="frame" src="resources/js-from-destroy-frame.html"></iframe>
24 </body>
25 </html>