_actionMenuItemsForHitTestResult should also take a type indicating what the menu was built for since HitTestResults that are both images and links could go either way.
Created attachment 240445 [details] Patch
Created attachment 240446 [details] Patch v2 Oopsie, that wasn't quite right. This one should do it.
Comment on attachment 240446 [details] Patch v2 View in context: https://bugs.webkit.org/attachment.cgi?id=240446&action=review > Source/WebKit2/Shared/API/c/WKActionMenuTypes.h:40 > +typedef uint32_t WKActionMenuType; Can you give this an underscore prefix in case we ever want to use this name for something in the modern API? > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:68 > + Extra newline.
Thanks Dan! http://trac.webkit.org/changeset/175193