NEW 229811
Implement Storage API
https://bugs.webkit.org/show_bug.cgi?id=229811
Summary Implement Storage API
Sihui Liu
Reported 2021-09-02 09:30:03 PDT
Attachments
Radar WebKit Bug Importer
Comment 1 2021-09-02 09:30:40 PDT
Sam Sneddon [:gsnedders]
Comment 2 2022-10-28 05:00:44 PDT
AFAICT, the only thing left to do here is https://github.com/WebKit/WebKit/blob/a121340322ef72e3e303af58db1c88cb23bf397d/Source/WebCore/Modules/storage/StorageManager.idl#L36 : // FIXME: add Promise<StorageEstimate> estimate(); That said, we don't appear to have any open bug for that?
Nate Brustein
Comment 3 2023-03-20 07:27:16 PDT
I'm not seeing StorageManager.persist() and persisted() work in the way I expect. Here is what I'm seeing in Safari: * storage.persist() will resolve to true * In the same session, storage.persisted() will resolve to true * After refreshing the page storage.persisted() will resolve to false I would expect that if storage.persisted() resolved to true in one session, it would still be true in a subsequent session. That's what I'm seeing in Chrome and FF. Am I misunderstanding the behavior here, or is this unexpected?
Sihui Liu
Comment 4 2023-05-10 14:54:01 PDT
(In reply to Nate Brustein from comment #3) > I'm not seeing StorageManager.persist() and persisted() work in the way I > expect. > > Here is what I'm seeing in Safari: > > * storage.persist() will resolve to true > * In the same session, storage.persisted() will resolve to true > * After refreshing the page storage.persisted() will resolve to false > > I would expect that if storage.persisted() resolved to true in one session, > it would still be true in a subsequent session. That's what I'm seeing in > Chrome and FF. > > Am I misunderstanding the behavior here, or is this unexpected? Hi, the persisted flag was not persisted (as WebKit didn't evict data on storage pressure), and this particular issue is fixed at https://bugs.webkit.org/show_bug.cgi?id=256483.
Note You need to log in before you can comment on or make changes to this bug.