Masayuki Nakano 14a67464fa Bug 1793390 - Make line-iterator.html collapse Selection into the editable element by itself r=perftest-reviewers,sparky
It calls `pre[contenteditable].focus()`, but when talos tests run, the URL bar
keeps having focus.  Therefore, the `focus()` call in content cannot steal focus
from the chrome UI.  Then, it does not pay the cost of `Selection.modify` in
the first loop because it does nothing when there is no selection ranges.
(Before bug 1789967, `Selection` was collapsed to end of the document at
loading by `HTMLEditor`, but it's now not performed, and due to the silent
failure of the call of `focus()`, nobody collapse selection in the document.)

Depends on D158551

Differential Revision: https://phabricator.services.mozilla.com/D158552
2022-10-08 12:59:33 +00:00
..

Common testing tools for mozilla codebase projects, test suite definitions
for automated test runs, tests that don't fit anywhere else, and other fun
stuff