summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mixed-content/resources/blob-popup.html
blob: bc3c97ef8dc75db2b5766012543952112d680892 (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<meta charset="utf-8">
<script>
  opener.postMessage({
      potentially_trustworthy: location.protocol === "https:",
      js_blob_url: URL.createObjectURL(
          new Blob([`const message = "Hello World!"`],
                   {type: 'application/javascript'})),
  }, "*");
</script>