WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(13.37 KB, patch)
2019-06-03 23:12 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2019-06-01 02:17:39 PDT
Created
attachment 371111
[details]
Patch
Tim Horton
Comment 2
2019-06-03 23:12:36 PDT
Created
attachment 371251
[details]
Patch
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
<
rdar://problem/51419978
>
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
Tried again in
https://trac.webkit.org/changeset/246116/webkit
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