Commit c00da18
Fix flaky OSR test: wait for OnAccessibilityLocationChange on slow CI
OnAccessibilityTreeChange and OnAccessibilityLocationChange are driven
by two separate renderer Mojo IPC messages. The tree change fires when
the DOM is committed; the location change fires later, after layout
computes pixel positions.
On Linux CI (Xvfb + --in-process-gpu + software rendering), the
location-change IPC can arrive just past the standard 2-second message
loop window because each BeginFrame cycle requires a cross-thread
roundtrip between the in-process GPU/compositor thread and the UI
thread. Windows CI is unaffected due to faster IPC dispatch margins.
Add a bounded 1-second extra pump that only activates when the flag is
not yet set, so passing runs pay nothing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d9ab1f4 commit c00da18
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
0 commit comments