Bug 243704 - Group WKWebView state which is per-process into a struct
Summary: Group WKWebView state which is per-process into a struct
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-08 18:00 PDT by Simon Fraser (smfr)
Modified: 2022-08-16 00:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.