Bug 258859

Summary: [iOS] WKWebView doesn't prompt for additional IndexedDB quota
Product: WebKit Reporter: Ali Juma <ajuma>
Component: Website StorageAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, beidson, cdumez, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ali Juma 2023-07-04 11:48:35 PDT
When a webpage wants to use a large amount of storage space for IndexedDB, Safari prompts the user for permission. However, non-Safari WKWebViews are not able to do this, since this is handled by SPI on WKUIDelegate. Specifically, WKUIDelegate has `decideDatabaseQuotaForSecurityOrigin` functions declared here: https://github.com/WebKit/WebKit/blob/main/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h#L133

A bug reporter on the chromium bug tracker (crbug.com/1457845) reports that in Chrome on iOS, they can use ~1 GB of storage space, but can't use any more. But on Safari, the user is prompted to allow additional storage.

WKWebView should either handle this prompting on its own, or allow the embedder to show a prompt (by promoting the `decideDatabaseQuotaForSecurityOrigin` SPI to API).
Comment 1 Radar WebKit Bug Importer 2023-07-11 11:49:17 PDT
<rdar://problem/112093489>