← Back to wkappbot-core
wkappbot-core ★☆☆

CDP focus-steal guard: Runtime.evaluate in IsFocusStealingMethod + weMinimized + 500ms wait

Runtime.evaluate can activate Chrome tab and steal fg. Fix: add to IsFocusStealingMethod (unconditional). Track weMinimized to prevent spurious post-restore. Wait 50x10ms for IsIconic before sending CDP (eliminates RACE where minimize command sent but Chrome not yet minimized).

user/developer

Steps

  1. IsFocusStealingMethod includes Runtime.evalu...
  2. Track weMinimized=true when we call ShowWind...
  3. After ShowWindowNative(SW_SHOWMINNOACTIVE),...
  4. Verified 2026-04-23: experience/tests/cdp/te...