WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
271401
navigator.storage.persist() always return false
https://bugs.webkit.org/show_bug.cgi?id=271401
Summary
navigator.storage.persist() always return false
Renann
Reported
2024-03-21 11:36:09 PDT
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
Comment 1
2024-03-28 11:37:14 PDT
<
rdar://problem/125567389
>
Callionica
Comment 2
2024-04-04 14:03:11 PDT
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
Comment 3
2024-04-05 06:37:53 PDT
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
Comment 4
2024-04-05 06:38:43 PDT
@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
Comment 5
2025-01-04 08:54:20 PST
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()?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug