cross-origin-top-navigation-without-user-activation.window.js (291B)
1 async_test(t => { 2 addEventListener('message', t.step_func_done(e => { 3 assert_equals(e.data, 'Denied'); 4 })); 5 const w = open("resources/page-with-top-navigating-iframe.html"); 6 t.add_cleanup(() => {w.close()}); 7 8 }, "Cross-origin top navigation is blocked without user activation");