Bug 23457 - RTL: Weird behavior when trying to select Hebrew text
Summary: RTL: Weird behavior when trying to select Hebrew text
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Nobody
URL: http://www.local.co.il/raanana/7392/a...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2009-01-21 09:37 PST by Jeremy Moskovich
Modified: 2011-03-29 08:32 PDT (History)
4 users (show)

See Also:


Attachments
Screenshot (24.06 KB, image/png)
2009-01-21 09:38 PST, Jeremy Moskovich
no flags Details
Reduction (321 bytes, text/html)
2009-01-22 16:52 PST, Jeremy Moskovich
no flags Details
Screenshot (28.36 KB, patch)
2010-03-07 09:21 PST, Jeremy Moskovich
no flags Details | Formatted Diff | Diff
Reduced test case (400 bytes, text/html; charset=ISO-8859-8-I)
2011-03-29 08:00 PDT, Jeremy Moskovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Moskovich 2009-01-21 09:37:38 PST
Checked on Browser:
FF 3: OK
IE: OK
Safari 3.12/WebKit nightly: Error

The problem is that it's very tricky to select the 2nd and third line of the title text on this page.

Selecting the whole paragraph containing the tile shows these two lines with a "stronger selection" as if the selection is drawn twice.

From the original bug report:
"try selecting the big purple title of this page (תקציב עיריית רעננה לשנת 2009 -  516
מיליון שקלים) - it's only big in chrome btw
http://www.local.co.il/raanana/7392/articles.htm
it's all plain text
but line 2 and 3 (תקציב עיריית רעננה לשנת 2009 ) are almost impossible to select
it can only be selected as a whole as if it is a picture
and cannot be copied to the clipboard

it works just fine in IE, and that title is also a lot smaller in IE"
Comment 1 Jeremy Moskovich 2009-01-21 09:38:18 PST
Created attachment 26895 [details]
Screenshot
Comment 2 Jeremy Moskovich 2009-01-21 09:38:56 PST
Original report: http://code.google.com/p/chromium/issues/detail?id=6135#c6
Comment 3 Jeremy Moskovich 2009-01-22 16:52:23 PST
Created attachment 26947 [details]
Reduction
Comment 4 Yair Yogev 2009-03-27 06:32:24 PDT
the reduction posted doesn't show the bug

the original page at http://www.local.co.il/raanana/7392/articles.htm still does though
Comment 5 Yair Yogev 2009-05-14 04:00:03 PDT
this is not only a mac issue of course
Comment 6 mitz 2009-05-14 07:59:51 PDT
(In reply to comment #5)
> this is not only a mac issue of course
> 

A good way to indicate this is to set the OS field to "All".  
Comment 7 Yair Yogev 2010-02-19 01:38:17 PST
seems to be fixed
i can reproduce the issue using an old version of WebKit but not on the latest ones
Comment 8 Jeremy Moskovich 2010-03-07 09:16:42 PST
I can still see some weirdness in the latest WebKit nightly, although the symptoms are different than before.

Update steps to reproduce:
* Open the attached reduction and change the Text Encoding to Hebrew (Windows)
* Drag down from the top to just below the 2nd line so the first and second line are both completely selected.
* Drag up a bit and move the selection slowly in the gap between "2009" and the first Hebrew word.

Actual result:
Note that the color of "2009" changes while the selection background color behaves correctly.

Expected result:
The color of "2009" should stay the same as the rest of the text.
Comment 9 Jeremy Moskovich 2010-03-07 09:21:12 PST
Created attachment 50174 [details]
Screenshot
Comment 10 Yair Yogev 2010-03-07 09:56:17 PST
is it reproducible under windows too?
Comment 11 Jeremy Moskovich 2011-03-29 08:00:03 PDT
Created attachment 87330 [details]
Reduced test case
Comment 12 Jeremy Moskovich 2011-03-29 08:32:48 PDT
Looks like the errant drawing is happening in RootInlineBox::lineSelectionGap() .