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

Chromium Sandbox Support #124

Open
chrismohr opened this issue Oct 11, 2018 · 0 comments
Open

Chromium Sandbox Support #124

chrismohr opened this issue Oct 11, 2018 · 0 comments

Comments

@chrismohr
Copy link

chrismohr commented Oct 11, 2018

Unless I'm missing something, it's not possible to use this package within sandbox enabled browser.

Challenges:

  1. I can't require it in the preload script because sandbox mode doesn't allow requiring external modules.
  2. It crashes when using electron.remote.require from the preload script because it's expecting to run in the renderer process, not the main process. (TypeError: Cannot read property 'Menu' of undefined when loading the module via require('electron').remote.require('electron-spellchecker') #70) is about that error.
  3. Bundling it with webpack doesn't help, because it requires native node modules through debug like util, that are also blocked by sandbox.

Potential Solutions:

  1. Remove all node native dependencies, so that it can be bundled.
  2. Support running in the main process.
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

1 participant