blob: 524aeff0c8744ed0ed6f4cd32a0d39006e56c5c1 [file] [log] [blame]
<html>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
layoutTestController.setXSSAuditorEnabled(true);
}
function runtest()
{
frames[0].document.getElementById("plg").foobar; // Force plug-in load.
location = "data:text/html,PASS if didn't crash." +
"<script>" +
"if (window.layoutTestController)" +
" layoutTestController.notifyDone();" +
"</scr" + "ipt>";
}
</script>
<body onload="runtest()">
<iframe id="frame" src="resources/write-xssauditor-from-destroy-frame.html"></iframe>
</body>
</html>