RESOLVED FIXED 276998
Clarification: ITP and Origin Private File System
https://bugs.webkit.org/show_bug.cgi?id=276998
Summary Clarification: ITP and Origin Private File System
Lucky
Reported 2024-07-24 06:54:21 PDT
Apologies if this is not the correct place to ask this question. I recently became aware of the ITP behavior of clearing all script writable storage for an origin after 7 days of inactivity. The article that announces the change (https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) does not seem to include the File System Access API, but it predates the introduction of the API in Safari. I was not able to find further definitive information on the topic. I now wondered whether it is expected that OPFS storage is not cleared by ITP, or whether it is expected for ITP to clear this storage in the future as well. Context: I'm building a web app that wants to store user data offline without syncing to a server.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-07-31 06:55:13 PDT
Daniel Compton
Comment 2 2024-11-27 17:16:29 PST
From this blog post: https://webkit.org/blog/12257/the-file-system-access-api-with-origin-private-file-system/, I think that OPFS will match the behaviour of other storage types: > The API is currently unavailable for Safari windows in Private Browsing mode. For where is it available, its storage lifetime is the same as other persistent storage types like IndexedDB and localStorage. The storage policy will conform to the Storage Standard - https://storage.spec.whatwg.org/#storage-endpoints.
Sihui Liu
Comment 3 2024-11-29 13:47:55 PST
That's correct. The ITP policy applies to all script writable storage types (when ITP is enabled).
Lucky
Comment 4 2024-11-30 01:47:02 PST
Thank you both!
Note You need to log in before you can comment on or make changes to this bug.