Bug 90761 - [Chromium] Selection issues in RTL pages with horizontal scrollbar
Summary: [Chromium] Selection issues in RTL pages with horizontal scrollbar
Status: RESOLVED DUPLICATE of bug 91155
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL: http://forum.bgu.co.il/index.php?show...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 00:40 PDT by Yair Yogev
Modified: 2012-07-12 15:54 PDT (History)
7 users (show)

See Also:


Attachments
a video showing the issue (1.24 MB, application/octet-stream)
2012-07-09 00:40 PDT, Yair Yogev
no flags Details
same video on YouTube (42 bytes, text/plain)
2012-07-09 10:12 PDT, Yair Yogev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yair Yogev 2012-07-09 00:40:29 PDT
Created attachment 151200 [details]
a video showing the issue

0. Make sure you use Pepper Flash
1. Enter 
http://forum.bgu.co.il/index.php?showtopic=340065
2. Zoom in to get a horizontal scrollbar (or make the window narrow enough)
3. Try to select text as shown in the video

What is observed:
1. There is a big gap between where the selection started and the position of the mouse when the visual selection started to appear.
2. The gap size depends on the size of the horizontal scrollbar (a bigger zoom or a smaller window, equals a bigger gap)
3. When i selected from the left, although lagged behind, the selection appeared where i clicked (just not *when* i clicked).
4. but when i selected from the right, the selection appeared pretty far from where i initially clicked
5. This is just visual- the real selection is correct. If i copy&paste or try to drag part of the text that was supposed to be selected, you can see the real selection did start where i clicked.
6. I also dragged the selection downwards to the next line, and then upwards to the same line to continue my selection. Doing so made parts of the blue selection markings stay on the screen even after the text is no longer selected. You can accumulate these selection residues on screen by playing with this behavior some more.

Chrome issue: http://crbug.com/21225

I reproduced the issue under Windows7 with latest Chrome Canary build
(wchich currently means
Google Chrome	22.0.1200.0 (145632) canary
OS	Windows
WebKit	537.1 (@121899)
JavaScript	V8 3.12.9
Flash	11.3.31.213
Comment 1 Jeremy Moskovich 2012-07-09 00:47:39 PDT
Possibly related to bug 85856 .

I think the corresponding Chrome issue is: crbug.com/136078
Comment 2 Yair Yogev 2012-07-09 00:48:51 PDT
oops, yes of course. wrong copy&paste
Comment 3 Jeremy Moskovich 2012-07-09 00:55:32 PDT
I can reproduce this on Chrome/Mac 21.0.1180.15 (the current dev channel release) which AFAIK doesn't have Pepper flash enabled.

Selection works fine as long as the horizontal scrollbar isn't displayed but the bug reproduces if I shrink the Window enough for the scrollbar to display.

I think this is a bug in WebKit selection code and has nothing to do with Pepper flash.

We need to bisect to see where this broke.
Comment 4 Jeremy Moskovich 2012-07-09 01:02:57 PDT
Other browsers tested:
WebKit nightly r122080 : OK
Chrome Canary 22.0.1200.0  : FAIL

So this is Chrome-only.
Comment 5 Hironori Bono 2012-07-09 01:04:43 PDT
Greetings Jeremy,

Thanks for your bug report.
Bug 85856 changes the position of vertical scrollbars (not horizontal scrollbars) of editable elements, i.e. content-editable <div> elements and <textarea> ones. So, my change should not cause problems for pages that do not have these elements, i.e. pages that Chrome shows its vertical scrollbars to the right side. (In fact, when I open this page with Chrome, Chrome shows its vertical scrollbar to the right side.)

Regards,

Hironori Bono

(In reply to comment #1)
> Possibly related to bug 85856 .
Comment 6 Jeremy Moskovich 2012-07-09 01:07:30 PDT
Thanks Bono-san,

sorry - I just saw a new bug involving scrollbars and thought it might be related to your recent change.
Comment 7 Ryosuke Niwa 2012-07-09 09:46:27 PDT
I can't see the video. What kind of format is this?

Could someone tell me how the selection is done? Also, this bug title is unacceptably vague.
Comment 8 Yair Yogev 2012-07-09 10:10:15 PDT
it's an Xvid. i uploaded it to YouTube so it should now be accessible to everyone:
http://www.youtube.com/watch?v=2o-bG3Jz1_s
Comment 9 Yair Yogev 2012-07-09 10:12:48 PDT
Created attachment 151267 [details]
same video on YouTube
Comment 10 Ryosuke Niwa 2012-07-09 10:17:19 PDT
Yeah I think I can reproduce the same issue on Chrome 20. But I can't reproduce it on the latest trunk build: http://download-chromium.appspot.com/

It seems like there are multiple things going wrong on this page but none of that reproduce on the trunk builds.
Comment 11 Yair Yogev 2012-07-09 10:22:17 PDT
How about canary builds?
under Windows 7, for me it doesn't reproduce in ToT chromium but it does in Canary Chrome.
also, it no longer happens if i disable Pepper Flash
Jeremy reported reproducing it without Pepper Flash though in Mac.
Comment 12 Ryosuke Niwa 2012-07-09 10:25:12 PDT
(In reply to comment #11)
> How about canary builds?
> under Windows 7, for me it doesn't reproduce in ToT chromium but it does in Canary Chrome.

Interesting. That probably means that this isn't a WebKit bug. I also see that all interaction with the page is extremely slow (e.g. selection draws half a second after to where my mouse was dragged).
Comment 13 Yair Yogev 2012-07-09 10:35:36 PDT
Yes the slow selection is noticeable.

some more URLs showing the same problem if the window is narrow enough (or content zoomed enough) to have a horizontal scrollbar:

http://www.hnn.co.il/news_article93081.html
http://www.news1.co.il/Archive/001-D-303773-00.html
http://www.jcpa.org.il/JCPAHeb/Templates/showpage.asp?FID=865&DBID=1&LNGID=2&TMID=178&IID=26953
http://www.dwh.co.il/content/microsoft/125-%D7%9E%D7%99%D7%A7%D7%A8%D7%95%D7%A1%D7%95%D7%A4%D7%98-microsoft/1963-SSIS-Integration-Toolkit-for-Microsoft-Dynamics-CRM

so it's not something too specific to that page, it affects many Israeli pages
Comment 14 Ryosuke Niwa 2012-07-09 10:39:50 PDT
Please make future comments in the chromium issue instead since this doesn't seem like a WebKit bug.
Comment 15 Adrienne Walker 2012-07-12 15:54:12 PDT
(In reply to comment #14)
> Please make future comments in the chromium issue instead since this doesn't seem like a WebKit bug.

...

*** This bug has been marked as a duplicate of bug 91155 ***