Loading...
Loading...
WebUSB extension for Firefox
A WebUSB extension for Firefox adds WebUSB support by using a native messaging helper (“native stub”) that must be installed alongside the browser extension. Users can install signed .xpi releases or load a temporary add-on for testing, and must run platform installers (install.sh/install.bat) or build the Rust-based native stub from source. Prebuilt native binaries target macOS (x86_64, ARM64), Linux (x86_64, aarch64), and Windows (AMD64, ARM64). The project documents system requirements (macOS 10.15+, Windows 10+, Linux kernel 4.8+/specific USBDEVFS features, udev/netlink support) and warns about issues in uncommon setups like shared home directories or roaming profiles. Cross-compilation and static musl builds are supported.
A community extension brings WebUSB support to Firefox by using a small native helper program (the “native stub”) plus a browser add-on. Users must install the .xpi extension and a platform-specific native stub (prebuilt for macOS, Linux, and Windows, or built from Rust source). The native manifest and installer handle integration but can fail in uncommon setups (shared home dirs across architectures, roaming profiles). System requirements are modern desktop OS versions and specific Linux kernel/udev features. The project targets cross-platform compatibility via Rust and musl static builds, with notes for macOS SDKs, glibc concerns, and cross-compilation tips. This matters because it enables direct USB device access from web apps in Firefox, expanding web hardware interactions beyond Chromium browsers.
A proof-of-concept WebUSB extension for Firefox surfaced on Hacker News and GitHub, sparking debate about implementing WebUSB outside Chromium. The extension (repo by arcanenibble) demonstrates enabling browser access to USB devices, but commenters raised security concerns, the need to avoid standalone executables paired with the browser, and urged waiting until the WebUSB spec is finalized. Proponents argue WebUSB reduces reliance on installing native drivers, improving device interoperability; critics warn of phishing-like consent prompts and attack surface expansion if browsers expose device-level access. The discussion matters for browser vendors, web developers, hardware makers, and security teams deciding how and when to support WebUSB in Firefox.
WebUSB extension for Firefox