[Title] Display select all menu in context menu only in text selection mode
[Issue#] N_SE-39211
[Problem] Select all menu is appeared when it is not selection mode
[Cause] There is no selection mode check routine
[Solution] Add selection status check routine
Change-Id: If0fd189f17c65240e334e79eb8cdd5e9971a225b
FrameLoader* loader = frame->loader();
KURL linkURL = m_hitTestResult.absoluteLinkURL();
#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
- appendItem(SelectAllItem, m_contextMenu.get());
+ if (m_hitTestResult.isSelected() || frame->selection()->isRange())
+ appendItem(SelectAllItem, m_contextMenu.get());
#endif
if (!linkURL.isEmpty()) {
#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)