chromium/third_party/blink/web_tests/external/wpt/content-security-policy/embedded-enforcement/support/embed-img-and-message-top.html

<!DOCTYPE html>
<html>
  <script>
    function addImage() {
      let img = document.createElement('img');
      img.onload = () => top.postMessage('img loaded', '*');
      img.onerror = () => top.postMessage('img blocked', '*');
      img.src = '/content-security-policy/support/pass.png';
      document.body.appendChild(img);
    }
  </script>
  <body onpageshow="addImage();">
  </body>
</html>