News for hackers. Stuff that matters.
Re:Tell HN: Check medium's localstorage if you use adblock by dependenttypes on Saturday August 29, 2020 @03:10AM (#24314297)
I would argue that the anti-feature is the existence of local storage. Medium is just a symptom of the underlying issue, which is that browsers do not care about privacy.
Re:Tell HN: Check medium's localstorage if you use adblock by hombre_fatal on Saturday August 29, 2020 @08:53AM (#24315746)
No, I think the anti-feature is that browsers don't give users good tools to see when things are being stored in storage (cookies, localstorage, etc.), what is being stored, whether it should be stored, and when it should expire.

I think this stuff should have a first-class UI component in 2020, not be hidden away in a submenu in the devbar that's frankly even annoying to deal with as a developer.

By pitching cookies only, you're saying that websites should only be able to store stuff that the browser should have to reflect back to the server through http headers. I don't think the constraint makes sense beyond wasting bandwidth for settings that should stay local.

Just look at this HN submission. We shouldn't need an HN submission to know this about the websites we visit. Browsers are failing us here. If a website is abusing our localstorage like this, it should be obvious (for the people who care). As it currently stands, browsers enable bad actors to do bad things silently with zero consequence beyond the few nerds who happen to notice it.

As an example, I'm reminded of the new iOS feature(?) that shows when the clipboard is being accessed which spurred a bunch of "wtf is $app doing with my clipboard?" last month. That's what I think setting cookies and localStorage should be like. Or at least a way to opt in to that behavior without throwing the baby out with "disable localstorage".

Re:Tell HN: Check medium's localstorage if you use adblock by Santosh83 on Saturday August 29, 2020 @09:17AM (#24315860)
Yup, you're on the money here. In fact browsers should make accessing the data stored by sites and modifying their permissions drop-dead intuitive, even for non-tech users and those with more knowledge should be afforded further knobs to tweak. This kind of UI might be a bit hard to design and require some thought, but I think it is quite possible, and I find it surprising that even after all these years, the dialogues and preferences dealing with examining and controlling the storage and execution of websites and apps to be poorly thought out, obscure and very clunky.

I can understand why Chrome might not want to improve in this regard as its parent company's interests directly conflict with more user control of web data, but amazingly, if anything, Firefox's settings for auditing and restricting websites is even worse. And none of the browsers, AFAIK, have taken the initiative in this area and tried to really differentiate themselves.

I suspect they think no one except a few tech users will be interested in these knobs, but the thing is, if you make them prominent, easy to use, understand and intuitive, I bet a lot more people will start using them.

Re:Tell HN: Check medium's localstorage if you use adblock by 411111111111111 on Saturday August 29, 2020 @03:32AM (#24314394)
Erm, how should ppl keep Frontend authentication tokens etc between refreshes without something like local storage?

And how would we make offline webapps which don't store anything on servers?

Re:Tell HN: Check medium's localstorage if you use adblock by dependenttypes on Saturday August 29, 2020 @04:19AM (#24314581)
> Frontend authentication tokens etc

Cookies or use tls authentication.

> And how would we make offline webapps which don't store anything on servers?

Don't make webapps in the first place.

Re:Tell HN: Check medium's localstorage if you use adblock by Lio on Saturday August 29, 2020 @04:44AM (#24314690)
If the choice is between a webapp and a native app the webapp is going to give users more control and a choice of the platform they want to view it on.

I may be in a minority but I still want to run on desktop linux with an ad blocker or vimium.

Webapps give me that. Native apps don’t.

Re:Tell HN: Check medium's localstorage if you use adblock by dependenttypes on Saturday August 29, 2020 @11:21AM (#24316678)
> the webapp is going to give users more control

You can't modify the webapp nor can you refuse to update it.

Re:Tell HN: Check medium's localstorage if you use adblock by Lio on Saturday August 29, 2020 @11:36AM (#24316804)
Of course you can modify the webapp. You are running the source code in your browser.

Even if it’s minimised you can still modify it.

Re:Tell HN: Check medium's localstorage if you use adblock by criddell on Saturday August 29, 2020 @09:15AM (#24315848)
An ad-blocker in the form of something like a pi-hole should work with native apps, no?
Re:Tell HN: Check medium's localstorage if you use adblock by hombre_fatal on Saturday August 29, 2020 @09:31AM (#24315949)
Only when you are connected through your pi-hole.

Also, when pi-hole and mitmproxy are our only options to know what our device is doing and to block things we don't want, then we've lost. The web browser is basically the last bastion of control that we have with its devbar and networkbar and all. Blocking content/requests is something our devices should be able to do themselves.

It's a miracle of history that we have the browser, and it's hard to imagine us having it had it been invented today. We need to fight to keep it, not dismiss it with "ugh web tech amirite?" while we regress to native app black boxes as our only option.

Re:Tell HN: Check medium's localstorage if you use adblock by criddell on Saturday August 29, 2020 @12:48PM (#24317398)
A pi hole protects your whole network. What you are asking for sounds more like a traditional firewall that I think every computer still supports.
Re:Tell HN: Check medium's localstorage if you use adblock by Jonnax on Saturday August 29, 2020 @04:41AM (#24314673)
Yeah let's download desktop apps! They all have permission to upload your entire documents folder to the internet.
Re:Tell HN: Check medium's localstorage if you use adblock by JimDabell on Saturday August 29, 2020 @10:24AM (#24316310)
No applications installed through the Mac App Store have permission to read your documents unless you explicitly allow that. And you can revoke that access at any time by going to System Preferences… > Security & Privacy > Privacy > Files & Folders.
Re:Tell HN: Check medium's localstorage if you use adblock by dependenttypes on Saturday August 29, 2020 @04:47AM (#24314713)
> They all have permission to upload your entire documents folder to the internet

They do not need to, and unlike "webapps" there isn't a remote server that can change the code that you are running at any moment.

Re:Tell HN: Check medium's localstorage if you use adblock by gruez on Saturday August 29, 2020 @08:58AM (#24315775)
Your response entirely fails to address the parent's concern about security. It's like responding to a RCE in your backend with "yeah it's there but we'll trust the users to not use it"
Re:Tell HN: Check medium's localstorage if you use adblock by dependenttypes on Saturday August 29, 2020 @11:25AM (#24316719)
I do not understand your example. It would not be the user triggering the RCE but rather a 3rd party. In addition I do not see how it fails to address their concern.
Re:Tell HN: Check medium's localstorage if you use adblock by siscia on Saturday August 29, 2020 @03:26AM (#24314373)
I am about to implement a privacy friendly base knowledge app, and local storage is a cornerstone for doing fast full text search.