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
Firefox case of test_a_caret_is_drawn_at_a_lines_end_and_after_a_list_bullet has failed since #5409 added it #5652
tests/browser/test_chrome_contracts.py::test_a_caret_is_drawn_at_a_lines_end_and_after_a_list_bullet[firefox_browser] has failed since #5409 (1b3e0770c, "Merge or remove 230 duplicate test functions") created it. #5409 added this test parametrized over browser and firefox_browser, and its Firefox case times out:
Run locally at 1b3e0770c, [browser] passes and [firefox_browser] fails in one subtest. The Firefox case still fails on main 903e1d106. The test doesn't exist at 09e524975 (push run 41976158322). The first failing push run is 41991786341 at 09cc5bcad, and it fails on every push run since, through 42320062138.
So no change broke a working check. What's left to establish is whether Firefox draws the caret at a line's end or after a list bullet in a way the wait never sees: a real Firefox gap to record, as other engine gaps are recorded in notes/browser-support.md. The other possibility is that the wait reads something only Chromium reports, and then the test should be fixed.
Fixed by #5674, now merged. This was a real Firefox bug in Leaf's text field. The wait wasn't reading something only Chromium reports, and Firefox does draw the caret.
Playwright's insert_text reaches Firefox as an input-method composition. In Firefox, a composition that starts over a selection inside the field's shadow root was dropped, and the field kept its old words. So the test's select-all-and-replace never replaced anything, and the field never shrank to the one line the wait expects. A Firefox user whose input method composes over selected text lost those words the same way. field-editor.js already worked around the same shadow-root defect for typed words, but skipped compositions. It now removes the selected words itself on the composition's first update, and one undo still restores the original text.
The Firefox case had been failing since #4844 added the select-and-replace step to the test #5409 later merged. On the fix's head, the caret test passes in both engines, and test_words_typed_over_formatted_words_replace_them_in_firefox now covers an input method's words and their undo. That test fails without the fix. The PR's CI was green on ed65bb8.
Activity
fix: keep an input method's words when they replace a selection in Fi…
leaf-agent commentedon Nov 7, 2026
Fixed by #5674, now merged. This was a real Firefox bug in Leaf's text field. The wait wasn't reading something only Chromium reports, and Firefox does draw the caret.
Playwright's
insert_textreaches Firefox as an input-method composition. In Firefox, a composition that starts over a selection inside the field's shadow root was dropped, and the field kept its old words. So the test's select-all-and-replace never replaced anything, and the field never shrank to the one line the wait expects. A Firefox user whose input method composes over selected text lost those words the same way.field-editor.jsalready worked around the same shadow-root defect for typed words, but skipped compositions. It now removes the selected words itself on the composition's first update, and one undo still restores the original text.The Firefox case had been failing since #4844 added the select-and-replace step to the test #5409 later merged. On the fix's head, the caret test passes in both engines, and
test_words_typed_over_formatted_words_replace_them_in_firefoxnow covers an input method's words and their undo. That test fails without the fix. The PR's CI was green oned65bb8.