onst a = document.createElement("a");
      a.href = "/common/blank.html?thereplacement";
      a.id = "the-anchor";
      a.textContent = "needs to have content to be clickable";
      document.body.append(a);
      parent.test_driver.click(a);
    };
  `;

  const startURL = "resources/slow-code-injector.html?pipe=sub(none)&code=" + encodeURIComponent(code);
  const afterReplacementURL = "/common/blank.html?thereplacement";
  const iframe = insertIframe(t, startURL);

  assert_equals(history.length, start