Six undocumented WKWebView behaviors that can break your iOS/macOS browser build
A developer who spent months building a full-featured browser on Apple's WKWebView has documented six critical behaviors not covered in official documentation. Among the key findings: the long-recommended WKProcessPool for sharing processes was deprecated in macOS 12 and now has no effect, with WKWebsiteDataStore being the actual controller of process sharing. The article also warns that calling WKWebsiteDataStore(forIdentifier:) with the same UUID returns different objects each time, silently breaking process sharing unless instances are cached and reused. Deleting a data store via remove(forIdentifier:) throws an error if any reference to that store remains alive, requiring developers to release all references before retrying deletion. The findings apply primarily to macOS but are largely relevant to iOS development as well.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in