holtavolt
holtavolt

Reputation: 4468

Does CEF3 support NaCl?

Has anyone had success in enabling NaCl/PNaCl support in the CEF3 (Chromium Embedded Framework)?

I find that Chrome (34) can run the PNaCl samples on this page fine, but the cefclient distributed at cefbuilds.com (Windows, 1916 branch) does not.

Chrome lists the ppGoogleNaClPluginChrome.dll as a PPAPI (in-process) plugin on chrome://plugins, while the cefclient app doesn't have this plugin listed (Test/Plugins menu option)

I've pulled down the source, and don't see any NaCl depedencies for the libcef target, and also see this issue filed for the CEF project, which make me suspect that this is currently only available for Chromium/Chrome.

--- Update --- There has been quite a bit of activity on this question recently, I suspect in part due to the bounty, and also because Chrome/Chromium is now actively deprecating NPAPI.

If you would like to encourage the CEF team to prioritize work on adding NaCl/PNaCl support, please vote for the issue here: http://bitbucket.org/chromiumembedded/cef/issue/705#

Upvotes: 25

Views: 2117

Answers (2)

Alexandre Pereira Nunes
Alexandre Pereira Nunes

Reputation: 1088

In 2017 June, CEF3's plan to eventually suport NACL was officially dropped as mentioned in https://bitbucket.org/chromiumembedded/cef/issue/705

This is due to chromium moving to replace NACL by Webassembly.

There's some work in CEF3 in that direction: accordingly to https://bitbucket.org/chromiumembedded/cef/issues/2101/add-webassembly-support there's wasm support in v8 engine and it can be enabled by specific flags.

Upvotes: 0

Jehan Wijesinghe
Jehan Wijesinghe

Reputation: 64

From the CEF Forum:

CEF does not include the NaCl pepper (ppapi) plugin which is required to load NaCl applications. So you need to tell CEF where to find the NaCl plugin via the command-line. I'm not sure of the exact command-line, but you can use this as a guide: viewtopic.php?f=10&t=10509

You can get the plugin from an equivalent version of Google Chrome of you can build it from source code. For more information see http://www.chromium.org/nativeclient/getting-started/getting-started-background-and-basics.

I haven't tested NaCl support in CEF myself so it's possible that other changes may be required.

Upvotes: 3

Related Questions