plugin-move's "moves to its plugin for good" scrolls the editor with
30px wheel steps 80ms apart and records scrollTop as the place the move
must keep. In WebKit the last step can still be landing when it is read:
367, then 397 600ms later, with nothing pressed yet. The move kept the
editor where it was, and the test called it moved ("the failure moved
the editor", 397 !== 367). On main the editor's Advanced section ends
sooner, so the timing happened to work there. #4145's Reply headers field
makes the editor taller, and webkit en and zh went red 2 of 2 alone at
that head on WSL.
The place is now read once two reads 150ms apart agree. This waits on
the state, not a duration.
Run (wsl-run, magpie-desktop, Playwright 1.62.0) at this commit plus #4145:
- plugin-move.test.cjs alone, chromium and webkit, en and zh: 8 of 8.
- A diagnostic print showed top 367 / 600ms later 397 / end 397 in
webkit en, and 235 / 265 / 265 in zh. Chromium settles at once.
- Broken by hand: scrolling the editor 40px between the press and the
failure turns all 4 "for good" subtests red with "the failure moved
the editor".
- Alone on origin/main c201fe226 without this change: 8 of 8.