162 points · by joecobb · 3y ago · 174 comments
My current job uses USB security keys and I assumed I'd have to configure them in the OS before the browser was aware of them -nope! Chrome knows if the key is in the USB port and can interact with it with my approval, which is exactly right.
The leap from access to USB to access to serial is minimal. As long as the right permission checks are in place.
You're right, and it's such a bummer. I often think about how interesting it would be if we didn't end up with the Chrome/Safari browser duopoly and Windows/macOS duopoly on the desktop and Android/iOS duopoly for mobile. How cool would it be to see what the Amiga, Atari ST, Spectrum, OS/2, BeOS, etc... could have become with another couple of decades development. Even Windows and macOS would probably be different if they had to compete in a healthy, diverse ecosystem.
Instead, further concentration is probably going to happen once Apple allows alternate browsers. At that point, there isn't much to stop Google's Chrome from becoming the only application platform that really matters.
It's just not reasonable to expect every company to maintain more than two or three completely different versions of their apps, and most would vastly prefer to maintain just one, hence Electron and React Native.
It would be a constant incompatibility hell, and most code would be littered with #ifdefs and polyfills.
You can argue that companies producing software tools would specialize, so you would use Microsoft image editing tools on Windows, Foo's image editing tools on Amiga, Adobe's image editing tools on Mac etc, but that argument breaks down when it comes to banks, movie and music streaming companies, games etc.
Making an app means:
Android (and Android TV being more work), iOS, web, Roku, Fire TV, Tizen, Vizio, WebOS (LG), and multiple set top box vendors who all have horrible underpowered CPUs.
Some companies try do to cross platform, and that sort of works, but it is janky and customer complain of the sorts of UX issues that always pop up with cross platform apps, and for any decent functionality you end up writing per-platform shims. Also some platforms (Roku) you have to write an app for anyway because the platform requires using a custom language. Other platforms (Set top boxes) are so underpowered that you can't really run anything resembling modern code on them.
It sucks. It is a huge waste of engineering effort for no real gain. Most customers don't choose a smart TV based on its OS, a large % of people choose based on what is on sale at Costco, and another demographic chooses whatever they are told is "the best" by reviewers.
Mobile app developers dealing with a duopoly have it easy, but even that dramatically increases barrier to entry compared to the 90s where you just had to write one app for Windows and so long as you only used documented APIs, Microsoft would move heaven and earth to make sure your app kept working between major OS updates.
Not if the DoJ forces Google to abandon Chrome. Which they should.
Apple and Google should lose their app store monopolies (including first party default preference), Google should lose the Chrome monopoly. These are incredibly harmful to technology and competition.
Each company has plenty of money, attached user base, and engineering headcount to continue to be wildly successful and profitable without operating in a way that damages the rest of the tech sector.
The idea of WebOS is strong enough it seems to have lived on through Palm, HP, LG and now also a forked version.
It really was late to the mobile os race, but ahead of its time.
https://www.webosose.org/docs/tutorials/web-apps/developing-...
And more generally:
But all of these systems did exist. And for whatever reasons, they did not survive in the market. So the market decided they were not what was wanted.
The current amount of hacks needed to make the native desktop apps compatible across even the same operation system, but different versions, is kinda scary. Pretty sure the similar situation for mobile apps too.
The browser space has never been more diverse as well, most of them use Chromium under the hood but who cares, Chrome was Webkit was KHTML when it started too. A browser's success is only somewhat related to its engine. Having a base you can build on that guarantees all current and future website will work and be performant on has allowed for crazy levels of experimentation.
https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API
Isn't that neat?! Well, it could be, as long as you browser didn't allow this to be used, probed or even enumerated without explicit consent.
This is misleading at best. Here’s what the actual spec says <https://wicg.github.io/webusb/>:
> This specification was published by the Web Platform Incubator Community Group. It is not a W3C Standard nor is it on the W3C Standards Track.
It’s an experimental spec by Google (observe the affiliation of the three editors: all Google); Mozilla has adopted a negative position on it <https://mozilla.github.io/standards-positions/#webusb>; WebKit has not remarked upon it.
WebAuthN is different, since it does not provide sites low-level peripheral access – WebAuthN and CTAP have been designed for specifically this environment and go to great lengths to make fingerprinting hard.
As long as you don’t actually use an authenticator on a site to store a credential, it won’t be able learn anything about it.
Sure, but the fact that browsers became operating systems is unreasonable in the first place.
Sure it's not great, but the alternatives are worse.
That's a fashionable observation; I think it's a kind of illness. The idea that you can take over anyone's computer, and make it do things the user doesn't want done, and doesn't know are being done, makes some web-developer's heads swim; they can turn the whole internet into a sort of distributed supercomputer for their own private use. WHATWG bears a lot of responsibility for this.
A real operating system doesn't download and execute code from unverified remote locations. Nearly every website nowadays tries to load and execute in the browser code from any number of remote locations, without the user's approval or even knowledge. By default, I only allow 1st-party JS, which I consider to be an extremely liberal policy.
Sorry, but that is pretty much the standard way to install apps on windows.
That the browsers execute untrusted code all the time and still are secure is an advantage of web technology.
The browser is more of a universal user interface than a universal OS.
Of course something like chromeOS/ChromiumOS is an OS what boots directly into a browser, but it’s not a universal interface.
Maybe WebOS was a step in that direction being a mobileOS that was all html and JavaScript.
Screenshots: https://www.webosose.org/docs/guides/getting-started/webos-o...
https://www.webosose.org/docs/tutorials/web-apps/developing-...
I suppose. Not for me, though, as I don't (and won't) use web apps or complex websites. I sorely wish there was a browser that simply didn't have that capability.
Ideally it wouldn’t mean random web sites request motion data from you but I really don’t see this as ruining the internet.
These are all quite useful tools. I've never used WebMIDI but it's older than the other Web* APIs. When you have a use case for them, the APIs are a lot better than figuring out a cross platform serial port protocol (or, more realistically, writing a Windows application and letting the Linux/macOS/Android users figure it out themselves).
WebSerial/USB/Bluetooth doesn't do anything unless you permit it to. If websites used this feature, you've clicked "okay" when mapquest.com asked to use your serial port.
Unfortunately, Mozilla decided that this (and other related functionality) is "harmful". https://mozilla.github.io/standards-positions/#webserial
It is a shame, because the overlap between people who use Firefox as their main browser, and people who tinker with microcontrollers is likely pretty large.
Could also help detect agent string falsification: why would a device claiming it's UA is legacy IE have motion sensors?
Web server to web client: I'm not sure your so-called "user" represents a real-life human user. Can you at least prove that you're a real-life web browser?
Web client to web server: hmm, well okay, here's my User-Agent header. Just curious why you care about who's sending the request?
Web server to web client: Still not convinced, can you give this CAPTCHA to your so-called "user"? As to you second question: bots, spam. And the ad network sponsoring me doesn't trust my tally.
Web client to web server: My human hates CAPTCHAs, and AIs are better at it anyway.
Web server to web client: Ghrmbl. Okay let me talk to Widevine/FairPlay/PlayReady DRM or your microphone/gyroscope/battery level/uptime/...
...
The arms race of surveillance enshittification.
Bots will either all have the same (or a low diversity of) fingerprint, or if not then they will have the same randomisation techniques to mask the fingerprint.
Some of the additional browser features that access devices do reveal the most trivial way to determine "this is not a bot as bots don't have this fingerprint".
Of course that has implications, if privacy makes you look like a bot (it does), then the web has more friction the more private one is.
Now you’re playing botsimulater 2023.
The application developers one day notice that we have no less than 10 different tracking pixels blocking page loads and eating page performance to death (not to mention sending tons of tracking data out to god knows where). They do a git blame, call the marketing manager into a meeting, who doesn’t know what anyone’s talking about because that was “years ago” and just gives permission to delete all of them.
Then she comes back a couple days later upset because heap stopped reporting.
...And a law, that holds browser vendors accountable when neglecting this.
And abuse in this space is rampant.
A red herring is often used to mean an idea that leads one astray.
A red sparrow (or whatever animal) should often be used to mean a response that anulls one's idea.
The kind of whatabout-ism and but-it-already-is-everywhere responses are the old slippery slope concept, practiced in real time. They do nothing to discuss the facts at hand and are a void of useful conversation.
note: maybe an aussie bird, cause culturally aussies love peace, and will trick people to get it.. like Barbossa in pirates of the carribean..
the Crimson Rosella has a 'cussik-cussik' sound and a series of harsh metallic screeches. like a robot bird...
https://australian.museum/learn/animals/birds/crimson-rosell...
Red rosella - to make robotic screeches in an attempt to anull disliked ideas...
(or something)
HN really loves to hate those regulations and laws.
I accept there may be more teeth in the background, but nobody sees that. That's all entwined with legal maneuverings in courtrooms. What we actually see on the Internet is "everything is exactly the same, but with a new pop-up".
I don't really have an answer, so it's not like I'm much help. I'm all for laws that protect, but if they don't do anything other than make things way more complicated, that's really just a boon to big tech, who can absorb the costs.
It's illegal to record people without their permission, in certain jurisdictions. We're already stifling innovation!
It's illegal pay money for certain services. We're already stifling innovation!
You're arguing against something negative that hasn't yet happened at the cost not doing anything to prevent something negative already happening right now.
youll also see "enable DRM playback" on many news sites or aggregators. both of these actions are user-hostile attempts from not-google to target ads to you.
It sounds like you have developed a full-on mobile application at that point.
And I'm fairly sure it's easier to write an HTML page with a couple of lines of JS using webUSB than it is to develop a mobile all with all the boilerplate.
Websites are getting obnoxious these days. Most tracking software on them will trigger all kinds of authorization modals for various APIs. And you can bet there will be a bunch it will try to use without authorization if there's a work-around.
It's all fingerprinting to sell data.
If you consider the stuff Google, microsoft or apple, etc do, claimed to be doing, being suspected of doing. I don't consider this to be a very positive development.
It’s more like a captcha for browsers, i.e. if the user is using a real browser it should behave in a way that pre-scripted bots can’t easy replicate. The payload is auto-injected by Akamai so the expected behaviour can be altered in a non-deterministic way.
Oh, and please add [2019] for clarity, thanks.