Source code
Revision control
Copy as Markdown
Other Tools
<!--
Any copyright is dedicated to the Public Domain.
-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>RemoteWorkerDebugger freeze/sync-loop nav</title>
</head>
<body>
<script type="text/javascript">
"use strict";
// Intermediate page: the frame navigates here to enter bfcache, then the
// test asks us to go back, restoring (thawing) the frame and its worker.
const token = new URLSearchParams(location.search).get("token");
const bc = SpecialPowers.wrap(BroadcastChannel).unpartitionedTestingChannel(
"remoteDebugger_freeze_syncloop_nav_" + token
);
bc.onmessage = event => {
if (event.data.command == "thaw") {
history.back();
}
};
window.onload = () => {
bc.postMessage({ event: "navloaded" });
};
</script>
</body>
</html>