NEW258859
[iOS] WKWebView doesn't prompt for additional IndexedDB quota
https://bugs.webkit.org/show_bug.cgi?id=258859
Summary [iOS] WKWebView doesn't prompt for additional IndexedDB quota
Ali Juma
Reported 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).
Attachments
Radar WebKit Bug Importer
Comment 1 2023-07-11 11:49:17 PDT
Note You need to log in before you can comment on or make changes to this bug.