Repository navigation
test: treat Chromium's dropped PageDown step during a t glide as a known browser gap - #7607
Conversation
…ser gap Chromium on a starved host sometimes drops its own page step for an unprevented PageDown whose keydown handler has just scrolled the page. A bare page with no Leaf code reproduces it on the macOS runner, so the glide matrix's t-then-PageDown cases in Chromium become a non-strict expected failure, and notes/browser-support.md records the gap with its recheck. Refs #6744
leaf-agent
left a comment
There was a problem hiding this comment.
The note's recheck says "Recheck with that bare page on the macOS runner", but no such page exists in the tree. The probe is test_bare_pagedown_steps_after_a_handler_scrolls in tests/journeys/navigation/test_probe_bare_pagedown.py, and it lives only on the unmerged branch flake/issue-6744-bare-pagedown. The note's own rules say an entry keeps "a regression test or minimal reproduction that can settle a recheck", and root AGENTS.md asks a note to keep "the command that reproduces it". As written, whoever rechecks would have to rebuild the probe from the bullet list and could not compare its counts with these ones. I'll push a fix that names the probe's commit and the leaf-dev suite flake command that runs it.
The note's recheck pointed at a probe page the tree doesn't hold. Name its test, the commit that keeps it, and the ci dispatch that runs it beside Leaf's two cases. Refs #6744
Chromium on a starved host sometimes drops its own page step for an unprevented PageDown when the keydown handler has just scrolled the page with instant writes. Without Leaf, the page stays where the handler left it. That is why
test_a_key_pressed_during_a_glide_acts_where_the_glide_lands[browser-t-PageDown-*]fails a few percent of the time on the macOS runner.landForKeylandst's glide in that handler and leaves the key to the browser, and the step then never comes. This PR records the gap innotes/browser-support.mdand marks the two Chromiumt-then-PageDown cases as non-strict expected failures (xfail(strict=False)) that point to the note. Firefox'st-then-PageDown cases and every other glide-and-key case in Chromium still assert as before.The evidence for Chromium rather than Leaf comes from a bare probe page with no Leaf code, run on the macOS runner with
leaf-dev suite flake(Chrome for Testing 159.0.8154.6, build 1255). The page glides the window by instant writes in frame callbacks underheld_frames. Thetkey may first move focus withpreventScroll. The PageDown handler then cancels the glide, makes the same three write-and-restore pairs Leaf'sreadScrolledmakes, and writes the goal.t, to a div in flow or in a fixed anchored carrier, as Leaf'stfocuses a thread cardoverflow-anchor: noneanimation (Leaf'sholdBox)t-then-PageDown Chromium cases, same run as a controlEach failing bare copy shows the shape Leaf's failures show. The window reads the glide's goal in one
scrolland ascrollendafter the key, and nothing moves past it.Why the gap is recorded rather than corrected.
notes/browser-support.mdsays a gap is recorded and left unless it shows on a path users take often, or loses work, breaks an action or disrupts a gesture. Here the user's PageDown is ignored only when it falls inside a 140ms glide on a starved machine, and a second press steps as usual. A correction would have Leaf step the page itself, and the header ofdom/scrolling.jssays a script can't read the distance the native step would take. The note's recheck says when the mark can go.Before the change, the two Chromium cases failed 3 to 10 of 108 copies per macOS dispatch on main. After it, they can only xpass or xfail. As with the existing
#6348mark intest_workspaces_and_bounds.py, they no longer guard the Chromium case. Both cases ran on Linux on the branch and passed.Refs #6744 — automated triage. The issue's last open test,
test_comment_marks[firefox_browser], is separate and is followed on the issue.