WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
245517
localstorage data was not deleted after 7days
https://bugs.webkit.org/show_bug.cgi?id=245517
Summary
localstorage data was not deleted after 7days
yudamoai
Reported
2022-09-22 02:14:08 PDT
We have a web site using a localstorage to provide offline datas to our users. In this article
https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/'s
contents [7-Day Cap on All Script-Writeable Storage], describes the deletion of localstorage data after seven days of inactivity with the site. But, after we tested according to the following steps, we found that the localstorage data was not deleted. Step1 Open our website [example.test.com] using iOS15's safari. Step2 Click on the content in our homepage, and localstorage data will be generated in the browser at this time.(Our website does not use cookies.) Step3 Close the site. Step4 Revisit our site in iOS15's safari after seven days. Step5 Confirmed through the developer mode of safari for mac, the localstorage data was not deleted. I can't confirm if this is a bug, should you tell me the reason why localstorage is not deleted? Hope your replay.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-24 10:49:31 PDT
<
rdar://problem/100363764
>
Matthew Finkel
Comment 2
2022-09-27 13:37:59 PDT
Thanks for filing this bug. In your test, after visiting the web site (example.test.com), was Safari used every day for all seven of the days before you confirmed local storage was not deleted?
yudamoai
Comment 3
2022-09-28 18:48:32 PDT
(In reply to Matthew Finkel from
comment #2
)
> Thanks for filing this bug. In your test, after visiting the web site > (example.test.com), was Safari used every day for all seven of the days > before you confirmed local storage was not deleted?
Thank you! I haven't used safari for seven days after my test, maybe that's why localstorage hasn't been removed. After visiting the web site (example.test.com), in the next seven days i use safari once or more everyday, the web site (example.test.com)'s localstorage will be deleted? or the total duration of using safari is 7 days,the web site (example.test.com)'s localstorage will be deleted?
John Wilander
Comment 4
2022-09-28 19:39:41 PDT
(In reply to yudamoai from
comment #3
)
> (In reply to Matthew Finkel from
comment #2
) > > Thanks for filing this bug. In your test, after visiting the web site > > (example.test.com), was Safari used every day for all seven of the days > > before you confirmed local storage was not deleted? > > Thank you! > > I haven't used safari for seven days after my test, maybe that's why > localstorage hasn't been removed. > > After visiting the web site (example.test.com), in the next seven days i use > safari once or more everyday, the web site (example.test.com)'s localstorage > will be deleted? > or the total duration of using safari is 7 days,the web site > (example.test.com)'s localstorage will be deleted?
The logic is that script-written website data is deleted after seven days of browser use, not just seven calendar days. This is to provide a good user experience on a device that’s for example only used on weekends.
Matthew Finkel
Comment 5
2022-09-30 07:48:11 PDT
Yudamoai, would you like to close this bug or are you verifying this works correctly after the browser is used for seven days?
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