| <!DOCTYPE html> |
| <html> |
| <body> |
| <script src="/js-test-resources/js-test.js"></script> |
| <script> |
| description("Test blocking of suspicious top-level navigations by a untrusted first-party iframe"); |
| jsTestIsAsync = true; |
| onload = () => { |
| setTimeout(() => { |
| document.getElementById('testFrame').src = "/security/resources/navigate-top-level-frame-to-failure-page-untrusted-iframe.html"; |
| setTimeout(() => { |
| testPassed("All navigations by subframes have been blocked"); |
| finishJSTest(); |
| }, 1000); |
| }, 10); |
| } |
| </script> |
| <iframe src="/security/resources/navigate-top-level-frame-to-failure-page-untrusted-iframe.html"></iframe> |
| <iframe id="testFrame"></iframe> |
| </body> |
| </html> |