Delay WebProcess launch until a load is triggered in a Web view
[WebKit-https.git] / Source / WebKit / UIProcess / GeolocationPermissionRequestManagerProxy.cpp
index 2920137..ca7687f 100644 (file)
@@ -54,7 +54,7 @@ Ref<GeolocationPermissionRequestProxy> GeolocationPermissionRequestManagerProxy:
 
 void GeolocationPermissionRequestManagerProxy::didReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
 {
-    if (!m_page.isValid())
+    if (!m_page.hasRunningProcess())
         return;
 
     auto it = m_pendingRequests.find(geolocationID);