Move logic from ChildProcess::setApplicationIsDaemon to NetworkProcess::initializeProcess
Created attachment 360155 [details]
Comment on attachment 360155 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=360155&action=review
> +extern "C" OSStatus SetApplicationIsDaemon(Boolean isDaemon);
This should be in an SPI header.
Created attachment 360178 [details]
Comment on attachment 360178 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=360178&action=review
> + This simplifies ChildProcess and removes NetworkProcess-specific code from this generic abstraction.
The radar quoted as explanation of why this is needed in NetworkProcess is ancient.
I’m guessing that we either need it in all child processes, or in none. Is it still doing anything useful in NetworkProcess? Does it even have a WindowServer connection before this call?