fix(renderer): keep the never-landed outcome name from main

Reverts a gratuitous rename to reload-issued-not-landed. #12950 merged
with never-landed, fleet crash triage queries that value, and the rename
broke a merged test. The rename served nothing in this PR.
This commit is contained in:
Jinwoo-H
2026-08-07 18:20:13 -04:00
parent a79f8fb746
commit c57d9b7082
2 changed files with 4 additions and 4 deletions
@@ -62,7 +62,7 @@ describe('requestLazyChunkRecoveryReload', () => {
expect(expireGrace).toBeTypeOf('function')
expireGrace?.()
await expect(outcome).resolves.toBe('reload-issued-not-landed')
await expect(outcome).resolves.toBe('never-landed')
expect(reload).toHaveBeenCalledTimes(1)
})
@@ -13,14 +13,14 @@ export type LazyChunkRecoveryReloadOutcome =
/** Something still vetoed beforeunload after the restart latch was armed. */
| 'unload-vetoed'
/** The reload was issued, but this document outlived the grace window. */
| 'reload-issued-not-landed'
| 'never-landed'
/** The host rejected the reload request before navigation could begin. */
| 'request-failed'
// Paired-web hosts may veto navigation without emitting the Electron signal.
const RELOAD_SETTLE_GRACE_MS = 10_000
type RefusedNavigationOutcome = 'unload-vetoed' | 'reload-issued-not-landed'
type RefusedNavigationOutcome = 'unload-vetoed' | 'never-landed'
type ScheduleReloadGrace = (onElapsed: () => void) => () => void
type RefusedNavigationWait = {
@@ -51,7 +51,7 @@ function waitForRefusedNavigation(
}
onUnloadPrevented = () => settle('unload-vetoed')
win.addEventListener(ORCA_RENDERER_UNLOAD_PREVENTED_EVENT, onUnloadPrevented)
cancelGrace = scheduleGrace(() => settle('reload-issued-not-landed'))
cancelGrace = scheduleGrace(() => settle('never-landed'))
})
return { outcome, cancel }
}