Do not focus ewk view if webpage's selection is not editable.
authorSangYong Park <sy302.park@samsung.com>
Thu, 27 Jun 2013 08:44:55 +0000 (17:44 +0900)
committerSangYong Park <sy302.park@samsung.com>
Thu, 27 Jun 2013 08:48:16 +0000 (17:48 +0900)
[Title] Do not focus ewk view if webpage's selection is not editable.
[Issue#] N_SE-43113
[Problem] ewk view was crashed.
[Cause] Ewk view receive event, when popup window is created.
[Solution] Do not focus ewk view if webpage's selection is not editable.

Change-Id: Ief75ecba4ce623fb0cbdc0bce2535847de1b39ac

Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.h

index e599145..74417a1 100755 (executable)
@@ -3808,8 +3808,11 @@ void WebPageProxy::didReceiveEvent(uint32_t opaqueType, bool handled)
         m_pageClient->doneWithGestureEvent(event, handled);
 #endif
 #if ENABLE(TIZEN_ISF_PORT)
-        if (m_isVisible && type == WebEvent::GestureSingleTap)
-            evas_object_focus_set(viewWidget(), true);
+        if (m_isVisible && type == WebEvent::GestureSingleTap) {
+            InputMethodContextEfl* inputMethodContext = static_cast<PageClientImpl*>(m_pageClient)->viewImpl()->inputMethodContext();
+            if (inputMethodContext && inputMethodContext->hasContext())
+                evas_object_focus_set(viewWidget(), true);
+        }
 #endif
         break;
     }
index 61b408d..5a6088e 100755 (executable)
@@ -53,8 +53,8 @@ public:
     void updateTextInputState();
 
 #if ENABLE(TIZEN_ISF_PORT)
-    void setUseInputMethod(bool);
     bool isShow();
+    bool hasContext() { return m_context; }
     Ecore_IMF_Autocapital_Type autoCapitalType();
     void onFocusIn();
     void onFocusOut();