Delay WebProcess launch until a load is triggered in a Web view
[WebKit-https.git] / Source / WebKit / UIProcess / gstreamer / InstallMissingMediaPluginsPermissionRequest.cpp
index 11d759e..1447028 100644 (file)
@@ -46,7 +46,7 @@ InstallMissingMediaPluginsPermissionRequest::~InstallMissingMediaPluginsPermissi
 
 void InstallMissingMediaPluginsPermissionRequest::allow(GUniquePtr<GstInstallPluginsContext>&& context)
 {
-    if (!m_page->isValid())
+    if (!m_page->hasRunningProcess())
         return;
 
     CString detail = m_details.utf8();
@@ -72,7 +72,7 @@ void InstallMissingMediaPluginsPermissionRequest::deny()
 
 void InstallMissingMediaPluginsPermissionRequest::didEndRequestInstallMissingMediaPlugins(uint32_t result)
 {
-    if (!m_page->isValid())
+    if (!m_page->hasRunningProcess())
         return;
 
     m_page->send(Messages::WebPage::DidEndRequestInstallMissingMediaPlugins(result));