Bug 258859 - [iOS] WKWebView doesn't prompt for additional IndexedDB quota
Summary: [iOS] WKWebView doesn't prompt for additional IndexedDB quota
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Website Storage (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-04 11:48 PDT by Ali Juma
Modified: 2023-07-11 11:49 PDT (History)
5 users (show)

See Also:


Attachments

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