Add notify process to UI process and block gestures while debugging with inspector
authorHyunsoo Shim <hyunsoo.shim@samsung.com>
Thu, 30 May 2013 08:20:42 +0000 (17:20 +0900)
committerGerrit Code Review <gerrit2@kim11>
Thu, 30 May 2013 08:27:20 +0000 (17:27 +0900)
[Title] Add notify process to UI process and block gestures while debugging with inspector
[Issue#] N_SE-39488
[Problem] Web contents still work while dubugging Web project with inspector
[Cause] UI process does not know the content has been suspended
[Solution] Notify the suspend state to WebPageProxy and block gestures

Change-Id: I7e54a09ea5a790dab05a90fbaaaf27ac428a081e

Source/WebKit2/UIProcess/WebPageProxy.cpp

index 0251600..df6ab7f 100755 (executable)
@@ -1297,7 +1297,11 @@ void WebPageProxy::handlePotentialActivation(const IntPoint& touchPoint, const I
 
 void WebPageProxy::handleTouchEvent(const NativeWebTouchEvent& event)
 {
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+    if (!isValid() || isContentSuspendedByInspector())
+#else
     if (!isValid())
+#endif
         return;
 
     // If the page is suspended, which should be the case during panning, pinching