Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
    • /html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-without-user-activation-nested.window.html - WPT Dashboard Interop Dashboard
async_test(t => {
addEventListener('message', t.step_func_done(e => {
assert_equals(e.data, 'Denied');
}));
const w = open("resources/page-with-nested-top-navigating-iframe.sub.html");
t.add_cleanup(() => {w.close()});
}, "Cross-origin top navigation is blocked without user activation, even if iframe is nested and its direct parent is same-site");