cross-origin-top-navigation-with-user-activation-in-parent.window.js (356B)
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?parent_user_gesture=true"); 6 t.add_cleanup(() => {w.close()}); 7 8 }, "Cross-origin top navigation is blocked without user activation, even if the parent has user activation");