Summary: | Remove some unused selection code | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||||
Component: | New Bugs | Assignee: | Tim Horton <thorton> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, megan_gardner, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | 198549 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Tim Horton
2019-06-01 02:17:14 PDT
Created attachment 371111 [details]
Patch
Created attachment 371251 [details]
Patch
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. 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 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 Comment on attachment 371251 [details] Patch Clearing flags on attachment: 371251 Committed r246086: <https://trac.webkit.org/changeset/246086> All reviewed patches have been landed. Closing bug. Re-opened since this is blocked by bug 198549 Tried again in https://trac.webkit.org/changeset/246116/webkit |