<!DOCTYPE html>
<script>
  var channel = new BroadcastChannel(this.name);
  channel.postMessage({ hasOpener: opener !== null ,
                        hasParent: parent != this,
                        name: window.name });
  window.close();
</script>
