3 ms·
> Permission prompts are not required to access files in the OPFS. Surely, it prompts at some point. Otherwise this is an unblockable cookie mechanism. Presu
by hedora 4y ago
> Permission prompts are not required to access files in the OPFS.
Surely, it prompts at some point. Otherwise this is an unblockable cookie mechanism. Presumably there is some way to disable it, right?
- mhoad 4y agoHow is it different from window.localStorage.setItem('user-id', 'user123'); I look at it like so: Local Storage: Key Value IndexedDB: Structured Document Database OPFS: BYO File Format But all operate under the same restrictions and set of considerations.
- kibwen 4y agoCookies already don't prompt, so I'm not sure that's the best comparison. In addition, while cookies can be created by one origin and read by another origin (a.k.a. "third-party cookies", which Firefox has been trying to deprecate for a while now), this API is private to each origin, making it useless for cross-site tracking. As for disabling this, I assume these are the appropriate pages in the docs: https://support.mozilla.org/en-US/kb/storage https://support.mozilla.org/en-US/kb/storage https://support.mozilla.org/en-US/kb/block-websites-storing-cookies-site-data-firefox https://support.mozilla.org/en-US/kb/block-websites-storing-... .
- hedora 4y agoSo, there’s no “disable for all sites” or (better) “clear on close” button, like there is for cookies. Great.
- jasonlotito 4y ago> So, there’s no “disable for all sites” or (better) “clear on close” button, like there is for cookies. There is. Settings > Privacy & Security > Cookies and Site Data. Select "Delete cookies and site data when Firefox is closed." > Great It is great.