Delay WebProcess launch until a load is triggered in a Web view
[WebKit-https.git] / Source / WebKit / UIProcess / ViewGestureController.cpp
index 20c031c..248182d 100644 (file)
@@ -83,7 +83,8 @@ ViewGestureController::ViewGestureController(WebPageProxy& webPageProxy)
     , m_swipeProgressTracker(webPageProxy, *this)
 #endif
 {
-    connectToProcess();
+    if (webPageProxy.hasRunningProcess())
+        connectToProcess();
 
     viewGestureControllersForAllPages().add(webPageProxy.pageID(), this);
 }