Bug 184944

Summary: Don't activate Selection Assistant unless it is actually needed.
Product: WebKit Reporter: Megan Gardner <megan_gardner>
Component: New BugsAssignee: Megan Gardner <megan_gardner>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

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+
Megan Gardner
Comment 1 2018-04-24 16:53:34 PDT
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
Radar WebKit Bug Importer
Comment 5 2018-04-25 13:36:23 PDT
Note You need to log in before you can comment on or make changes to this bug.