Add SPI to get a copy of the context menu at a given point. This is similar to [NSView menuForEvent:] in Cocoa/WebKit1 In radar as <rdar://problem/13450908>
Created attachment 196525 [details] Patch v1 - First swipe
Comment on attachment 196525 [details] Patch v1 - First swipe View in context: https://bugs.webkit.org/attachment.cgi?id=196525&action=review r=me with a comment > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:81 > +WK_EXPORT WKArrayRef WKBundlePageCopyContextMenuAtPoint(WKBundlePageRef, WKPoint); We should be clear what coordinate space we expect the point to be in, since your code in WebPage::contextMenuAtPoint() creates a mouse event assuming screen coordinate space. We decided on WKBundlePageCopyContextMenuAtPointOnScreen() over IRC.
http://trac.webkit.org/changeset/147752