返回 2026-07-18
🛠 工具 / 开源

WebAssembly中的FirefoxFirefox in WebAssembly

simonwillison.net·2026-07-16 节选正文

Puter将Firefox编译为WebAssembly,使其能够在另一个浏览器中完整运行。作者展示了在Chrome中运行WebAssembly版Firefox并成功加载个人博客的过程。该WebAssembly文件大小达到233MB,展示了现代浏览器引擎的庞大体积。这一技术演示虽然看似荒谬,但展示了WebAssembly在运行复杂系统方面的强大潜力。

Simon Willison

16th July 2026 - Link Blog

Firefox in WebAssembly (via) This is absurdly cool: Puter compiled Firefox to WebAssembly such that the whole browser runs in another browser.

Here's my blog, running in Firefox, running in WebAssembly, running in Chrome:

They chose Firefox/Gecko because it has strong single-process support. The project used an estimated $25,000 worth of Claude Opus and Fable tokens, but took advantage of a Claude Max subscription plan so cost much less in actual dollars.

The demo funnels all traffic over a WebSocket protocol (using the Wisp protocol) through Puter's server - a requirement to get this kind of thing to work because code running in browsers can't open arbitrary network connections.

(That proxying sounds expensive! The team had to scale the servers up to handle the traffic during the Hacker News conversation about the project.)

Puter claim this supports end-to-end encryption and that looks to be true - I inspected the WebSocket messages and traffic to my own HTTPS site was encrypted whereas requests and responses to http://www.example.com/ were in cleartext.

Here's the repo for firefox-wasm. theogbob/WebkitWasm is a similar project that compiles WebKit to WASM, but that one doesn't currently have an accessible online demo.

需要完整排版与评论请前往来源站点阅读。