[WPE] Do not create a PlatformDisplay in the Service Worker process
[WebKit-https.git] / Source / WebKit / UIProcess / glib / WebProcessPoolGLib.cpp
index 45d52e1..4417711 100644 (file)
@@ -95,8 +95,10 @@ void WebProcessPool::platformInitialize()
 void WebProcessPool::platformInitializeWebProcess(WebProcessCreationParameters& parameters)
 {
 #if PLATFORM(WPE)
-    parameters.hostClientFileDescriptor = wpe_renderer_host_create_client();
-    parameters.implementationLibraryName = FileSystem::fileSystemRepresentation(wpe_loader_get_loaded_implementation_library_name());
+    if (!parameters.isServiceWorkerProcess) {
+        parameters.hostClientFileDescriptor = wpe_renderer_host_create_client();
+        parameters.implementationLibraryName = FileSystem::fileSystemRepresentation(wpe_loader_get_loaded_implementation_library_name());
+    }
 #endif
 
     parameters.memoryCacheDisabled = m_memoryCacheDisabled || cacheModel() == CacheModel::DocumentViewer;