[Webkit-unassigned] [Bug 266559] Safari periodically erasing LocalStorage and IndexedDB for all websites
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 18 05:06:16 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=266559
--- Comment #3 from Jeff Johnson <opendarwin at lapcatsoftware.com> ---
I found 100% reliable steps to reproduce, but they're complicated. It turns out that the issue seems to involve both the web inspector and a Safari content blocker.
Some background: I disabled "Prevent cross-site tracking" because of data loss due to the 7-day cap on script-writeable storage. However, I still wanted third-party cookie blocking, so I wrote a little Safari content blocker with one rule:
"action": {
"type": "block-cookies"
},
"trigger": {
"load-type": ["third-party"],
"url-filter": ".*"
}
Ironically, this workaround is also causing data loss. I find it very frustrating that I can't use Safari without it automatically erasing data in some way.
Steps to reproduce:
1) Download and unzip the attached sample Xcode project StopTheCookies
2) Add the file DEVELOPMENT_TEAM.xcconfig to the folder with the contents DEVELOPMENT_TEAM = [YourTeamID]
3) Build and run the Xcode project
4) Open Safari Settings
4) Enable StopTheCookies in Extensions Settings, and make sure to Allow in Private Browsing
5) Disable Prevent cross-site tracking in Privacy Settings
6) Set Safari opens with: A new private window in General Settings
7) Open http://www.sharonminsuk.com/code/storage-test.html in a non-private window
8) Enter "testing" and press the Store it button
9) Quit Safari
10) Open Safari
11) Open https://www.cnn.com in the private window
12) Open a new non-private window
13) Open http://www.sharonminsuk.com/code/storage-test.html in the non-private window
14) Close the non-private window
15) Open the web inspector in the CNN tab
16) Close the web inspector
17) Close the CNN private window
18) Open a new non-private window
19) Open http://www.sharonminsuk.com/code/storage-test.html in the non-private window
Expected results: Local storage: "testing"
Actual results: Local storage: empty
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231218/88283627/attachment.htm>
More information about the webkit-unassigned
mailing list