blob: d0419c8b8ef0a1ef159f9a989fae63cc18c7bc46 [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 allow-modals"
src="resources/navigate-top-by-name-to-fail.html">
</body>
</html>