openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Webview/Slack: CEF goes blank white after huddle popup interaction and tab switch

Open oxoxDev opened this issue 7 months ago • 1 comments

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)

  1. pnpm dev:app, sign in to Slack inside the embedded webview.
  2. Click "Start huddle" (or any feature that calls window.open).
  3. Close the (blank) popup.
  4. Switch to OpenHuman home, then click Slack tile again.
  5. 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 existing revealed bounds log in webview_accounts/mod.rs.
  • Audit the popup OnBeforeClose handler — 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.open exercise (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"

oxoxDev avatar May 01 '26 12:05 oxoxDev

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.

oxoxDev avatar May 05 '26 20:05 oxoxDev