-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 28.05.2012 21:40, schrieb Simon Rothe:
> Hello everyone,
> 
> my name is Simon. OpenPGP.js is a great project, that made my life
> a lot easier! Recently, I am working on an extension that encrypts
> messages on facebook. For chrome I got the job done. I am quite
> satisfied with my prototype. Hence it is my task now, to port that
> code to firefox. Getting started with firefox extensions is quite
> hard and I wounder about the best way to include OpenPGP, because
> there are no background pages like in chrome. I guess that someone
> of you might have a similar problem (solved).
> 
> If not, my approach is in that direction: 
> https://builder.addons.mozilla.org/addon/1054309/latest/ There I
> try to rebuild the contentscript - background page architecture of
> chrome. But I fail to send messages back from the background page.
> I exposed that problem here 
> https://builder.addons.mozilla.org/addon/1053549/latest/ Whenever I
> put "self.port.emit("Message2", "This is the background page!");"
> into the function sendResponse() I get an error and the extension
> breaks.

I do not see the problem. It works fine for me. Firefox will give you
another big problem as window.crypto.getRandomBytes is not available
which is needed by OpenPGP.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPyLgaAAoJECvXQ9f0b0Ho494H/0c5RKqmhbPu48j/AZhfix/s
qAXZlmlbFkvDcc3b3GDT8BgCXpJXVnCFLFKPjcC8CFOFnePyECYNFdrl/wPb5fc/
PzgKuwuwhPkSKAnv0UltngPiwM49z+oGiIMOm2jM0MiLjVS5KPZcWVVfAk2JuTor
MesjQ8JdWVbfWhaYF7tVidqiGxI+cCTO5Gsa4Z9mBLDhDa5tKeMwSOabICmgCkNj
bzcT6eIaPYMNqth2H7CFQaK8/qU7W5CwVTv4/1/hu4ZxL4E8disvt/EshJcd0goz
3llcFAOvOwNKsFp0b7kVkFvvH59zr4UAzr0xNKHMs1CxwnZy0RdrWfHkG/NH9z8=
=AgFD
-----END PGP SIGNATURE-----
_______________________________________________

http://openpgpjs.org

Reply via email to