summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/opaque-origin-history1.sub.https.html
blob: cb1f214f53c67667d918f2aca67936a5ccf31428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
  window.addEventListener('message', e => {
    if (e.data == 'redirect') {
      location.assign(
        "https://{{domains[]}}:{{location[port]}}/permissions-policy/resources/opaque-origin-history2.https.html");
    }
  });

  parent.postMessage(
    document.fullscreenEnabled ?
    'fullscreen enabled in opaque-origin-history1.html' :
    'fullscreen disabled in opaque-origin-history1.html',
    '*'
  );
</script>