[WPE] Do not create a PlatformDisplay in the Service Worker process
[WebKit-https.git] / Source / WebKit / Shared / WebProcessCreationParameters.cpp
index 3ecb1f1..1b6ec16 100644 (file)
@@ -161,6 +161,7 @@ void WebProcessCreationParameters::encode(IPC::Encoder& encoder) const
 #endif
 
 #if PLATFORM(WPE)
+    encoder << isServiceWorkerProcess;
     encoder << hostClientFileDescriptor;
     encoder << implementationLibraryName;
 #endif
@@ -427,6 +428,8 @@ bool WebProcessCreationParameters::decode(IPC::Decoder& decoder, WebProcessCreat
 #endif
 
 #if PLATFORM(WPE)
+    if (!decoder.decode(parameters.isServiceWorkerProcess))
+        return false;
     if (!decoder.decode(parameters.hostClientFileDescriptor))
         return false;
     if (!decoder.decode(parameters.implementationLibraryName))