Closed Bug 1110076 Opened 9 years ago Closed 9 years ago

LTR textbox with RTL text causes arrow cursor movement to get stuck

Categories

(Core :: Layout: Form Controls, defect)

34 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1067796

People

(Reporter: ofirshw, Unassigned)

Details

(Keywords: rtl)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141126041045

Steps to reproduce:

In any LTR textbox, start typing in English (LTR).
Then add few letters in Hebrew (RTL) and continue in English.
An example (you can copy paste to any text box):
This is an דוגמא example


Actual results:

Put the cursor on the left, and move right using the keyboard arrows; you'll get into an endless loop in the Hebrew part.
Reproduced in an alternative settings, where the textbox is RTL, and the cursor got stuck in LTR text.


Expected results:

cursor should keep going throughout all the text.
WFM, I tested in the comment area of Bugzilla, I'm able to move from the left to the right without endless loop.

Did you test with a clean profile?
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(ofirshw)
Keywords: rtl
I created a clean profile and it acts the same.
Flags: needinfo?(ofirshw)
I'm running 34.0.5, not sure if it reproduces on any other version.
Tested on 2 computers running 34.0.5, one on XP one on Win7.
Both suffer from the same problem.
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
(In reply to ofirshw from comment #4)
> Tested on 2 computers running 34.0.5, one on XP one on Win7.
> Both suffer from the same problem.

What are the language and keyboard settings for these machines? Like Loic, I can't reproduce this at all (tested on both mac and windows). And are you testing the same as us? (copy-pasting your "This is an example" text with hebrew into a textarea or input on this page, and moving from left to right by pressing and holding the right arrow key on the keyboard)
Flags: needinfo?(ofirshw)
Copy-paste the exact example that I gave reproduced this example on any of the computer I tested.
All these computers OS are in English, with English (United States) and Hebrew (Israel) keyboard configurations.

Two additional tests I did now on Win7: 
(1) Using the text I put as an example, if the keyboard is set to English, the bug reproduces (starting from both sides, either left or right). If the keyboard is set to Hebrew, the bug does not reproduce.
(switching between keyboard modes using alt+tab in Windows)

(2) Writing a text in Hebrew with numbers (en example: שלום 13 לכם 14 היום),if my keyboard is set to Hebrew, I'll go into an endless loop on the numbers (unlike (1) where I needed the keyboard to be on English to reproduce). Using English keyboard, the numbers bug won't reproduce. 
Seems related but different.
Flags: needinfo?(ofirshw)
(In reply to ofirshw from comment #6)
> Copy-paste the exact example that I gave reproduced this example on any of
> the computer I tested.
> All these computers OS are in English, with English (United States) and
> Hebrew (Israel) keyboard configurations.
> 
> Two additional tests I did now on Win7: 
> (1) Using the text I put as an example, if the keyboard is set to English,
> the bug reproduces (starting from both sides, either left or right). If the
> keyboard is set to Hebrew, the bug does not reproduce.
> (switching between keyboard modes using alt+tab in Windows)

This is odd, because my keyboard is set to English, and I can't reproduce... Note also that you said all the computers have Hebrew (Israel) keyboard configurations, but that the bug does not reproduce when the keyboard is set to Hebrew... so I am a bit confused...


> (2) Writing a text in Hebrew with numbers (en example: שלום 13 לכם 14
> היום),if my keyboard is set to Hebrew, I'll go into an endless loop on the
> numbers (unlike (1) where I needed the keyboard to be on English to
> reproduce). Using English keyboard, the numbers bug won't reproduce. 
> Seems related but different.

I can reproduce something odd here in that if my cursor is at the left of this string, and I type, the text ends up at the right, and if I go to the right, and backspace, text is deleted from the left.

Simon, can you help and/or point this to the right person if that isn't you?
Flags: needinfo?(smontagu)
Hebrew is a RTL language, therefore the right way of adding a text is when the test is aligned to the right (using right ctrl+shift; back to LTR by left ctrl+shift).
Therefore I'm not surprised that your writing ends up at the 'wrong' side (which seems reasonable).
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(smontagu)
Resolution: --- → DUPLICATE
Gijs, does the bug become reproducible if you set bidi.browser.ui to true (that probably needs a restart to take effect)
(In reply to Simon Montagu :smontagu from comment #10)
> Gijs, does the bug become reproducible if you set bidi.browser.ui to true
> (that probably needs a restart to take effect)

Yes! Good to know. :-)
You need to log in before you can comment on or make changes to this bug.