Add a pre-bootstrap message for NetworkProcess XPC service
[WebKit-https.git] / Source / WebKit2 / Shared / EntryPointUtilities / mac / XPCService / XPCServiceMain.mm
index 3cdab9c..d30adae 100644 (file)
@@ -59,6 +59,11 @@ static void XPCServiceEventHandler(xpc_connection_t peer)
 
                 initializerFunctionPtr(peer, event);
             }
+
+            if (!strcmp(xpc_dictionary_get_string(event, "message-name"), "pre-bootstrap")) {
+                // Hold on to the pre-bootstrap message.
+                xpc_retain(event);
+            }
         }
     });