blob: d915a2d0d1113370ba1313d13bea9040cc09a366 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="/js-test-resources/js-test.js"></script>
<script>
description("Test blocking of suspicious top-level navigations by a third-party iframe even if sandboxing rules allow top navigation");
jsTestIsAsync = true;
onload = () => {
setTimeout(() => {
document.getElementById('testFrame').src = "http://localhost:8000/security/resources/navigate-top-level-frame-to-failure-page-via-sandboxed-iframe.html";
setTimeout(() => {
testPassed("All navigations by subframes have been blocked");
finishJSTest();
}, 100);
}, 10);
}
</script>
<iframe id="testFrame"></iframe>
</body>
</html>