summaryrefslogtreecommitdiffstats
path: root/dom/broadcastchannel/tests/testUrl2_bfcache.html
blob: a1eed7927a796951202d7158b7bec8c7a248dcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<script>
onpageshow = function(e) {
  var bc2 = new BroadcastChannel("testUrl2_bfcache");
  bc2.onmessage = function(event) {
    if (event.data == "back") {
      bc2.close();
      history.back();
    }
  };
  bc2.postMessage({type: e.type, persisted: e.persisted});
};
</script>