copy / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
19.81k stars 1.4k forks source link

Emulation Freezes when mixed content connection is made #420

Open BelleNottelling opened 3 years ago

BelleNottelling commented 3 years ago

If you try to use networking on an HTTPS page. but you're connected to an unsecured proxy (WS vs WSS), the entire emulation will freeze. I confirmed this in both Chrome and Firefox. It'll work just fine if I load the page over HTTP as then the browser won't block the mixed content. The only thing I see in the browser console is the warnings about blocking mixed content

copy commented 3 years ago

I removed a try-catch around the WebSocket instantiation in 00cf97fbf6744dfbac67c3c70dae9d7e99ba2e0f. Putting it back will probably fix this.

BelleNottelling commented 3 years ago

I see, I still don't have a work environment for V86. Last time I tried I wasn't able to get it working. Any suggestions for a windows PC or should I just create a VM or use WSL? Thanks

copy commented 3 years ago

WSL is probably nicest to work with. The Dockerfile is a good reference as a setup.