Because the client callback may cause directly or indirectly another CATransaction commitHandler to be added which is prohibited by CA.
<rdar://79625962>
Created attachment 432093 [details] Patch
Comment on attachment 432093 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432093&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:1248 > + dispatch_async(dispatch_get_main_queue(), ^{ Likely better to use a lambda, like we do for addCommitHandler; replace the `^{` with `[callSnapshotRect = WTFMove(callSnapshotRect)] {`
Created attachment 432115 [details] Patch
Committed r279210 (239096@main): <https://commits.webkit.org/239096@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432115 [details].