You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_a_card_s_turn_glided_into_sight_stays_there_as_the_transcript_above_grows: Firefox turn ends under New reply under load #7142
tests/browser/margin/test_card_reply.py::test_a_card_s_turn_glided_into_sight_stays_there_as_the_transcript_above_grows[firefox_browser] fails under load. The user's turn ends about 36 px below New reply's top, which is roughly New reply's own height:
It first failed on main in run 45554671416 at 5fc5f86. It passed in the five push runs before that one. The commits in that range didn't introduce it, because it reproduces before them:
commit
leaf-dev suite flake --copies N --workers 4 --load 2
1 of 12 failed the same way, and 2 of 12 errored at teardown
The teardown errors are Firefox's This site appears to use a scroll-linked positioning effect warning, which clean_browser (tests/render_harness.py) rejects. #6860 found the same warning when a page goes away while a glide passes the reply's CodeMirror editor.
Diagnosis so far, from reading the code, not yet confirmed by a probe: the turn's resting spot is about New reply's height too low. That fits the glide in #fitAnswer (browser/runtime/records/thread/thread-card.js) reading its target while .lf-awaited has no box yet (below falls to 0). It also fits the test's scroll_settled returning before the glide has landed. The teardown warning suggests the glide is sometimes still running when the test ends. The next step is to log the target that glideBy's callback returns on each frame, together with .lf-awaited's box, in a failing copy. That will show whether this is a product misplacement, which would show the user their turn hidden under New reply, or a read the test makes too early.
Before #7132, Firefox left the card transcript's bottom padding out of its scroll range because the transcript has sticky items. .lf-awaited carried a bottom offset to make up for that padding, and the offset stood New reply 8px below the card's edge in Firefox. #7132 replaced the padding with an ::after row and dropped the offset. That fits the glide in #fitAnswer measuring against New reply's box, but I haven't traced the 36px end to end. I treated the bisection as the evidence: the failure stops at that commit and doesn't come back in 60 copies.
If it fails again, it will come back to triage through its CI report. Logging glideBy's target together with .lf-awaited's box on each frame, as this issue proposed, is still the probe to run on a failing copy.
Activity
leaf-agent commentedon Nov 25, 2026
Fixed on
mainby #7132 (21748e6073ca987641f6cfe17053e5a4d8ea7c71). Closing.I ran
leaf-dev suite flake --workers 4 --load 2on the Firefox node at each commit afterceec054, the last one this issue measured:ceec0540498740abe789b8ae8bc227fe0f080d46assert (781 + 64) <= (809 + 1)b668fed8d(#7137, just before #7132)21748e6073ca987641f6cfe17053e5a4d8ea7c71(#7132)d5e74632a(currentmain)Before #7132, Firefox left the card transcript's bottom padding out of its scroll range because the transcript has sticky items.
.lf-awaitedcarried abottomoffset to make up for that padding, and the offset stood New reply 8px below the card's edge in Firefox. #7132 replaced the padding with an::afterrow and dropped the offset. That fits the glide in#fitAnswermeasuring against New reply's box, but I haven't traced the 36px end to end. I treated the bisection as the evidence: the failure stops at that commit and doesn't come back in 60 copies.If it fails again, it will come back to triage through its CI report. Logging
glideBy's target together with.lf-awaited's box on each frame, as this issue proposed, is still the probe to run on a failing copy.test: answer the requests a reloaded document makes after its held on…