Bug 305790

Summary: Initialize CacheModel based on whether app is a web browser
Product: WebKit Reporter: Ben Nham <nham>
Component: WebKit Misc.Assignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ben Nham
Reported 2026-01-19 13:42:15 PST
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 element. To fix this, initialize CacheModel to DocumentBrowser by default, and only set it to PrimaryWebBrowser if the UIProcess is actually a browser.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-01-19 13:42:24 PST
Ben Nham
Comment 2 2026-01-19 13:43:51 PST
EWS
Comment 3 2026-01-22 13:26:55 PST
Committed 306035@main (8539dbad5719): <https://commits.webkit.org/306035@main> Reviewed commits have been landed. Closing PR #56853 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.