After a session switch, Chromium still tracked the hidden session's kept
Browser guest as the focused webContents, so main's focused-guest gestures
(mouse back/forward app-command, swipe, Ctrl/Cmd+R) navigated or reloaded a
page the user could not see. The keep-alive host also left focus on an inert
hidden guest, where keystrokes could still land.
- A keep-alive host going hidden blurs whatever inside it holds focus.
- The preview pane tells main when its guest leaves / returns to the screen
(hermes:preview-guest-hidden; only the embedding renderer is believed), and
commandFocusedGuest (moved to electron/preview-guest-offscreen.ts) skips a
hidden guest so the gesture falls through to the renderer's visible pane.