Contextual menu does not present when holding an embedded photo but works with link and attachments
<rdar://problem/53318733>
Created attachment 375096 [details] Patch
Comment on attachment 375096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375096&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:7971 > + UIContextMenuActionProvider actionMenuProvider = [weakSelf = weakSelf, elementInfo = elementInfo] (NSArray<UIMenuElement *> *) -> UIMenu * { why the [a = a, b = b]? can't you just [a, b]?
Comment on attachment 375096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375096&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:7978 > + return [UIMenu menuWithTitle:@"" children:actions]; Is this not nullable?
Comment on attachment 375096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375096&action=review >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:7971 >> + UIContextMenuActionProvider actionMenuProvider = [weakSelf = weakSelf, elementInfo = elementInfo] (NSArray<UIMenuElement *> *) -> UIMenu * { > > why the [a = a, b = b]? can't you just [a, b]? yes >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:7978 >> + return [UIMenu menuWithTitle:@"" children:actions]; > > Is this not nullable? Alas, no. Very strange since they don't really want titles.
Committed r247920: <https://trac.webkit.org/changeset/247920>