You know because there is an explicit permission box that pops out and asks if you want to give this website access to a device, and asks you to select that device.

Same as your camera/microphone/location.

But that still gives completely unvetted direct access to the device to a website! People have been pointing to Itch.io games that supposedly require direct USB access. How hard is it to hide a script in there that reprograms a controller into something malicious?

If you download a executable from a website and run it .. pretty much the same thing?

If you give USB access, it is not really a website anymore, rather a app delivered through the web. I don't see a fundamental difference in trust.

I rather am able to verify the web based version easier and I certainly won't give access to a random website, just like I don't download random exes from websites.

Performance is lower, yes and well ... like I said, it is all a big mess. Just look at the global namespace in js. I still use it because of that power feature called plattform independence. What I release, people can (mostly) just use. I (mostly) don't care which OS the user has.

A fule thst lands on my hard drive is aztomatically scanned for malware. That same kindof protection isn't in place against malicious scripts downloaded by my broswer via an opaque HTTPS connection and run in process.

And we all know that non-technical users never just click Yes to make the annoying popup go away.