vim.wasm icon indicating copy to clipboard operation
vim.wasm copied to clipboard

" '' should be object " appears when starting firefox

Open in-die-nibelungen opened this issue 5 years ago • 5 comments

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

  1. Access https://rhysd.github.io/vim.wasm/ with firefox: will stay black (nothing be shown on the page).
  2. 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)

ShouldBeObject

Your environment

  • OS: Windows 10
  • Browser: Firefox
  • Browser Version: 72.0.1 (64 bit)

in-die-nibelungen avatar Jan 18 '20 13:01 in-die-nibelungen

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

rhysd avatar Jan 18 '20 13:01 rhysd

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.

digg33 avatar Apr 03 '20 10:04 digg33

Thanks for the confirmation. Currently I have few resource for new project, but I'll try this (hopefully) on this weekend.

rhysd avatar Apr 08 '20 11:04 rhysd

@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

levidavidmurray avatar Sep 25 '20 23:09 levidavidmurray

yes please :)

sheerun avatar Oct 04 '20 23:10 sheerun