No warning when closing the tab or reloading during an active call #58

Closed
opened 2026-09-12 01:51:18 -04:00 by jared · 0 comments
Owner

Severity: low · Type: ux · Confidence: high

Location: src/app/components/CallEmbedProvider.tsx (no beforeunload handler anywhere — grep beforeunload src only matches usePresenceUpdater.ts:153's pagehide)

Problem

nothing registers a beforeunload guard while a call is joined. Ctrl+W / Ctrl+R / accidentally closing the window drops the user out of the call with no confirmation, and the clean-leave then depends entirely on EC's own unload handler racing the teardown.

How to trigger

join a call, press Ctrl+R.

Suggested fix

register a beforeunload listener while callEmbed && joined that sets event.preventDefault(), and remove it on hangup/dispose.


Filed from the September 2026 client audit (branch lotus @ 4bea4895).

**Severity:** low · **Type:** ux · **Confidence:** high **Location:** `src/app/components/CallEmbedProvider.tsx` (no `beforeunload` handler anywhere — `grep beforeunload src` only matches `usePresenceUpdater.ts:153`'s `pagehide`) ### Problem nothing registers a `beforeunload` guard while a call is joined. Ctrl+W / Ctrl+R / accidentally closing the window drops the user out of the call with no confirmation, and the clean-leave then depends entirely on EC's own unload handler racing the teardown. ### How to trigger join a call, press Ctrl+R. ### Suggested fix register a `beforeunload` listener while `callEmbed && joined` that sets `event.preventDefault()`, and remove it on hangup/dispose. --- _Filed from the September 2026 client audit (branch `lotus` @ 4bea4895)._
jared added this to the Audit 2026-09 · Medium & Low milestone 2026-09-12 01:51:18 -04:00
jared added the priority: lowuxarea: calls labels 2026-09-12 01:51:18 -04:00
jared self-assigned this 2026-09-12 01:51:18 -04:00
jared closed this issue 2026-09-12 20:29:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#58