vim.wasm
vim.wasm copied to clipboard
" '' should be object " appears when starting firefox
Describe the bug
The page stays black when accessing https://rhysd.github.io/vim.wasm/ with firefox. " '' should be object " appears on the bottom of the page as shown in the attached image.
Steps To Reproduce
- Access https://rhysd.github.io/vim.wasm/ with firefox: will stay black (nothing be shown on the page).
- Restart firefox, then you'll the screen as shown attached.
Expected behavior
The screen like vim will appear.
Actual behavior
The page stays black.
Screenshots/DevTools console (if possible)

Your environment
- OS: Windows 10
- Browser: Firefox
- Browser Version: 72.0.1 (64 bit)
Let me confirm pre-condition. Did you enable javascript.options.shared_memory
feature flag? By default Firefox does not enable it due to security reason as I described in README.md.
https://github.com/rhysd/vim.wasm#try-it-with-your-browser
Hi @rhysd, I am facing the very same issue. I have enabled the javascript.options.shared_memory
feature as directed in the README. I've also tried this on a fresh profile and on new installations of Firefox on different machines. In all cases there is a black page. Additionally, Chrome/Chromium works fine for all machines.
I am fairly certain that this is not working at all in the latest versions of Firefox.
Since I am not particularly familiar with wasm, I am unable to determine the source of the problem myself; would it be possible for you to run some tests on Firefox yourself? Thanks.
Thanks for the confirmation. Currently I have few resource for new project, but I'll try this (hopefully) on this weekend.
@digg33 The "should be an object" error is related to Vim Vixen, not vim.wasm
@rhysd Your top level document needs to be served with the following headers:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
yes please :)