chromium/third_party/blink/web_tests/external/wpt/permissions-policy/resources/opaque-origin-history1.sub.https.html

<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>