blob: 6b4c0993eda800b428a5ef5d9bccbb583f41e4d1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="/js-test-resources/js-test.js"></script>
<script>
description("Test that top-level navigations by a third-party iframe are allowed if the destination URL is same-origin");
jsTestIsAsync = true;
onload = () => {
setTimeout(() => {
document.getElementById('testFrame').src = "http://localhost:8000/security/resources/navigate-top-level-frame-to-success-page-same-origin.html";
setTimeout(() => {
testFailed("Navigation by subframe should not have been blocked");
finishJSTest();
}, 5000);
}, 10);
}
</script>
<iframe id="testFrame"></iframe>
</body>
</html>