Bug 24180 - RenderText::positionForCoordinates doesn't deal with overflow in lineboxes correctly
Summary: RenderText::positionForCoordinates doesn't deal with overflow in lineboxes co...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.python.org
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-02-25 18:09 PST by Justin Garcia
Modified: 2017-07-18 08:27 PDT (History)
1 user (show)

See Also:


Attachments
webarchive of the problematic page (131.20 KB, application/x-webarchive)
2009-02-25 18:10 PST, Justin Garcia
no flags Details
A somewhat reduced testcase. Double click a couple pixels below the word "the" (322 bytes, text/html)
2009-02-25 18:30 PST, Ojan Vafai
no flags Details
a better test case (708 bytes, text/html)
2009-02-26 16:53 PST, Ojan Vafai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 2009-02-25 18:09:24 PST
Go to python.org or open the attached WebArchive.
In the fourth paragraph (the one that starts "The Python Software Foundation (PSF) holds...") try and create a selection that starts at the end of the paragraph.  For example, click just after "community." and drag upward.

The selection endpoint is somewhere after "Python conference" instead of after "community."

<rdar://problem/6263677>
Comment 1 Justin Garcia 2009-02-25 18:10:31 PST
Created attachment 28000 [details]
webarchive of the problematic page
Comment 2 Ojan Vafai 2009-02-25 18:30:02 PST
Created attachment 28001 [details]
A somewhat reduced testcase. Double click a couple pixels below the word "the"
Comment 3 Ojan Vafai 2009-02-26 14:19:00 PST
FWIW, this is not a super-recent regression. Happens on the Safari 4 beta as well.
Comment 4 Justin Garcia 2009-02-26 14:22:45 PST
I don't know that it is a regression at all.
Comment 5 Ojan Vafai 2009-02-26 16:53:53 PST
Created attachment 28054 [details]
a better test case

Firefox lets you click on the "clickhere" and puts the cursor inside that text, but if you click below it, then it puts the cursor inside the span that has the large blue bottom border. Not really sure what the preferred behavior is.
Comment 6 Jon@Chromium 2009-03-03 22:06:12 PST
http://code.google.com/p/chromium/issues/detail?id=7755 is the Chromium bug.