Webview/Slack: CEF goes blank white after huddle popup interaction and tab switch
Summary
After spawning a Slack huddle popup (broken — see #1074) and dismissing it, the parent Slack webview can't recover. Switching to OpenHuman home and back paints the CEF area flat white. Tauri-side reveal events fire correctly with the right bounds, so the failure is on CEF's render-lifecycle path.
Reproduce (100% on main b11b8f33)
pnpm dev:app, sign in to Slack inside the embedded webview.- Click "Start huddle" (or any feature that calls
window.open). - Close the (blank) popup.
- Switch to OpenHuman home, then click Slack tile again.
- Sidebar renders, CEF webview area on the right is flat white, not interactive.
Evidence
From b9qimj6ka.output (SLACK-PARITY smoke):
14:35:02 [webview-accounts] new-window request about:blank → in-app popup (provider=slack)
14:39:18 [webview-accounts] reused existing label=acct_29da7de6...
14:39:18 revealed bounds=Bounds { x: 76.0, y: 0.0, width: 924.0, height: 768.0 }
Tauri reveal dispatch is identical to a healthy reveal — but CEF never invalidates the parent's render surface.
Hypothesis
CEF child popup holds the GPU compositor / render context. On parent reveal CEF doesn't issue a fresh paint cycle. Likely shares root cause with #1074 — fix may resolve as side-effect, but track separately so the secondary symptom isn't lost. Investigation angles:
- Force
host->Invalidate(PET_VIEW)/host->WasResized()after the existingrevealed boundslog inwebview_accounts/mod.rs. - Audit the popup
OnBeforeClosehandler — likely needs to re-arm the parent's surface.
Acceptance Criteria
- [ ] Slack tab switch round-trip after a popup interaction restores live CEF surface.
- [ ] Holds for any
window.openexercise (huddle, external link, OAuth re-auth popup). - [ ] No regression for tab switches that didn't spawn a popup.
Related
- #1074 (huddle popup blank-on-spawn — likely shared root)
- #1016 (Slack parity epic)
docs/qa/SLACK-PARITY.md"Additional bug discovered during smoke"
Obviated by #1182 (#1079 fix — vendored tauri-cef skip blank-page guard for popups in BrowserLifeSpanHandler::on_after_created).
Verified live in dev:app from openhuman-1053 worktree (tauri-cef pin f1ee9554 post-#1182 merge): Slack huddle popup → close → switch to OpenHuman home → click Slack tab back → CEF panel renders the live Slack UI, no flat-white surface. Hypothesis in this issue body ("Likely shares root cause with #1074") confirmed.
No code change needed in openhuman; vendored CEF fix landed via tauri-cef#12 + submodule pin bump.
Closing as resolved.