Bug 241352

Summary: Some trustd network requests are not attributed to the UIProcess
Product: WebKit Reporter: Ben Nham <nham>
Component: WebKit Misc.Assignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: nham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ben Nham 2022-06-06 15:29:27 PDT
Some of the calls to SecTrustEvaluate (in particular the one in ResourceResponseCocoa) are not made with a corresponding call to SecTrustSetClientAuditToken. As a result, if trustd ends up making a network request to fulfill that API request (e.g. for OCSP verification), the corresponding network request is misattributed to NetworkProcess rather than the UIProcess. To fix this, we add a call to SecTrustSetClientAuditToken in ResourceResponse::platformCertificateInfo.
Comment 1 Ben Nham 2022-06-06 15:34:47 PDT
rdar://91322555
Comment 2 Ben Nham 2022-06-06 15:45:30 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1335
Comment 3 EWS 2022-06-07 10:48:47 PDT
Committed r295357 (251366@main): <https://commits.webkit.org/251366@main>

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