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

Support Mac sandbox v2 (branch 3538 and above) #37

Open
lvsti opened this issue Nov 23, 2018 · 0 comments
Open

Support Mac sandbox v2 (branch 3538 and above) #37

lvsti opened this issue Nov 23, 2018 · 0 comments

Comments

@lvsti
Copy link
Owner

lvsti commented Nov 23, 2018

Branch 3538 (based on Chromium 70) changed the way helper processes are sandboxed, basically by eliminating the unsandboxed warmup phase (spanning from when the dynamic linker has loaded CEFswift/CEF up to the point CEFExecuteProcess was invoked). This will affect considerably how CEFswift may be used in the helper process, and I haven't yet figured out the answer.

To keep up with the builds, I decided to release 3538 half-baked. What this means to you as a CEF.swift end-user:

  • if you like to live dangerously, pass --disable-features=MacV2Sandbox to the browser process in the command line (note: it won't work forever) and keep using the helpers as before (see main.swift in CEFDemo for an example)
  • otherwise, for now you can either:
    • use (and optionally extend) the updated C/C++ helpers (I know, I know)
    • stay on branch 3497 that still uses the old sandboxing model

In the meantime, I'll try to come up with a definitive solution.

More info:

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

No branches or pull requests

1 participant