Bug 243704

Summary: Group WKWebView state which is per-process into a struct
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit Misc.Assignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2022-08-08 18:00:49 PDT
We often have bugs where we forget to reset state on WKWebView when the web process terminates (the same is true on WebPageProxy, which I will fix separately).

To make it harder to create such bugs, group all the data that needs to be reset on web process termination into a struct. `_processWillSwapOrDidExit` can then just reinitialize this struct.
Comment 1 Simon Fraser (smfr) 2022-08-08 21:29:39 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3138
Comment 2 Radar WebKit Bug Importer 2022-08-15 18:01:18 PDT
<rdar://problem/98697590>
Comment 3 EWS 2022-08-16 00:39:29 PDT
Committed 253459@main (ba12984f136d): <https://commits.webkit.org/253459@main>

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