Currently, WKPageContextMenuClient has a callback that's invoked when a custom context menu item is chosen. It would be nice to have a new callback that's always invoked when a context menu is dismissed (either when no item is selected, a non-custom item is selected, or a custom item is selected). This could allow clients to clean up any persistent state they may keep around during menu navigation to handle custom menu items.
<rdar://problem/10245835>
Created attachment 110232 [details] Patch
Committed r97000: <http://trac.webkit.org/changeset/97000>