WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
225260
App highlight UI should be disabled when selecting text in image overlays
https://bugs.webkit.org/show_bug.cgi?id=225260
Summary
App highlight UI should be disabled when selecting text in image overlays
Wenson Hsieh
Reported
2021-04-30 16:59:52 PDT
rdar://77359313
Attachments
Patch
(22.65 KB, patch)
2021-04-30 17:35 PDT
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
For EWS
(22.79 KB, patch)
2021-04-30 18:52 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2021-04-30 17:35:47 PDT
Created
attachment 427471
[details]
Patch
Tim Horton
Comment 2
2021-04-30 18:43:19 PDT
Comment on
attachment 427471
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=427471&action=review
> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:3571 > + // FIXME: It doesn't seem like this codepath is exercised, since UIKit only asks for the action target for custom actions > + // added via -[UIMenuController setMenuItems:]. Can we remove this check?
Yikes, good catch.
> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:3769 > + return state.selectionIsRange && !state.isContentEditable && !state.selectionIsRangeInsideImageOverlay ? self : nil;
Please factor this out as discussed.
> Tools/ChangeLog:21 > + Add support for a new `TestOption` that enables app higlights. See the new layout test for more information.
sp. "highlights"
Wenson Hsieh
Comment 3
2021-04-30 18:46:31 PDT
Comment on
attachment 427471
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=427471&action=review
Thanks for the review!
>> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:3769 >> + return state.selectionIsRange && !state.isContentEditable && !state.selectionIsRangeInsideImageOverlay ? self : nil; > > Please factor this out as discussed.
👍🏻
>> Tools/ChangeLog:21 >> + Add support for a new `TestOption` that enables app higlights. See the new layout test for more information. > > sp. "highlights"
Whoops, fixed!
Wenson Hsieh
Comment 4
2021-04-30 18:52:12 PDT
Created
attachment 427482
[details]
For EWS
EWS
Comment 5
2021-04-30 20:27:02 PDT
Committed
r276871
(
237217@main
): <
https://commits.webkit.org/237217@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 427482
[details]
.
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