WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 181715
input and textarea elements should reveal selection in setSelection when focused
https://bugs.webkit.org/show_bug.cgi?id=181715
Summary
input and textarea elements should reveal selection in setSelection when focused
Ryosuke Niwa
Reported
2018-01-16 21:04:09 PST
Right now, input and textarea elements manually invokes FrameSelection::revealSelection. Use FrameSelection::setSelection to reveal selection instead.
Attachments
Cleanup
(15.22 KB, patch)
2018-01-16 21:40 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-01-16 21:04:58 PST
<
rdar://problem/36570546
>
Ryosuke Niwa
Comment 2
2018-01-16 21:40:30 PST
Created
attachment 331465
[details]
Cleanup
Ryosuke Niwa
Comment 3
2018-01-16 22:13:53 PST
Thanks for the review. Waiting for EWS first.
Simon Fraser (smfr)
Comment 4
2018-01-17 09:32:49 PST
Comment on
attachment 331465
[details]
Cleanup Is there any behavior change here?
Ryosuke Niwa
Comment 5
2018-01-17 14:55:13 PST
(In reply to Simon Fraser (smfr) from
comment #4
)
> Comment on
attachment 331465
[details]
> Cleanup > > Is there any behavior change here?
I don't think there is any.
WebKit Commit Bot
Comment 6
2018-01-17 15:19:50 PST
Comment on
attachment 331465
[details]
Cleanup Clearing flags on attachment: 331465 Committed
r227092
: <
https://trac.webkit.org/changeset/227092
>
WebKit Commit Bot
Comment 7
2018-01-17 15:19:51 PST
All reviewed patches have been landed. Closing bug.
Claudio Saavedra
Comment 8
2018-01-19 08:06:21 PST
(In reply to Ryosuke Niwa from
comment #5
)
> (In reply to Simon Fraser (smfr) from
comment #4
) > > Comment on
attachment 331465
[details]
> > Cleanup > > > > Is there any behavior change here? > > I don't think there is any.
This broke two tests in wkgtk, but I haven't had time to investigate yet.
http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fforms%2Ftextarea-scrolled-type.html%20fast%2Fforms%2Ffocus-selection-textarea.html
Claudio Saavedra
Comment 9
2018-01-19 08:17:04 PST
Also this one: editing/input/reveal-edit-on-paste-vertically.html
Claudio Saavedra
Comment 10
2018-01-19 08:47:24 PST
https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r227193%20(5131)/editing/input/reveal-edit-on-paste-vertically-pretty-diff.html
-ScrollVertically: PASS +ScrollVertically: FAIL +viewportMiddle: 300, offsetOfInput: 9
https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r227193%20(5131)/fast/forms/focus-selection-textarea-pretty-diff.html
Diff a bit long, but this should give a clue: -PASS fourth.selectionStart is 0 -PASS fourth.selectionEnd is 0 +FAIL fourth.selectionStart should be 0. Was 11. +FAIL fourth.selectionEnd should be 0. Was 18. The third one might be related, but it could as well just be that an updated expectation for gtk+ is needed. Hope the above is useful!
Ryosuke Niwa
Comment 11
2018-01-19 14:11:53 PST
You might need to wait until the scrolling happens because the scrolling is now happens after the layout asynchronously.
Claudio Saavedra
Comment 12
2018-01-22 05:00:59 PST
(In reply to Ryosuke Niwa from
comment #11
)
> You might need to wait until the scrolling happens because the scrolling is > now happens after the layout asynchronously.
Where do you mean? In the EventSenderProxy?
Ryosuke Niwa
Comment 13
2018-01-22 12:04:07 PST
(In reply to Claudio Saavedra from
comment #12
)
> (In reply to Ryosuke Niwa from
comment #11
) > > You might need to wait until the scrolling happens because the scrolling is > > now happens after the layout asynchronously. > > Where do you mean? In the EventSenderProxy?
In those tests.
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