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

PPAPI support for Chrome #38

Open
ghost opened this issue Jun 4, 2014 · 2 comments
Open

PPAPI support for Chrome #38

ghost opened this issue Jun 4, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2014

Google has discontinued NPAPI support, WebPG is not working on latest Chrome browser in our Linux boxes.
Are you planning to implement PPAPI for Chrome compatibility?
thanks in advance

@kylehuff
Copy link
Owner

kylehuff commented Jun 4, 2014

While PPAPI would be the desired route, as I understand it, PPAPI (without Native Client - "NaCl") is not a viable option. My understanding is that PPAPI plugins (without NaCl) have no mechanism in which to install them. The issue with providing a PPAPI plugin with NaCl is the very restrictive sandbox (no fork, exec, etc.) and lack of ability to call, pipe or otherwise interact with an external binary/library (no way to communicate with GnuPG). If the above statements are ill-informed, I would love to hear about.

In the meantime, I have reluctantly changed the architecture in order to support "Native Messaging", which is a "messaging host" (binary) that is registered within chrome via a manifest (and registry key in windows), and communicates via STDIN/STDOUT.

The project kylehuff/libwebpg is actually used by webpg-npapi, and it provides the abstracted GnuPG methods, and webpg-npapi provides the NPAPI portion. kylehuff/libwebpg can be compiled as either a binary or library, which provides support for both Native Messaging (binary) and Mozilla's JS-CTYPES (library).

I plan to actually publish this information in the libwebpg wiki, however I have been left scrambling to react to the fact that Native Messaging has no in-built mechanism to install or bundle the "host" into the host operating system; that would require an external, out-of-band installer (which has crippled one of my projects that uses used webpg-npapi in chrome).

Some information about native messaging can be found here: https://developer.chrome.com/extensions/messaging#native-messaging

And my arguments/disdain regarding the Native Messaging implementation has been noted here: https://code.google.com/p/chromium/issues/detail?id=321628#c26

I should note, kylehuff/libwebpg is currently under heavy testing, and I have a few hundred lines of changes that are pending (not yet committed). I hope to have the improvements/fixes pushed out this weekend.

@kylehuff
Copy link
Owner

kylehuff commented Jun 4, 2014

Apparently the markdown was not working all that great, by kylehuff/libwebpg I mean https://github.com/kylehuff/libwebpg

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