Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8539dbad57196cae82907b9eededdfb7b66fadd9
https://github.com/WebKit/WebKit/commit/8539dbad57196cae82907b9eededdfb7b66fadd9
Author: Ben Nham <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/LegacyGlobalSettings.cpp
Log Message:
-----------
Initialize CacheModel based on whether app is a web browser
https://bugs.webkit.org/show_bug.cgi?id=305790
rdar://168463192
Reviewed by Per Arne Vollan.
CacheModel is currently initialized to PrimaryWebBrowser by default. This means
that we end up doing
things like enabling the web process cache for trivial use cases in iOS apps
that just use a
WKWebView to display a small ad or other element.
To fix this, initialize CacheModel to DocumentBrowser by default, and only set
it to
PrimaryWebBrowser if the UIProcess is actually a browser.
* Source/WebKit/UIProcess/LegacyGlobalSettings.cpp:
(WebKit::LegacyGlobalSettings::LegacyGlobalSettings):
Canonical link: https://commits.webkit.org/306035@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications