[Webkit-unassigned] [Bug 57340] REGRESSION (Safari 5.0.4-TOT): Selection doesn't work correctly in BiDi Text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 11 18:00:17 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57340





--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org>  2011-07-11 18:00:17 PST ---
Fixing this bug would require us implementing some hack around FrameSelection.

To see the fundamental issue around this,
1. Open up TextEdit on Mac
2. Type "‎לשנת מיליון שקלים"
3. Set the writing direction to LTR
4. Enlarge the font size and resize the window so that each word appears on a separate line.

Place the insertion point on the right of the first line.  You can confirm that the insertion point is at offset 4 by inserting some letter or resizing the window.

Now extend the selection to the left by mouse or keyboard.  Observe that ‎"ל" is elected.  This is the first letter in the text and the only way this text can be selected was if selection starts at offset 0 and ends at 1 respectively.  In other words, TextEdit is changing the selection base from offset 4 to offset 0 when the user extends selection.

To implement this behavior in WebKit, we'd have to detect when the selection base is at the line boundary and the line's direction and block's direction differ and modify the base; we need to restore the original base when the user extends the selection back to the original base or extends the selection to a different line.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list