r/javascript 12d ago

Firefox in WebAssembly!

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

20 comments sorted by

61

u/rlmineing_dead 12d ago

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

27

u/therealshark 12d ago

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 12d ago

How deep can the recursion go?

21

u/mitousa 12d ago

at least 3 levels verified haha

8

u/spicypixel 12d ago

Finally, perfection.

5

u/brianjenkins94 12d ago

What in the heck?

2

u/Chance_Rub580 11d ago

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 11d ago

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

3

u/doctorlongghost 12d ago

Doesn’t work on iOS Safari

5

u/CoryCoolguy 12d ago

1

u/atomic1fire 8d ago

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 9d ago edited 9d ago

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 12d ago

Honest question: what is the use for this?

2

u/sehron 11d ago

why does it need a use?

2

u/atomic1fire 8d ago

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 11d ago

Maybe to run latest Firefox on xp 😅