logoalt Hacker News

nozzlegearyesterday at 11:37 PM4 repliesview on HN

Firefox doesn't ask permission just to use localstorage, no modern browser does this. The closest thing you get is when a site wants to persist storage with "navigator.storage.persist()", which should prompt you for permission. But localstorage data usually persists anyway, and only gets deleted if the browser's storage is "under pressure", so I've never personally worked on a site or web app that had to use that API.


Replies

anygivnthursdaytoday at 1:00 AM

You mean by default or it cannot be configured that way? I believe, I had Chrome configured to not allow storage by default, only for sites I added to an exclusion list. I cant remember now, but isnt there also an option to change the default on Firefox to deny or always ask for permission?

show 1 reply
Vinnltoday at 1:21 PM

I don't think LocalStorage allows you to store gigs of data though, and IIRC this method depended on the Origin-Private File System API.

atoavtoday at 5:28 AM

Btw. as per EU law (GDPR) website owners are required to aquire informed consent for any kind of client side storage if it contains information that is personal. And it has been ruled that any information that can be used to identify returning users is such.

People think the GDPR is just about cookies, but it is agnostic of the technology used.

Maximum fines: €20 million, or 4% of the company's total worldwide annual turnover of the preceding financial year — whichever is higher.

And informed consent means they need to know what data you collect/store for which purposes and there needs to be an equally easy to select No-Option.

show 1 reply