Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GPUConnectionToWebProcess::setTCCIdentity need to check that it has a…
… bundle identifier before calling tcc_identity_create https://bugs.webkit.org/show_bug.cgi?id=271459 rdar://122836442 Reviewed by Eric Carlson. As can be seen from crash logs, we are sometimes calling tcc_identity_create with a nullptr identifier. This identifier is coming from the bundle proxy created by [LSBundleProxy bundleProxyWithAuditToken:error:]. This function can probably return nil without an error, or the returned bundle proxy has a nullptr identifier. We add an if check that covers both cases and add release logging to know the exact issue. * Source/WebKit/GPUProcess/cocoa/GPUConnectionToWebProcessCocoa.mm: (WebKit::GPUConnectionToWebProcess::setTCCIdentity): Canonical link: https://commits.webkit.org/276549@main
- Loading branch information