Codify the requestAnimationFrame delay in test-wait.js as the test-completion timing - #241
Codify the requestAnimationFrame delay in test-wait.js as the test-completion timing#241gsnedders wants to merge 1 commit into
requestAnimationFrame delay in test-wait.js as the test-completion timing#241Conversation
|
I talked to Xianzhu about this. They said:
|
But there's not really any good way to define this — nothing really specifies when a frame gets displayed to the user — and that makes it hard to update the WebDriver spec to require this. The reality is any executor implementation using WebDriver is going to have a notably longer delay than one within the browser process, and I'd expect having a longer delay than is necessary would make it more likely that it has settled fully. The challenge with removing it is we basically have to run every reftest numerous times to validate that we aren't adding new instability into the suite, noting that that could easily depend on hardware performance. I'm not complete opposed to trying — but there is definitely risk here. Per discussion with @jgraham in the infra meeting earlier in the week, there's also concerns about changing the internal Gecko implementation (which just waits for There's a few bits of experimentation we can do:
None of these are foolproof, and anything that moves the timing forward (1, 3) has a risk of exposing more flakiness we don't yet know about. |
|
Rendered