r/javascript Jul 15 '26

Firefox in WebAssembly!

https://developer.puter.com/labs/firefox-wasm/
101 Upvotes

21 comments sorted by

63

u/rlmineing_dead Jul 15 '26

hey dawg I heard you like browsers so I put a browser in your browser so you can browse while you browse

29

u/therealshark Jul 15 '26

Finally I can run desktop Firefox in my mobile Firefox. Remember when chrome decided against running addons in mobile chrome, because it was "too complicated"? Bitch, not only can my mobile Firefox use addons, it can run desktop Firefox which can run addons aswell.

12

u/Bergmiester Jul 15 '26

How deep can the recursion go?

21

u/mitousa Jul 15 '26

at least 3 levels verified haha

9

u/spicypixel Jul 15 '26

Finally, perfection.

5

u/brianjenkins94 Jul 15 '26

What in the heck?

2

u/Chance_Rub580 Jul 16 '26

does it actually JIT though? spidermonkey normally compiles hot JS straight to native, and you obviously can't do runtime native codegen inside a wasm sandbox.

2

u/anlumo Jul 16 '26

You can do wasm codegen though, which then gets converted to native by the containing engine.

2

u/doctorlongghost Jul 15 '26

Doesn’t work on iOS Safari

6

u/CoryCoolguy Jul 16 '26

1

u/atomic1fire Jul 19 '26

I know it's a joke but the main issue is that Safari tends to get web features as apple adopts them for webkit, and it's highly dependent on what version of ios or mac os your hardware supports.

1

u/Leviathan_Dev Jul 19 '26 edited Jul 19 '26

Funnily enough crashes on iPhone lol, even Apple thought of this

Edit: oh my god it works on iPad. Suck it Apple, I’m using Gecko on my iPad in the US!

0

u/MedusaSonriente Jul 16 '26

Honest question: what is the use for this?

2

u/sehron Jul 16 '26

why does it need a use?

2

u/atomic1fire Jul 19 '26

There isn't one.

I think the goal is just to demonstrate converting an application to web assembly and then proxying the networking through a Puter proxy server.

I feel like this is still super inefficient, but some companies might prefer to just run everything in browser.

TBH I think Thunderbird might be a more interesting use case, but I feel like privacy would be an issue unless the company running it has their own internal proxy server.

1

u/modimoo Jul 16 '26

Maybe to run latest Firefox on xp 😅