Reviewed by Adele.
Fix for <rdar://problem/4939558> REGRESSION: "Search in Google", "Search in Spotlight" and "Look up in Dictionary" are missing initially from the contextual menu The bug here is that we select the we were selecting the word after the context menu event was dispatched and after the context menu was built up. * page/EventHandler.cpp: (WebCore::EventHandler::sendContextMenuEvent): Select the word before dispatching the event. It is safe to remove the check for swallowEvent since WebCore context menus ensure that we always swallow the event anyway. git-svn-id: svn://svn.chromium.org/blink/trunk@18974 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment