frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

WebUSB Extension for Firefox

https://github.com/ArcaneNibble/awawausb
69•tuananh•3h ago

Comments

Orygin•2h ago
No thanks. I'll accept it in my browser when they fix the security implications this raises, and when the Spec is no longer in draft.
gear54rus•1h ago
And I'll just fire up a chrome instance which I specifically keep for when my daily driver firefox decides to spazz out and not implement basics in 2026 :'(
lpcvoid•1h ago
How do you make sure that technically illiterate people don't just click away the requestDevice() popup? IMHO a browser offering device level USB access is a security nightmare and there is no way this can ever be made safe and convenient at the same time.
zb3•1h ago
They can click everything away, so maybe educate them or buy an ios device for your relatives instead of breaking computing for everyone else.
lpcvoid•1h ago
Fair, but remember that we are the <~1% of people who even know what webusb is. I'm not sure I share your view on this.

Maybe an about:config switch to enable it would be enough to stop casuals from pwning their peripherals.

barnabee•48m ago
I’d be ok with an about:config switch, but given that many people will install anything, paste arbitrary text into terminals, and share their password/pin code with complete strangers for almost no reason, I think we need to stop making our tools less powerful in pursuit of an impossible goal.
Orygin•43m ago
> breaking computing for everyone else

How is not implementing a Draft spec, which may compromise security badly, breaking computing?

Overreacting much?

zb3•21m ago
This is not just an isolated incident, it's the whole trend of limiting capabilities in the name of security and that's what I was referring to.

However in this particular case, even the security argument doesn't hold, either I:

a) know that I want to use USB - in that case I'll switch browsers or download a native binary (even more unsafe), it's not that I'd decide that I no longer want to flash my smartphone

b) I don't understand what's happening but I follow arbitrary instructions anyway - WebUSB changes nothing.

troupo•21m ago
> They can click everything away, so maybe

So maybe don't populate the browser with dozens of features requiring permission popups?

exe34•1h ago
You can ask them to type one of the following sentences:

"I know what I'm doing, and giving a random website access to my USB host is the right thing to do."

"I'm an idiot."

gear54rus•1h ago
You simply don't. This quest of saving idiots from themselves is not gaining anyone anything and meanwhile other people get more and more useless restrictions.
Orygin•45m ago
Or you can just not give a loaded shotgun to every browser user on the off chance they need to interact with 1 (one) usb device per year.
limagnolia•1h ago
Isn't that the same excuse Gooogle is using to lrevent folks from installing what they want on Android phones?
baby_souffle•1h ago
Essentially, yeah.
skydhash•6m ago
I do not agree with Google on preventing apk installation. But unknown apk is a different risk profile than letting unknown entities to access local usb devices.

The main issue in the former case is that google is posing itself as a gatekeeper instead of following a repo model like Debian or FreeBSD. That’s wanting control over people’s device.

Allowing USB access is just asking to break the browser sandbox, by equating the browser with the operating system.

yjftsjthsd-h•31m ago
Are you calling WebUSB a basic feature? Because I'm willing to discuss whether we should have it, but that seems like an exaggeration.
Retr0id•1h ago
The security implications of not having WebUSB are having to install untrustworthy native drivers every time you want to interface with a USB device.
skydhash•1h ago
That sounds like a Windows problem.
Retr0id•1h ago
I'm not familiar with the Windows platform but although you can have userspace USB drivers on linux, you still need to be able to run code that can talk to the sysfs interface.
Lerc•1h ago
The Linux problem is more

Hope every time you want to interface with a USB device.

monegator•1h ago
Not really, as long as the firmware developers used OS 2.0 descriptors

(For the rare occurences that our customer is using 7 or earlier, we tell them to use zadig and be done with it.)

PunchyHamster•1h ago
You can have userspace drivers for usb devices in Linux
scottbez1•1h ago
How does the security of userspace drivers compare to having drivers within a sandboxed web environment with access to only the devices you’ve explicitly allowlisted?
monegator•1h ago
you do know microsoft OS 2.0 descriptors are a thing, right? or that you can force the unknown device to use WinUSB

but really most devices you want to interface to via webusb are CDC and DFU so.. problem solved?

Retr0id•1h ago
I'm unfamiliar with the Windows platform but that sounds like something that still requires executing code locally.
monegator•1h ago
Not sure what you mean.

Anyway OS 2.0 descriptors are a custom USB descriptor that basically tells the device to use WinUSB as the driver. The burden then is in the application that will have to implement the read/writes to the endpoints instead of using higher level functions provided by the custom driver.

If you ever developed software with libUSB, using WinUSB on the windows side makes things super easy for cross platform development, and you don't have to go through all the pain to have a signed driver. Win-win in my book.

pjc50•1h ago
.. or HID ( https://usevia.app/ , for programmable keyboards)
monegator•1h ago
yes, you can always use some nasty protocol over HID for your devices. But really most of what i do is one or multiple bulk endpoints so i can achieve full bandwidth (downloading firmware, streaming data, ...) OS2.0 made it possible to do it without having to write and sign a driver
1313ed01•1h ago
Sounds like something that could have a standalone usb-driver-container or special chromium fork for the 0.00001% of users that need it instead of bloating every browser with yet another niche API and the inevitable security holes it will bring.
rafram•1h ago
On macOS, I think I've installed device drivers exactly once in the last decade, and they were for a weird printer.
kristofferR•54m ago
Most device drivers nowadays aint necessary to solely get the device working, but to get it working well. All keyboards will work out of the box without any drivers/webusb-pages, but good luck configuring rapid triggers on your Wooting keyboard or a DPI-switching macro on your Logitech mouse without it.
fhn•29m ago
why would you be using untrustworthy hardware to begin with?
jazzyjackson•5m ago
everyone has a different threshold at which they would consider something 'untrustworthy'

Curious what your floor is for 'trustworthy', a company with a US headquarters? Personally I feel sketched out by any silicon not made in Sweden or Japan, so, pretty much all of it.

tjoff•16m ago
The security implications if this goes mainstream is that you are expected to do this for all kinds of hardware.

Right now that isn't the case and I can't remember last the time I had to uninstall untrustworthy native drivers.

A lot to lose, very little to gain?

zb3•1h ago
What are the security implications this raises that downloading native programs (needed for example to flash my smartphone) doesn't raise?
barnabee•46m ago
None. People will follow any instruction presented to them when they think it will get them something they want. Mozilla’s stance here is infuriating.
troupo•22m ago
> What are the security implications this raises that downloading native programs (needed for example to flash my smartphone) doesn't raise?

1. Permission popups fatigue

2. Usually users select the apps they install, most sites are ephemeral. And yes, even with apps, especially on Android, people click through permission dialogs without looking because they are often too broad and confusing. With expected results such as exfiltrating user data.

afavour•1h ago
Looks to be a great proof of concept. No, running a standalone executable alongside the browser is not the way you'd want to do WebUSB. But it's great to see someone working on it.
Orygin•42m ago
Running directly in the browser is also not how I'd want to do USB.
afavour•31m ago
When the alternative is downloading arbitrary executables I find the browser sandbox to be a reassurance.
sva_•1h ago
I recently flashed GrapheneOS on a Pixel for a friend. I was very surprised that you can do this entire process from the browser using WebUSB - the only downside being that it required me to launch Chromium.
infogulch•1h ago
You can flash GrapheneOS on a Pixel from another pixel, no pc required at all. I've done it several times, this is what sold me on the utility of WebUSB. You can use GOS' own distribution of chromium, Vanadium, if you have a GOS device and you want to avoid Chrome.
lxgr•44m ago
Web USB and Web Bluetooth are amazing. I've used the former for the excellent Web MiniDisc [1], and the latter to flash custom firmware [2] on cheap Xiaomi Bluetooth LE thermometer/hygrometer devices that Home Assistant can pick up.

Truly opening new possibilities, since I wouldn't have been comfortable running some sketchy script or local binary.

[1] https://web.minidisc.wiki/ [2] https://github.com/pvvx/ATC_MiThermometer

shevy-java•53m ago
Can't Mozilla hand over Firefox to another team?
Zopieux•35m ago
And Web Serial reached mainline Firefox last week.

I hope Mozilla can eventually stop playing their silly role in the security theater of “but what if our users are dumb” and actually deliver those "power-user" features that would allow me to uninstall Chrome for good. Oh, and also, --app= flag please.

troupo•25m ago
> their silly role in the security theater of “but what if our users are dumb”

It's not security theater. If you go to Chromium settings -> Site settings -> permissions, and expand "additional permissions", you will see a total of 26 different permissions, each gated by the same generic "you want to use this" popup.

Permission popup fatigue is quite real, and not a security theater. And that's on top of the usual questions of implementation complexity etc.

nezza-_-•33m ago
WebUSB is so great.

I can ship a cross-platform application that accesses a hardware device without having to deal with all the platform specifics, and with decent sandboxing of my driver.

I think one way to make it more "secure" against unwitting users would be to only support WebUSB for devices that have a WebUSB descriptor - would allow "origin" checking.

npodbielski•24m ago
Interesting. So I could use that to install Graphene OS?
chillfox•24m ago
Well, this seems like a terrible idea. I really don't want websites to be able to access hardware. I am already uncomfortable with the webcam access.
q3k•17m ago
Then don't select the device and don't press the 'allow' button when prompted.
Brian_K_White•12m ago
Whether we like it or not, the distinction between an app and a web page has already eroded, and is, and only will be, eroding more.

Even for local apps it's starting to become common to ship the app in an interpreted language where the interpreter is a browser instead of say python & qt.

Brian_K_White•6m ago
People are starting to ship even local apps only in the form of some html & js that only works on Chrome because only Chrome has webusb.

Whether we like the idea of the browser having access to usb or not, I at least like even less the idea of being forced to install and use Chrome for the same reasons as the bad old days of being forced to use IE.

Qwen3.6-Max-Preview: Smarter, Sharper, Still Evolving

https://qwen.ai/blog?id=qwen3.6-max-preview
103•mfiguiere•1h ago•40 comments

Atlassian Enables Default Data Collection to Train AI

https://letsdatascience.com/news/atlassian-enables-default-data-collection-to-train-ai-f71343d8
138•kevcampb•3h ago•33 comments

All phones sold in the EU to have replaceable batteries from 2027

https://www.theolivepress.es/spain-news/2026/04/20/eu-to-force-replaceable-batteries-in-phones-an...
323•ramonga•1h ago•146 comments

ggsql: A Grammar of Graphics for SQL

https://opensource.posit.co/blog/2026-04-20_ggsql_alpha_release/
130•thomasp85•2h ago•35 comments

GitHub's Fake Star Economy

https://awesomeagents.ai/news/github-fake-stars-investigation/
428•Liriel•7h ago•249 comments

Sauna effects on heart rate

https://tryterra.co/research/sauna-effect-on-heart-rate
186•kyriakosel•1h ago•111 comments

10 years ago, someone wrote a test for servo that included an expiry in 2026

https://mastodon.social/@jdm_/116429380667467307
75•luu•20h ago•38 comments

M 7.4 earthquake – 100 km ENE of Miyako, Japan

https://earthquake.usgs.gov/earthquakes/eventpage/us6000sri7/
158•Someone•5h ago•67 comments

WebUSB Extension for Firefox

https://github.com/ArcaneNibble/awawausb
71•tuananh•3h ago•54 comments

I prompted ChatGPT, Claude, Perplexity, and Gemini and watched my Nginx logs

https://surfacedby.com/blog/nginx-logs-ai-traffic-vs-referral-traffic
3•startages•9m ago•0 comments

OpenClaw isn't fooling me. I remember MS-DOS

https://www.flyingpenguin.com/build-an-openclaw-free-secure-always-on-local-ai-agent/
156•feigewalnuss•7h ago•194 comments

Ask HN: How to solve the cold start problem for a two-sided marketplace?

47•alegd•1h ago•49 comments

Focused microwaves allow 3D printers to fuse circuits onto almost anything

https://newatlas.com/electronics/meta-nfc-focused-microwaves-circuits/
100•breve•2d ago•16 comments

NSA is using Anthropic's Mythos despite blacklist

https://www.axios.com/2026/04/19/nsa-anthropic-mythos-pentagon
275•Palmik•5h ago•220 comments

Up to 8M Bees Are Living in an Underground Network Beneath This Cemetery

https://www.discovermagazine.com/up-to-8-million-bees-are-living-in-an-underground-network-beneat...
123•janandonly•2d ago•20 comments

SDF Public Access Unix System

https://sdf.org/?ssh
137•neehao•1d ago•66 comments

What if database branching was easy?

https://xata.io/blog/what-if-database-branching-was-easy
38•tee-es-gee•2d ago•17 comments

I Made the "Next-Level" Camera and I love it

https://thelibre.news/i-made-the-next-level-camera-and-i-love-it/
155•ndr•3d ago•44 comments

IPC medley: message-queue peeking, io_uring, and bus1

https://lwn.net/Articles/1065490/
13•signa11•3d ago•0 comments

Epicycles All the Way Down (2025)

https://www.strangeloopcanon.com/p/epicycles-all-the-way-down
24•surprisetalk•4d ago•11 comments

Stop trying to engineer your way out of listening to people

https://ashley.rolfmore.com/stop-trying-to-engineer-your-way-out-of-listening-to-people/
342•walterbell•19h ago•191 comments

Claude Token Counter, now with model comparisons

https://simonwillison.net/2026/Apr/20/claude-token-counts/
170•twapi•14h ago•68 comments

Zero-copy protobuf and ConnectRPC for Rust

https://medium.com/@iainmcgin/zero-copy-protobuf-and-connectrpc-for-rust-69bda8ac0f02
107•PaulHoule•3d ago•31 comments

Turning a Chinese IoT camera into an owl livestream

https://blog.alexbeals.com/posts/owl-cam
13•dado3212•4d ago•0 comments

NASA Artemis Posters

https://www.nasa.gov/gallery/artemis/
57•bookofjoe•3h ago•9 comments

A Brief History of Fish Sauce

https://www.legalnomads.com/fish-sauce/
209•vinhnx•1d ago•89 comments

How Motorola’s 2N2222 and 2N3904 transistors became the default NPNs

https://www.allaboutcircuits.com/news/how-two-motorola-transistors-became-the-worlds-default-npns/
58•ChuckMcM•2d ago•23 comments

Who Is Blake Whiting?

https://theamericanscholar.org/who-is-blake-whiting/
31•Caiero•2d ago•6 comments

Turtle WoW classic server announces shutdown after Blizzard wins injunction

https://www.pcgamer.com/games/world-of-warcraft/turtle-wow-classic-server-announces-shutdown-afte...
291•Brajeshwar•23h ago•251 comments

Stripe's Payment APIs: the first 10 years (2020)

https://stripe.dev/blog/payment-api-design
84•tibbar•10h ago•44 comments