Bug 271401
Summary: | navigator.storage.persist() always return false | ||
---|---|---|---|
Product: | WebKit | Reporter: | Renann <comercial.renann> |
Component: | Website Storage | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Major | CC: | ahmad.saleem792, bar.perlman9, callionica, mike, rob, sihui_liu, tomac, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 14 |
Renann
Although the official documentation states that Safari 17 fully supports the Storage API, when requesting persistent storage, I always receive 'false' as a response.
In Safari 15, operation seems normal.
To reproduce the error, simply visit the website you want to enable persistent storage and type into the console:
await navigator.storage.persist()
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/125567389>
Callionica
You can also add a website to the dock on Mac OS and try the same repro with the same results: navigator.storage.persist() always returns false.
Ahmad Saleem
Indeed - Safari 17 returns 'false' while Chrome Canary 125 and Firefox Nightly 126 returns 'true' and in Firefox, you have to allow it through user permission settings.
Ahmad Saleem
@Renann & Callionica - is it recent regression e.g., Safari 17.x used to work or Safari 16 used to work but not any more? Appreciate if you can share your input.
bar.perlman9
Do you know if this bug is an issue with result state only and the persisted state is updated actually on calling to await navigator.storage.persist()?