chromium/third_party/blink/web_tests/external/wpt/content-security-policy/unsafe-hashes/support/child_window_location_navigate.sub.html

<!DOCTYPE HTML>
<html>

<head>
    <meta http-equiv="Content-Security-Policy" content="{{GET[csp]}}">
</head>

<body>

  <span id="escape">{{GET[url]}}</span>

  <script nonce='abc'>
    window.addEventListener('securitypolicyviolation', function(e) {
      opener.postMessage('fail', '*');
    });

    window.location.href = document.getElementById("escape").textContent;
  </script>
</body>

</html>