Bug 250101

Summary: Avoid mach lookups of container manager service before load starts.
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Per Arne Vollan 2023-01-04 13:14:03 PST
Avoid mach lookups of container manager service before load starts in the WebContent process. When the WebContent process is trying to find the top privately controlled domain, the CFNetwork function called will cause mach lookups of the container manager service. This is avoided in this patch by fixing an error where the url instead of the host is used to get the top privately domain. Additionally, this patch redefines when the WebContent process is regarded as launched, by setting the sandbox state variable when the load is committed. Both of these changes will move us closer to blocking launchd.
Comment 1 Radar WebKit Bug Importer 2023-01-04 13:14:21 PST
<rdar://problem/103885775>
Comment 2 Per Arne Vollan 2023-01-04 13:18:27 PST
Pull request: https://github.com/WebKit/WebKit/pull/8211
Comment 3 EWS 2023-01-05 10:38:13 PST
Committed 258490@main (40cef5c6bb31): <https://commits.webkit.org/258490@main>

Reviewed commits have been landed. Closing PR #8211 and removing active labels.