RESOLVED FIXED 189114
Long press on picture/link show menu obscured by keyboard
https://bugs.webkit.org/show_bug.cgi?id=189114
Summary Long press on picture/link show menu obscured by keyboard
James Savage
Reported 2018-08-29 16:23:44 PDT
Attachments
Patch (8.47 KB, patch)
2018-08-29 16:46 PDT, James Savage
no flags
Patch (8.36 KB, patch)
2018-08-30 19:05 PDT, James Savage
no flags
James Savage
Comment 1 2018-08-29 16:46:22 PDT
Megan Gardner
Comment 2 2018-08-29 17:44:48 PDT
Comment on attachment 348447 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348447&action=review r=me, with comments. > Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:373 > + CGRect visibleRect = CGRectNull; See associated next comment. I think this should be view.window.bounds (or equivalent) not CGRectNull. > Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:402 > { Probably rename this to something better if we make the associated changes. > Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:411 > + visibleRect = view.window.bounds; Could we move this logic to the calling function? I don't like having to do this compare here, if we just set the visible rect to the default before we even call into here, then we can make this cleaner. > Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:414 > + remove whitespace > Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:549 > + CGRect visibleRect = CGRectNull; Same as above. Should be view.window.bounds
James Savage
Comment 3 2018-08-29 18:39:38 PDT
Comment on attachment 348447 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348447&action=review Will come back with a v2. I think moving the free function to an instance method will address your concerns. >> Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:373 >> + CGRect visibleRect = CGRectNull; > > See associated next comment. > I think this should be view.window.bounds (or equivalent) not CGRectNull. I’m trying to keep the fallback value in one place. If you don’t like using CGRectNull as a sentinel, how about moving presentationStyleForView() to an instance method on WKActionSheetAssistant. That way it could make the delegate call and have the fallback, rather than callers providing it? >> Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:414 >> + > > remove whitespace This was already here (the diff got out of order), but I can remove it. >> Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:549 >> + CGRect visibleRect = CGRectNull; > > Same as above. Should be view.window.bounds Ditto also :P
James Savage
Comment 4 2018-08-30 19:05:25 PDT
Megan Gardner
Comment 5 2018-08-30 20:22:40 PDT
Comment on attachment 348579 [details] Patch I like this better
WebKit Commit Bot
Comment 6 2018-09-10 15:59:24 PDT
Comment on attachment 348579 [details] Patch Clearing flags on attachment: 348579 Committed r235870: <https://trac.webkit.org/changeset/235870>
WebKit Commit Bot
Comment 7 2018-09-10 15:59:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.