blob: 28f2914eb773f907bbe488a7f79c11723384abfe [file] [log] [blame]
<html>
<head>
<script>
if (window.layoutTestController) {
window.layoutTestController.dumpAsText();
window.layoutTestController.addUserScript("document.addEventListener('beforeload', function(event) { if (event.url.indexOf('swf') >= 0) event.preventDefault(); }, true);", true, true);
}
</script>
</head>
<body>
This tests https://bugs.webkit.org/show_bug.cgi?id=46773 by having the load of the plugin
inside the plugin document be cancelled. If there is no crash, the test passed.
<iframe src="resources/simple_blank.swf"></iframe>
</body>
</html>