summaryrefslogtreecommitdiffstats
path: root/docshell/test/mochitest/file_bug1773192_1.html
blob: 42d5b3fceded46fdd7d5b8488960796b572e791b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
  let bc = new BroadcastChannel("bug1743353");
  bc.addEventListener("message", ({ data }) => {
    if (data == "next") {
      location = "file_bug1773192_2.html";
    } else if (data == "close") {
      window.close();
    }
  });
  window.addEventListener("pageshow", () => {
    bc.postMessage({ location: location.href, referrer: document.referrer });
  });
</script>