2 Nov 2007 08:30
Use signed scripts in JSP pages
MarineW <boite-a-spams-marine <at> aliceadsl.fr>
2007-11-02 07:30:48 GMT
2007-11-02 07:30:48 GMT
Hello, I have to use JavaScripts that require special privileges from Firefox. So I need to sign theses scripts in JAR files, with NSS tool. But I have a problem as these scripts are then used from JSP pages. It is written here (http://www.mozilla.org/projects/security/components/signed-scripts.html#signing), the following : "The major difference in signing scripts between 4.x and Mozilla is that in Mozilla, the entire page must be signed, as opposed to only the script running on the page. For any script to be granted expanded privileges, all scripts on or included by an HTML page must be signed." If I understand this correctly, I have to include HTML pages that call Javascript functions into the signed JAR. But as I don't use HTML, but JSP pages, how can I proceed ? Thanks for any help. PS : Today, when calling a JavaScript function located in a jar, from a JSP, I have the following error : Erreur : [Exception... "'Permission refusée d'obtenir la propriété UnnamedClass.classes' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] PS2 : Or maybe is there another way to do what I have to...(Continue reading)
RSS Feed