1. Open data:text/html,<input type=search> 2. Right-click on a place where a cancel button should be on. Result: ARGUMENT BAD: m_range, m_range /Volumes/d2/WebKit/Source/WebCore/editing/TextCheckingHelper.cpp(160) : WebCore::TextCheckingHelper::TextCheckingHelper(WebCore::EditorClient*, WTF::PassRefPtr<WebCore::Range>) 1 WebCore::TextCheckingHelper::TextCheckingHelper(WebCore::EditorClient*, WTF::PassRefPtr<WebCore::Range>) 2 WebCore::Editor::guessesForMisspelledOrUngrammaticalSelection(bool&, bool&) 3 WebCore::ContextMenuController::populate() 4 WebCore::ContextMenuController::handleContextMenuEvent(WebCore::Event*) 5 WebCore::Node::defaultEventHandler(WebCore::Event*) 6 WebCore::SearchFieldCancelButtonElement::defaultEventHandler(WebCore::Event*) 7 WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) 8 WebCore::MouseEventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const 9 WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WebCore::EventDispatchMediator const&) 10 WebCore::Node::dispatchMouseEvent(WebCore::PlatformMouseEvent const&, WTF::AtomicString const&, int, WebCore::Node*) 11 WebCore::EventHandler::dispatchMouseEvent(WTF::AtomicString const&, WebCore::Node*, bool, int, WebCore::PlatformMouseEvent const&, bool) 12 WebCore::EventHandler::sendContextMenuEvent(WebCore::PlatformMouseEvent const&) 13 -[WebHTMLView menuForEvent:] 14 -[NSView rightMouseDown:] Note: If the search field has a on-empty value and the cancel button is visible, this doesn't happen.
Created attachment 96073 [details] Patch
Comment on attachment 96073 [details] Patch Looks ok
Committed r88211: <http://trac.webkit.org/changeset/88211>