Rename ContextMenuSelectionHandler to ContextMenuProvider, make it responsible for populating the menu items and owning them.
Created attachment 44672 [details]
[PATCH] Proposed fix.
Created attachment 44673 [details]
[PATCH] Same with a style fix
Attachment 44673 [details] did not pass style-queue:
Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebCore/page/ContextMenuProvider.h:38: Code inside a namespace should not be indented. [whitespace/indent] 
Skipping input 'WebCore/page/ContextMenuSelectionHandler.h': Can't open for reading
Total errors found: 1
Landed manually long ago. Sorry for not updating the bug.