Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent showing suggestions when right-clicking a selection range.
https://bugs.webkit.org/show_bug.cgi?id=94189 Reviewed by Hajime Morita. To emulate Safari, my r120810 changes selection when right-clicking a misspelled word. Unfortunately, this change somehow uses VisibleSelection::isCaretOrRange and it changes the existing selection when right-clicking a selection which includes a misspelled word. This change uses VisibleSelection::isCaret to prevent showing suggestions when right-clicking a selection range. (Neither does Safari show suggestions when there is a selection range.) * src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information