NEW333410
safaridriver hangs past 300s on ArrowLeft at start of RTL line in LTR unicode-bidi: plaintext textarea
https://bugs.webkit.org/show_bug.cgi?id=333410
Summary safaridriver hangs past 300s on ArrowLeft at start of RTL line in LTR unicode...
omer.mor
Reported 2026-11-28 10:23:00 PST

Environment:

  • Safari 26.6.2 on Apple Silicon macOS (reproduced 2/2 on two separate machines)
  • Driven via safaridriver WebDriver /actions

Minimal reproduction:

<!DOCTYPE html>
<meta charset="utf-8">
<textarea id="ta" dir="ltr" style="unicode-bidi: plaintext">Hello
אבג דהו</textarea>
<script>
  const ta = document.getElementById("ta");
  ta.focus();
  ta.setSelectionRange(6, 6); // right after "\n", before "א"
</script>

Steps to reproduce:

  1. Load the page above in a safaridriver WebDriver session.
  2. Confirm the textarea is focused with selectionStart === 6 and selectionEnd === 6.
  3. Send ArrowLeft (\uE012) using WebDriver Perform Actions (keyDown + keyUp).

Actual result:
The WebDriver /actions call never returns and times out after >300s.

Expected result:
The /actions call returns promptly and moves the caret into the Hebrew line (selectionStart === 7).

Additional notes:

  • An equivalent <div contenteditable="true" dir="ltr"> with <p style="unicode-bidi: plaintext"> lines did not hang in the same setup (the caret moved 6 -> 0).
  • Chrome and Firefox complete the action promptly and move 6 -> 7.
  • Related tentative WPT (in review): https://crrev.com/c/8877244 (selection/bidi/textarea-bidi-line-start.tentative.html).
Attachments
Alexey Proskuryakov
Comment 1 2026-11-29 13:54:39 PST

Thank you for the report! I cannot reproduce this against Safari 27.3 beta.

omer.mor
Comment 2 2026-11-29 15:35:05 PST

Thanks for checking! I tested on Safari 26.6.2 and do not have access to Safari 27.3 beta, so feel free to close if it looks fixed there.

Note You need to log in before you can comment on or make changes to this bug.