summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-with-user-activation-in-parent.window.js
blob: 42b4b208ee077f0e6f4dcedf70e69d57af9fc067 (plain)
1
2
3
4
5
6
7
8
async_test(t => {
  addEventListener('message', t.step_func_done(e => {
    assert_equals(e.data, 'Denied');
  }));
  const w = open("resources/page-with-top-navigating-iframe.html?parent_user_gesture=true");
  t.add_cleanup(() => {w.close()});

}, "Cross-origin top navigation is blocked without user activation, even if the parent has user activation");