Do not select the checkbox via text selecting operation
authorTaeyun An <ty.an@samsung.com>
Mon, 7 Oct 2013 09:31:12 +0000 (18:31 +0900)
committerTaeyun An <ty.an@samsung.com>
Mon, 7 Oct 2013 10:36:23 +0000 (19:36 +0900)
[Title] Do not select the checkbox via text selecting operation
[Issue#] N_SE-54311
[Problem] Textselection operation is excuted on checkbox
[Cause] There is no prevention for checkbox
[Solution] Do not select the checkbox via text selecting operation

Change-Id: I37aaf86fe34e45ce79e57737347a71953fcb143a

Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

index e9052f8..db92988 100644 (file)
@@ -1315,7 +1315,7 @@ void WebPage::selectClosestWord(const IntPoint& point, bool& result)
             if (node->hasTagName(HTMLNames::buttonTag))
                 return;
 
-            if (inputElement && inputElement->isTextButton())
+            if (inputElement && (inputElement->isTextButton() || inputElement->isCheckbox()))
                 return;
 
             break;