WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
8116
REGRESSION: Selection issues occur when dragging from left to right in native text fields
https://bugs.webkit.org/show_bug.cgi?id=8116
Summary
REGRESSION: Selection issues occur when dragging from left to right in native...
Chris Petersen
Reported
2006-03-31 21:01:55 PST
I'm noticing when dragging left to right the selection while become invalid when I-beam cursor outside of the text field. Steps to reproduce: 1) With TOT Webkit, open attached test case "input_selection_test.html". 2) Place caret before "T" in "This". 3) Mouse down and drag over "This is a test". Move cursor outside the right edge of text field. 4) Notice the selection becomes invalid as you drag outside of text field 5) Again place caret before "T" in "This". 6) Drag over "This is a" then move cursor to the bottom of text first 7) Move cursor outside of the text field and again selection becomes invalid Note: If I place caret at the END of the text field and drag a selection ( from right to left), the selection remains intact if I move the cursor outside of field.
Attachments
Sample input field
(155 bytes, text/html)
2006-03-31 21:09 PST
,
Chris Petersen
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Chris Petersen
Comment 1
2006-03-31 21:09:43 PST
Created
attachment 7430
[details]
Sample input field
Chris Petersen
Comment 2
2006-03-31 21:20:05 PST
This issue is covered in <
rdar://problem/4499022
>
Chris Petersen
Comment 3
2006-03-31 21:21:35 PST
My original description should have said: I'm noticing when dragging left to right, the selection will become invalid when I-beam cursor moves outside of the text field.
Darin Adler
Comment 4
2006-04-02 19:56:22 PDT
Bug 8134
describes almost exactly the same thing.
Maciej Stachowiak
Comment 5
2006-04-02 23:25:43 PDT
These are all text field regressions so they should all be P1.
Darin Adler
Comment 6
2006-04-06 00:57:55 PDT
I'll take a look at these.
Darin Adler
Comment 7
2006-04-06 08:53:48 PDT
Something's going wrong in Selection::adjustForEditableContent, which is supposed to handle things like this.
Darin Adler
Comment 8
2006-04-06 09:06:42 PDT
The main problem seems to be the call to Range::compareBoundaryPoints inside Selection::validate. This won't handle selection endpoints that are inside the shadow DOM. That's what we need to fix.
Darin Adler
Comment 9
2006-04-06 09:14:21 PDT
I need to talk to Adele and Hyatt about this one. It's a side effect of the shadow DOM not having a parent that points to the real DOM. I understand why the real DOM can't point down into the shadow DOM, but I don't understand why it's a problem to have the shadow DOM pointing back up to the real one. To fix this, I'm having to change tons of places to call shadowParentNode after calling parentNode, and I think that might not be the right way to go.
Darin Adler
Comment 10
2006-04-07 20:39:55 PDT
Turns out my fix for
bug 8134
does fix the test case attached here.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug