Bug 24180

Summary: RenderText::positionForCoordinates doesn't deal with overflow in lineboxes correctly
Product: WebKit Reporter: Justin Garcia <justin.garcia>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: eric
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://www.python.org
Attachments:
Description Flags
webarchive of the problematic page
none
A somewhat reduced testcase. Double click a couple pixels below the word "the"
none
a better test case none

Justin Garcia
Reported 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>
Attachments
webarchive of the problematic page (131.20 KB, application/x-webarchive)
2009-02-25 18:10 PST, Justin Garcia
no flags
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
a better test case (708 bytes, text/html)
2009-02-26 16:53 PST, Ojan Vafai
no flags
Justin Garcia
Comment 1 2009-02-25 18:10:31 PST
Created attachment 28000 [details] webarchive of the problematic page
Ojan Vafai
Comment 2 2009-02-25 18:30:02 PST
Created attachment 28001 [details] A somewhat reduced testcase. Double click a couple pixels below the word "the"
Ojan Vafai
Comment 3 2009-02-26 14:19:00 PST
FWIW, this is not a super-recent regression. Happens on the Safari 4 beta as well.
Justin Garcia
Comment 4 2009-02-26 14:22:45 PST
I don't know that it is a regression at all.
Ojan Vafai
Comment 5 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.
Jon@Chromium
Comment 6 2009-03-03 22:06:12 PST
Note You need to log in before you can comment on or make changes to this bug.