RESOLVED FIXED 206863
macCatalyst: Triple clicking to select a sentence results in an empty selection
https://bugs.webkit.org/show_bug.cgi?id=206863
Summary macCatalyst: Triple clicking to select a sentence results in an empty selection
Tim Horton
Reported 2020-01-27 21:25:27 PST
macCatalyst: Triple clicking to select a sentence results in an empty selection
Attachments
Patch (6.53 KB, patch)
2020-01-27 21:26 PST, Tim Horton
no flags
Patch (28.35 KB, patch)
2020-01-28 15:02 PST, Tim Horton
no flags
Patch (30.43 KB, patch)
2020-01-28 15:14 PST, Tim Horton
no flags
Patch (30.41 KB, patch)
2020-01-28 15:38 PST, Tim Horton
no flags
Patch (6.00 KB, patch)
2020-01-28 21:55 PST, Tim Horton
no flags
Tim Horton
Comment 1 2020-01-27 21:26:09 PST
Tim Horton
Comment 2 2020-01-27 21:26:12 PST
Sam Weinig
Comment 3 2020-01-28 06:01:17 PST
Can this be tested? I know there are no layout tests for macCatalyst yet, but what about an API test or something else?
Tim Horton
Comment 4 2020-01-28 15:02:32 PST
Tim Horton
Comment 5 2020-01-28 15:14:05 PST
EWS Watchlist
Comment 6 2020-01-28 15:15:09 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Wenson Hsieh
Comment 7 2020-01-28 15:24:03 PST
Comment on attachment 389072 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=389072&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:2492 > +void WebPageProxy::doAfterProcessingAllPendingMouseEvents(WTF::Function<void (void)>&& action) Nit - I think we usually write this WTF::Function<void()>&& (i.e. no second void) > Tools/TestWebKitAPI/Tests/WebKitCocoa/MacCatalystMouseSupport.mm:28 > +#if PLATFORM(MACCATALYST) Is it possible to adjust this such that we'll run these tests in automation? > Tools/TestWebKitAPI/Tests/WebKitCocoa/MacCatalystMouseSupport.mm:131 > + [gesture _hoverEntered:touchSet.get() withEvent:event.get()]; > + [contentView _mouseGestureRecognizerChanged:gesture]; > + [touch setTapCount:1]; > + [event _setButtonMask:UIEventButtonMaskSecondary]; > + [gesture touchesBegan:touchSet.get() withEvent:event.get()]; > + [contentView _mouseGestureRecognizerChanged:gesture]; > + [gesture touchesEnded:touchSet.get() withEvent:event.get()]; > + [contentView _mouseGestureRecognizerChanged:gesture]; Very exciting! Not for this patch, but this seems good to one day unify under the existing macOS click simulation helpers in TestWKWebView.
Tim Horton
Comment 8 2020-01-28 15:38:50 PST
WebKit Commit Bot
Comment 9 2020-01-28 16:23:08 PST
Comment on attachment 389078 [details] Patch Clearing flags on attachment: 389078 Committed r255322: <https://trac.webkit.org/changeset/255322>
WebKit Commit Bot
Comment 10 2020-01-28 16:23:10 PST
All reviewed patches have been landed. Closing bug.
Tim Horton
Comment 11 2020-01-28 21:55:36 PST
Reopening to attach new patch.
Tim Horton
Comment 12 2020-01-28 21:55:37 PST
Tim Horton
Comment 13 2020-01-28 21:56:02 PST
Whoops
Note You need to log in before you can comment on or make changes to this bug.