News for hackers. Stuff that matters.
Re:Show HN: Capsule – Single-file web apps that save their d... by simongray on Tuesday September 15, 2026 @01:08PM (#49715546)
That file editor seems to work in Firefox. I just tested the save/open functionality.
Re:Show HN: Capsule – Single-file web apps that save their d... by tbrockman on Tuesday September 15, 2026 @02:13PM (#49716502)
It's not using the File System Access API, on Firefox it uses <input type="file"> for file-picking, and the save just downloads it. It's not synchronizing anything with your filesystem.
Re:Show HN: Capsule – Single-file web apps that save their d... by simongray on Tuesday September 15, 2026 @02:53PM (#49717071)
I see. Thanks for enlightening me.
Re:Show HN: Capsule – Single-file web apps that save their d... by whizzter on Wednesday September 16, 2026 @04:28AM (#49723547)
Iirc the File System Access API should always originate File objects from an input picker so that the user selects the file to be opened and not give more access to apps than users allows?
Re:Show HN: Capsule – Single-file web apps that save their d... by bithammerthunde on Wednesday September 16, 2026 @04:35AM (#49723616)
Do you know the reason for that? The File System API does seem to be well supported on Firefox: https://developer.mozilla.org/en-US/docs/Web/API/File_System...
Re:Show HN: Capsule – Single-file web apps that save their d... by mg on Wednesday September 16, 2026 @05:38AM (#49724029)
Firefox unfortunately does not support the File System Access API. You can try by calling the most fundamental function, the one that asks the user to select a file:

    window.showOpenFilePicker()
What Firefox supports is a "File System API" which creates something similar to the other old ways of storing data in a browser, like cookies and indexeddb. You cannot use it to edit normal files on your disk.

This is my main gripe with Firefox. They force their users to either store everything in the cloud or go through the arcane "download" workflow where you have to manually save files.

Re:Show HN: Capsule – Single-file web apps that save their d... by tgv on Wednesday September 16, 2026 @07:09AM (#49724812)
> Firefox unfortunately does not support the File System Access API.

I would not call it unfortunate. Browsers should not have access to the file system, USB ports, etc. Perhaps in "PWA"s, if the user has a way of giving and withdrawing consent.

Re:Show HN: Capsule – Single-file web apps that save their d... by cush on Wednesday September 16, 2026 @10:50AM (#49727916)
Why shouldn’t browsers have these capabilities..?
Re:Show HN: Capsule – Single-file web apps that save their d... by tgv on Thursday September 17, 2026 @01:48AM (#49736871)
It's unsafe and allows for even more privacy invasion.
Re:Show HN: Capsule – Single-file web apps that save their d... by cush on Thursday September 17, 2026 @09:15AM (#49740307)
Why is that true? Some applications require file system access. People would grant the application the permission to access files like any other resource like camera, mic, location.
Re:Show HN: Capsule – Single-file web apps that save their d... by tgv on Friday September 18, 2026 @02:05AM (#49750664)
Because vulnerabilities, coarse access granularity and lazy or ill-informed users. E.g., you now grant cam access per domain. Changing functionality on that domain doesn't revoke permission, so a simple bait and switch is already possible. Now imagine granting access to your file system to some Microsoft domain and finding out that there was a change of heart and some new script has uploaded your files to OneDrive and deleted them from your disk.
Re:Show HN: Capsule – Single-file web apps that save their d... by mg on Friday September 18, 2026 @03:37AM (#49751257)
Taking that logic of protecting users from themselves to the extreme, a website should not be able to display text either. Because it can use text to ask the user to open their explorer and delete the files manually.

I think the flow of Chrome where the user has to select a file from disk and then acknowledge a prompt that the site will have access to that file until they close the window is fine. But if Mozilla wanted to protect users from themselves even more, they could make it as strong as they like. For example, by requiring to turn the functionality on in about:config.

Not giving the user the choice at all, if they want a cloud only browser or a browser that lets them work with local files is the wrong way.

Re:Show HN: Capsule – Single-file web apps that save their d... by lenkite on Thursday September 17, 2026 @07:27AM (#49739234)
I would prefer that Browsers be given access via permissions - that way webapps will become more prevalent than appstore apps.
Re:Show HN: Capsule – Single-file web apps that save their d... by maelito on Tuesday September 15, 2026 @01:44PM (#49716044)
It just downloaded the file on my firefox.