chromium/third_party/blink/web_tests/external/wpt/content-security-policy/navigate-to/support/link_click_navigation.sub.html

<!DOCTYPE html>
<head>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
</head>

<body>
<a href="{{GET[target]}}" id="link">dummy link</a>
<script>
  window.addEventListener('securitypolicyviolation', function(e) {
    top.postMessage({result: 'fail', violatedDirective: e.violatedDirective}, '*');
  });

  document.getElementById('link').click();
</script>
</body>