Fix flaky WebKit escape focus tests
Merged
LA
5mo ago+23+23+01234567890123456789-2-2-0123456789
Summary
- App-side: retry
isWebViewFocusedcheck with increasing delays (0.05-0.5s) for the exit-address-bar case - Test-side: send a second Escape if the first only clears suggestions/editing state (Chrome-like two-stage escape)
Test plan
-
testEscapeLeavesOmnibarAndFocusesWebViewpasses on VM -
testCmdNWorksWhenWebViewFocusedAfterTabSwitchpasses on VM -
testCmdWWorksWhenWebViewFocusedAfterTabSwitchpasses on VM -
testCmdShiftWWorksWhenWebViewFocusedAfterTabSwitchpasses on VM