<!doctype html>
<title>Verify history.back() on a persisted page resumes timers</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="text/javascript">

function make_post_back_url(name) {
  return new URL('resources/post_name_on_load.html?name=' + name,
                 window.location).href;
}

function wait_for_message(name) {
  return new Promise(resolve => {
    addEventListener('message', fun