29 lines
670 B
HTML
29 lines
670 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script>
|
|
window.addEventListener("pageshow", ({ persisted }) => {
|
|
let bc = new BroadcastChannel("bug1741132");
|
|
bc.addEventListener("message", ({ data: { cmd, arg } }) => {
|
|
bc.close();
|
|
switch (cmd) {
|
|
case "load":
|
|
document.location = arg;
|
|
break;
|
|
case "go":
|
|
window.blockBFCache = new RTCPeerConnection();
|
|
history.go(arg);
|
|
break;
|
|
case "close":
|
|
window.close();
|
|
break;
|
|
}
|
|
});
|
|
bc.postMessage(persisted);
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|