entWindow.navigation.navigate("?1");

  assert_not_equals(assertionPromise, undefined);
  await assertionPromise;

  assert_equals(navigateEventCount, 1);
}, "navigate() inside onbeforeunload");
</script>
