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   

Ben Nham
Reported 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.
Attachments
Ben Nham
Comment 1 2022-06-06 15:34:47 PDT
Ben Nham
Comment 2 2022-06-06 15:45:30 PDT
EWS
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.