News for hackers. Stuff that matters.
Re:Getting Started with the File System Access API by monkellipse on Monday February 14, 2022 @10:32PM (#30342398)
I didn’t see any security features mentioned… am I the only one a wee bit terrified? Am I just paranoid?
Re:Getting Started with the File System Access API by nekcihc on Monday February 14, 2022 @10:48PM (#30342550)
I remember some time ago Firefox denied all the local access as a security issue - despite all the dialogs that asked for rights. Had to find some other ways to access simple txt file - via link.
Re:Getting Started with the File System Access API by cmeacham98 on Monday February 14, 2022 @11:28PM (#30342795)
Firefox never has implemented the filesystem access API: https://caniuse.com/native-filesystem-api
Re:Getting Started with the File System Access API by iggldiggl on Tuesday February 15, 2022 @08:31AM (#30346122)
They didn't even want to give extensions that kind of capabilities (and in the process significantly crippled mass downloaders like DownThemAll and others), so yeah…
Re:Getting Started with the File System Access API by nekcihc on Tuesday February 15, 2022 @09:27AM (#30346817)
I was refering to ability to manipulate local files from Firefox, that existed 6 - maybe 8 years ago - long long time ago, when this filesystem API did not exist.
Re:Getting Started with the File System Access API by monocasa on Monday February 14, 2022 @10:35PM (#30342421)
There's explicit dialogs the user has to opt into.
Re:Getting Started with the File System Access API by est31 on Monday February 14, 2022 @10:55PM (#30342602)
Most (>80%) of users are highly computer illiterate. Even among younger folks. There has recently been a story on hn about zoomers not "understanding" how file systems work.
Re:Getting Started with the File System Access API by monocasa on Monday February 14, 2022 @11:37PM (#30342853)
Statistically they have a lesser understanding of hierarchical filesystems, because Apple and to a lesser degree Google have been going out of their way to hide that on mobile OSes for some reason that was never really clear to me. They still understand files though.

And at the end of the day there's only so much you can do. The same kind of people that will click yes on any dialog will also click yes on "do you want to run this exe you just downloaded", and that'll get you file system access just fine too.

Re:Getting Started with the File System Access API by est31 on Tuesday February 15, 2022 @12:29AM (#30343157)
Yeah hierarchical file systems are not the one true way to organize your data.

But from my understanding, the user grants access via this API on a directory based level when the website asks for access to one directory. If you have no concept of directories, or you put everything directly into one directory, it's tough to make this restriction useful. So in this instance, knowledge of hierarchical file systems is relevant, even if new operating systems make this knowledge increasingly obsolete.

Re:Getting Started with the File System Access API by monocasa on Tuesday February 15, 2022 @12:57AM (#30343292)
> Yeah hierarchical file systems are not the one true way to organize your data.

It's the way nearly all computers, mobile or not, organize data. Some hide this fact to because they either think they know better than the user (Apple) or they want to make it really painful to not store all of your data in their backend (Google).

> But from my understanding, the user grants access via this API on a directory based level when the website asks for access to one directory. If you have no concept of directories, or you put everything directly into one directory, it's tough to make this restriction useful. So in this instance, knowledge of hierarchical file systems is relevant, even if new operating systems make this knowledge increasingly obsolete.

I think that illiteracy here has more to do with the advent of mobile OSes and people only exposed to mobile devices. Filesystem access isn't supported on mobile browsers at all so there isn't really a problem there (except for mobile Safari, which also doesn't expose folders to users, being on Apple's direct control).

https://caniuse.com/native-filesystem-api

Re:Getting Started with the File System Access API by tshaddox on Tuesday February 15, 2022 @01:47AM (#30343530)
If you’re concerned about users having literally no floor to their technical understanding or awareness, then those users are already vulnerable to websites with a form that says “type your Gmail address and password here.”
Re:Getting Started with the File System Access API by hulitu on Tuesday February 15, 2022 @10:30AM (#30347739)
You mean like in Android ? Where you give an app access to all your files ?