summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/the-window-object/support/closed.html
blob: 3b70598e34d0e9b46a8ba2150a1589fecfb90ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<!--
  There's two URL parameters supported here:

  window: The property name of a getter on the global object that returns the relevant WindowProxy
          object to message.
  ident:  A reasonably unique identifier that will be echoed as the message.
-->
<script>
  const params = new URLSearchParams(location.search);
  self[params.get("window")].postMessage(params.get("ident"), "*");
</script>