WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184944
Don't activate Selection Assistant unless it is actually needed.
https://bugs.webkit.org/show_bug.cgi?id=184944
Summary
Don't activate Selection Assistant unless it is actually needed.
Megan Gardner
Reported
2018-04-24 16:45:40 PDT
Don't activate Selection Assistant unless it is actually needed.
Attachments
Patch
(3.97 KB, patch)
2018-04-24 16:53 PDT
,
Megan Gardner
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Megan Gardner
Comment 1
2018-04-24 16:53:34 PDT
Created
attachment 338685
[details]
Patch
Tim Horton
Comment 2
2018-04-24 16:56:28 PDT
Comment on
attachment 338685
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=338685&action=review
> Source/WebKit/ChangeLog:9 > + Don't activate the selection unless we need to. Activating on init is overeager and allowing Javascript to
JavaScript
> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:-1937 > - if (self.isFirstResponder && !self.suppressAssistantSelectionView) > - [_textSelectionAssistant activateSelection];
What does not having this break? :) Do you know why it was here? The fact that the tests are happy is promising, though?
> LayoutTests/ChangeLog:9 > + Turning on previously flakey tests that a fixed with this change.
"a fixed"
Megan Gardner
Comment 3
2018-04-25 11:20:41 PDT
I do not know why it was here before, but it seems to work fine without it. Much of the code around these assistants is crufty, so I expect it was needed for some reason and that reason is now either handled elsewhere or just not relevant anymore.
Megan Gardner
Comment 4
2018-04-25 13:36:02 PDT
https://trac.webkit.org/changeset/231016/webkit
Radar WebKit Bug Importer
Comment 5
2018-04-25 13:36:23 PDT
<
rdar://problem/39732559
>
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