Re:Show HN: DualShock calibration in the browser using WebHID
by hnburnsy on Tuesday April 09, 2024 @07:44PM
(#39985487)
Are these really the job of your browser?
[ Parent
| on HN ]
Re:Show HN: DualShock calibration in the browser using WebHID
by AgentME on Tuesday April 09, 2024 @08:53PM
(#39985871)
The browser is a great for distribution (apps are just URLs) and security (web pages need to ask permission before accessing anything on your computer outside of their domain).
More people should question the common belief that desktop OSes (without enforced app sandboxing) do a proper job at being a platform for utilities like OP's. When you download and run an .exe on a normal Windows pc, you're giving it read and write access to everything on your user account. It's bad that you're required to put so much trust in developers to run programs on typical desktop systems; this either ends up causing people to be extremely picky about what they run or to give out trust too freely and get bitten by malware often. Platforms like the browser which sandbox (web) apps and enforce a granular permission system are terrific.
Re:Show HN: DualShock calibration in the browser using WebHID
by hnburnsy on Wednesday April 10, 2024 @11:56AM
(#39992149)
With all the APIs available to the browser at what point do I have the same worry that an .exe brings?
Re:Show HN: DualShock calibration in the browser using WebHID
by AgentME on Wednesday April 10, 2024 @02:57PM
(#39994439)
Web pages can't do anything that affects the rest of your system without going through a permission dialog, and the permissions are always very granular. A page can't trigger a yes/no permission dialog to get access to all of your files; it can only trigger a file-picker that gives it access to whatever the user picks in it. An .exe doesn't need to go through any permission dialog to upload/wipe/infect any file in your home directory.