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/same-origin-top-navigation-without-user-activation.window.html - WPT Dashboard Interop Dashboard
async_test(t => {
addEventListener('message', t.step_func_done(e => {
assert_equals(e.data, 'Allowed');
}));
const w = open("resources/page-with-top-navigating-iframe.html?same_origin=true");
t.add_cleanup(() => {w.close()});
}, "Same-origin top navigation is allowed without user activation");