Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" '' should be object " appears when starting firefox #40

Open
in-die-nibelungen opened this issue Jan 18, 2020 · 5 comments
Open

" '' should be object " appears when starting firefox #40

in-die-nibelungen opened this issue Jan 18, 2020 · 5 comments

Comments

@in-die-nibelungen
Copy link

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)
@rhysd
Copy link
Owner

rhysd commented Jan 18, 2020

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

@digg33
Copy link

digg33 commented Apr 3, 2020

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.

@rhysd
Copy link
Owner

rhysd commented Apr 8, 2020

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

@levidavidmurray
Copy link

@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

@sheerun
Copy link

sheerun commented Oct 4, 2020

yes please :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants