summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webmessaging/multi-globals/support/incumbent-document-domain.sub.html
blob: 4791c29be7c1d370c88a104207ba5fdaaf06ebbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8">
<title>Incumbent page used as a test helper</title>

<h1>Incumbent</h1>

<script>
"use strict";
document.domain = "{{hosts[][]}}";

window.createBroadcastChannel = (...args) => {
  return new parent.frames[1].BroadcastChannel(...args);
};
</script>