w.
  const openedWindow = windowOpenNoURL(t);

  // Navigate away from the initial empty document through setting
  // location.href. This should do a replacement.
  openedWindow.location.href = url1;
  await waitForMessage(t, "loaded");
  assert_equals(openedWindow.history.length, 1,
    "history.length should not increase after normal navigation away from initial empty document");

  // Navigate again using the same method, but this time it shouldn't do a
  // replacement since it's no longer on the initi