RESOLVED FIXED Bug 198451
Remove some unused selection code
https://bugs.webkit.org/show_bug.cgi?id=198451
Summary Remove some unused selection code
Tim Horton
Reported 2019-06-01 02:17:14 PDT
Remove some unused selection code
Attachments
Patch (13.59 KB, patch)
2019-06-01 02:17 PDT, Tim Horton
no flags
Patch (13.37 KB, patch)
2019-06-03 23:12 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2019-06-01 02:17:39 PDT
Tim Horton
Comment 2 2019-06-03 23:12:36 PDT
Megan Gardner
Comment 3 2019-06-04 06:15:34 PDT
Comment on attachment 371251 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371251&action=review I’m nervous about this, but the bots seem to be green.... > Source/WebKit/Platform/spi/ios/UIKitSPI.h:-559 > - Are we sure non of this is needed? I thought this assistant was still used in legacy web kit, though it’s mostly broken, it can still be triggered sometimes. > Source/WebKit/Platform/spi/ios/UIKitSPI.h:-600 > -- (void)showDictionaryFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect; I know we use some of the above methods, I’m surprised that these are ok to remove? Are we sure this is ok? > Source/WebKit/Shared/ios/GestureTypes.h:45 > PhraseBoundary Does this need to have values specified, or since It’s an enumeration class jf’s Ok? Removing one in the middle of a list makes me nervous. > Source/WebKit/UIProcess/ios/WKPDFView.mm:526 > auto selectionAssistant = adoptNS([[UIWKSelectionAssistant alloc] initWithView:[_hostViewController view]]); File a radar? I would hope this would be very easy to do, and would clean up a lot.
Wenson Hsieh
Comment 4 2019-06-04 07:37:32 PDT
Comment on attachment 371251 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371251&action=review >> Source/WebKit/Platform/spi/ios/UIKitSPI.h:-559 >> - > > Are we sure non of this is needed? I thought this assistant was still used in legacy web kit, though it’s mostly broken, it can still be triggered sometimes. This is WebKit
Wenson Hsieh
Comment 5 2019-06-04 07:39:32 PDT
Comment on attachment 371251 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371251&action=review >>> Source/WebKit/Platform/spi/ios/UIKitSPI.h:-559 >>> - >> >> Are we sure non of this is needed? I thought this assistant was still used in legacy web kit, though it’s mostly broken, it can still be triggered sometimes. > > This is WebKit Oops, half-finished comment 🤦🏻‍♂️ This is just a forward declaration in WebKit, so I don't think it will have any impact in legacy WebKit. >> Source/WebKit/UIProcess/ios/WKPDFView.mm:526 >> auto selectionAssistant = adoptNS([[UIWKSelectionAssistant alloc] initWithView:[_hostViewController view]]); > > File a radar? I would hope this would be very easy to do, and would clean up a lot. +1
WebKit Commit Bot
Comment 6 2019-06-04 16:27:36 PDT
Comment on attachment 371251 [details] Patch Clearing flags on attachment: 371251 Committed r246086: <https://trac.webkit.org/changeset/246086>
WebKit Commit Bot
Comment 7 2019-06-04 16:27:38 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-06-04 16:28:17 PDT
WebKit Commit Bot
Comment 9 2019-06-04 17:21:05 PDT
Re-opened since this is blocked by bug 198549
Tim Horton
Comment 10 2019-06-05 11:01:19 PDT
Note You need to log in before you can comment on or make changes to this bug.