blob: 83a710a2df938bfc4d54f97d92efbf803a438bfb [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.name = "target"
</script>
</head>
<body>
<p>This test verifies that a sandboxed IFrame cannot navigate the top-level
frame without allow-top-navigation. This test passes if the navigation does
not occur.</p>
<iframe sandbox="allow-scripts"
src="resources/navigate-top-by-name-to-fail.html">
</body>
</html>