Problem: TestWebDriverSessionHistory failed intermittently on the slower sanitizer CI runners. The UI history already matched what’s expected, but webContentHistoryMatchesUI was still false — because the snapshot was caught mid process-swap. The failing assertion varied from run to run, making it almost certainly a sampling race. Cause: A cross-site history navigation swaps the WebContent process and re-seeds its history, and the UI-process mirror converges to that asynchronously — after the script-visible navigation has finished. But expect_ui_session_history sampled the mirror once, and asserted right away — so it could read the state before convergence. Fix: When a converged state is expected, wait for it instead of sampling once: Poll until the UI history matches and WebContent matches the UI. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| test-webdriver-session-history.py | ||
| TestHistoryStore.cpp | ||
| TestHSTSStore.cpp | ||
| TestSessionHistory.cpp | ||
| TestWebViewURL.cpp | ||