Discussion:
'new Pkcs11()' fails
Viktor Tarasov
2009-11-02 13:10:30 UTC
Permalink
Hi,

in my xulrunner application, that I've compiled with the current
mozilla sources, I cannot instantiate the Pkcs11 DOM object.

This code
try {
var Pkcs11 = new Components.Constructor("@mozilla.org/security/
pkcs11;1", "nsIDOMPkcs11");
var myPkcs11 = new Pkcs11();
......
throws an error at the 'new Pkcs11()' line:
error [Exception... "Component returned failure code: 0x80570015
(NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]"
nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)"

Anybody can help me, please?

It's working (in DEBUG mode), compiled from the sources with
MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .


Kind wishes,
Viktor Tarasov.
Viktor Tarasov
2009-11-02 15:25:15 UTC
Permalink
Post by Viktor Tarasov
Hi,
in my xulrunner application, that I've compiled with the current
mozilla sources, I cannot instantiate the Pkcs11 DOM object.
This code
try {
pkcs11;1", "nsIDOMPkcs11");
    var myPkcs11 = new Pkcs11();
......
error [Exception... "Component returned failure code: 0x80570015
(NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]"
nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)"
Anybody can help me, please?
It's working (in DEBUG mode), compiled from the sources  with
MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .
It's working in RELEASE mode when compiled from the sources with
MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .
Post by Viktor Tarasov
Kind wishes,
Viktor Tarasov.
Ted Mielczarek
2009-11-02 15:58:53 UTC
Permalink
Post by Viktor Tarasov
It's working (in DEBUG mode), compiled from the sources with
MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .
I don't have an answer to your question, but note that the code in CVS is an
older stable branch at this point, and the latest code is in our Mercurial
repository:
https://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial)

-Ted

Loading...