Skip to content

Browser crashes in some bidirectional texts (RTL mode). #1302

@sabereen

Description

@sabereen

Describe the issue

To reproduce the issue:

  • Open the reproduction link: link
  • Go to the end of the line (Line is Right-to-Left).
  • Try using arrow right key (→) to move to start of the line (you can not).
  • Try using "Ctrl + →" to move to start of the line (browser will be crashed).

See:
bidi-crash-codemirror

Browser and platform

Chrome 119, Windows 10

Reproduction link

https://codemirror.net/try/?c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgoKZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LmRpciA9ICdydGwnCgpuZXcgRWRpdG9yVmlldyh7CiAgZG9jOiAi/zMG/0QG/ycG/0UGIENQVf8MIP/MBiD/RQb/RgYg/0UG/yoG/yMG/zMG/0EG/ycG/0YG/0cGIP8oBv8nBv+vBiD/Lwb/Jwb/MQb/zAb/RQYg/ycG/8wG/0YG/ywG/ycGIiwKICBleHRlbnNpb25zOiBbYmFzaWNTZXR1cF0sCiAgcGFyZW50OiBkb2N1bWVudC5ib2R5Cn0pCg==

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions