"Kaspar Brand" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Nelson B wrote:
>> I seem to recall that -X either
>> a) is used instead of -Z (e.g. just "-X myextension.xpi"), or
>> b) must come after -Z (e.g. "-Z myextension.xpi -X")
>
> signtool is sometimes somewhat picky about the argument ordering, that's
> true. However,
>
> signtool -d mycertdbdir -k mynick -p mypass -X -Z myext.xpi mysrcdir
>
> *will* work, provided that signtool is v3.10 or later. After all,
> signtool's usage says:
>
> -X Create XPI Compatible Archive
> (used in conjunction with the -Z)
> -z omit signing time from signature
> -Z "jarfile" create JAR file with the given name.
> (Default compression level is 6.)
>
>
>> The whole purpose of -X is to create an XPI file with the files in the
>> required order. And it does work.
You're right, this option create a valid XPI file !!
I think during my last try, i must have forgotten the password ...
So thanks a lot, now the package is correctly installed !
But i have another problem when trying to use my component from a web page
:s
I think it is a security issue because javascript can use it when executed
from local with a security alert, but nothing works when executed from web.
At the beginning, i was thinked that signing my package will correct this,
but the problem is still present.
Do you have an idea ??
here , you can find my javascript sample :
---------------------------------------------------------------------------------------------------
function run ()
{
try
{
alert( "Demarrage du test" );
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var interface = Components.interfaces.IMedialiveAgent;
alert( "On recupere l'objet par contrat");
var cppClass = Components.classes["@medialive.com/MedialiveAgent;1"];
alert( "on instancie le composant" );
var cppComponent = cppClass.createInstance(interface);
alert("on recupere l'interface");
cppComponent = cppComponent.QueryInterface(interface);
TestAgent( component );
document.write("<p><font color='green'>Test reussi</font></p>");
}
catch( e )
{
document.write("<p><font color='red'>Une exception est survenue dans le
run !</font></p>");
}
}
</script>
</head>
<body onLoad="run();">
</body>
</html>
----------------------------------------------------------------------------------------
In local web page, method TestAgent will be successfully called.
>From web site page, i think code fail at this line "var interface =
Components.interfaces.IMedialiveAgent;"
So how must i use my component ?
> Yes, it does ;-) (https://bugzilla.mozilla.org/show_bug.cgi?id=248751
> *did* fix the problem, indeed.)
>
> Ahryman40k wrote:
>> I have forgetten to specify i am under windows XP.
>> I zip myself the content of the directory once it has been signed,
>> zigbert.rsa must be the first file in archive !
>
> I'd bet you forgot to add META-INF/manifest.mf and
> META-INF/zigbert.sf... what does "unzip -l extension.xpi" give as
> output? ("jar tvf" also does the trick, if you have a JDK on your box)
>
> Kaspar
_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto