Bug 258859
| Summary: | [iOS] WKWebView doesn't prompt for additional IndexedDB quota | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ali Juma <ajuma> |
| Component: | Website Storage | Assignee: | 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 | ||
Ali Juma
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/112093489>