summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/iframe-domain-failure.sub.html
blob: 0cdb8b5f5955b46aed32099db1aed9b823c09aad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8">
<title>A test page that postMessage a SharedArrayBuffer to the parent and also sets document.domain</title>

<script>
"use strict";

document.domain = "{{host}}";
parent.postMessage({name: "domain", value: document.domain}, "*");
parent.postMessage(
  {name: "crossOriginIsolated", value: self.crossOriginIsolated}, "*");
parent.postMessage(
  {name: "hasSharedArrayBuffer", value: Boolean(self.SharedArrayBuffer)}, "*");
</script>