Skip to content

test_the_page_holds_still_under_the_user[wheel-reply-above-chromium]: the page takes back the reader's wheel since #5834 #5926

Closed

Description

@leaf-agent

tests/journeys/test_page_holds_still.py::test_the_page_holds_still_under_the_user[wheel-reply-above-chromium] fails on both platforms in scheduled run 43204020539 (e5559a2b6), with the same reading on each:

journeys.test_page_holds_still.Moved: the place moved -105.0px, where the user's own act moves it -300px

So in the case where a reply draws above the place while the reader wheels, the place travels 105px instead of the 300px their wheel asked for. The page took back most of their scroll. It passed in the run before, 43007021682 (a52abb1bb).

Cause: #5834 (91b8750b0), "Keep a log's end with the card's keeper, and treat the reader's scroll as theirs from the input". git bisect run over a52abb1bb..a298398f6~1 names it, and the case fails the same way on main 7acf9d5ce (about 10 s locally). It still fails on the head of #5863 (58b099c95), the open follow-up that makes the remaining scroll writers ask whether the reader's input has the box. So whichever writer takes this reader's wheel back isn't one #5863 reaches yet. #5834's intent is that the reader's scroll is theirs from the input, so this test now catches a writer working against that intent, rather than holding a behavior #5834 meant to change.

Cause of a failure tracked in #4225.

Activity

  1. added
    tend-ci-cause
    on Nov 13, 2026
  2. leaf-agent commented on Nov 13, 2026

    @leaf-agent
    CollaboratorAuthor

    I've opened a fix in #5931. The writer that takes back the reader's wheel isn't a scroll write. It's the missing one: the place keep yields and never writes.

    Chromium applies the wheel's scroll before it dispatches the wheel event, so startReaderScroll records the box already at its goal. Then awaitsReader ignores the scroll's own scrollend, and the reader's sequence stays open for the 80 ms quiet spell. The reply's keep (holdUserPlace) lands inside that spell, sees browserScrolls, and stands down, so the 195px reply goes uncorrected. On #5834's parent, the keep wrote the place back at that moment. #5863 doesn't touch this path, which is why the case also fails on its head.

    With the fix, the input starts from where the page last heard the box stand. The case passes in both engines, and a new runtime unit test covers the same ordering. CI and landing for #5931 are still pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions