Bug 232970

Summary: We should not kill all WebContent processes whenever the WebAuthn process crashes
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, ews-watchlist, ggaren, jiewen_tan, kkinnunen, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=233001
Attachments:
Description Flags
Patch
none
Patch ews-feeder: commit-queue-

Description Chris Dumez 2021-11-10 16:15:17 PST
We should not kill all WebContent processes whenever the WebAuthn process crashes. This is overly aggressive. We should instead do like for the network process and have the WebProcess re-initiate the connection to the WebAuthn process when it's gone.
Comment 1 Chris Dumez 2021-11-10 16:15:40 PST
<rdar://83941760>
Comment 2 Chris Dumez 2021-11-10 16:19:20 PST
Created attachment 443876 [details]
Patch
Comment 3 Geoffrey Garen 2021-11-10 16:24:05 PST
Comment on attachment 443876 [details]
Patch

r=me
Comment 4 Geoffrey Garen 2021-11-10 16:24:40 PST
Does this API test (or another) demonstrate that use of WebAuthn does succeed after restarting the WebAuthn process?
Comment 5 Chris Dumez 2021-11-10 16:28:59 PST
(In reply to Geoffrey Garen from comment #4)
> Does this API test (or another) demonstrate that use of WebAuthn does
> succeed after restarting the WebAuthn process?

Hmm, this particular test only calls `internals.setMockWebAuthenticationConfiguration({ })` which causes the WebAuthn process to get re-launched but it indeed doesn't attempt to use WebAuthn afterwards.

This seems to be the only test that involves killing the WebAuthn process...

I know very little about WebAuthn :o) but I'll look into extending the test to actually use WebAuthn after the crash.
Comment 6 Chris Dumez 2021-11-10 17:50:10 PST
Created attachment 443887 [details]
Patch
Comment 7 EWS 2021-11-10 21:03:22 PST
Committed r285619 (244120@main): <https://commits.webkit.org/244120@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443887 [details].