<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> |