Re: How to call native code from javaScript

2006-08-30 Thread huazilin
Hi, I have developed a native XPCOM component.But when I want to call it from javascript,I happened the same problem with you.And someone give the suggestion as following: 1) Implementing nsISecurityCheckedComponent (to allow access to specific properties or methods). 2) Implementing nsICl

Re: How to call native code from javaScript

2006-08-08 Thread matra
Boris, Thank you for the answer. Matra "Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > matra wrote: >> How can I create an instance of a compoent that implements >> nsISecurityCheckedComponent . I can not access Components property when I >> do not enable Unicera

Re: How to call native code from javaScript

2006-07-26 Thread Boris Zbarsky
matra wrote: How can I create an instance of a compoent that implements nsISecurityCheckedComponent . I can not access Components property when I do not enable UniceralXPCOMConnect ... I mentioned that already: 3) Installing an accessor (constructor or service accessor?) for your component

Re: How to call native code from javaScript

2006-07-26 Thread Boris Zbarsky
matra wrote: Does nsISecurityCheckedComponent works in earlier browsers (FF 1.0 and Netscape 7.0)? It should, I believe. -Boris ___ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: How to call native code from javaScript

2006-07-26 Thread matra
Hi, How can I create an instance of a compoent that implements nsISecurityCheckedComponent . I can not access Components property when I do not enable UniceralXPCOMConnect //netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); // don't enable obj = Components.classes[cid]

Re: How to call native code from javaScript

2006-07-25 Thread matra
Boris. Thanks for the asnwers. They were vrey helpfull. Does nsISecurityCheckedComponent works in earlier browsers (FF 1.0 and Netscape 7.0)? Bye, Matej "Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > matra wrote: >> - is it possible to enable UniversalXPCon

Re: How to call native code from javaScript

2006-07-25 Thread Boris Zbarsky
matra wrote: - is it possible to enable UniversalXPConnect for internet pages? Yes, if you sign them. If you're not able or not willing to do this, we can't trust them enough to give them free run of the user's machine, of course. - is it possible to grant JavaScript access to just specific

Re: How to call native code from javaScript

2006-07-25 Thread matra
HI. Thanks for the answer. Unfortunately, I can not used signed pages, because I would have to sign all the contents 8html and all the included javaScript files). This is not possible, because page is generated dynamically on the server. Any other ideas? Bye, Matra "John Bandhauer" <[EMAIL P

Re: How to call native code from javaScript

2006-07-25 Thread John Bandhauer
You might start by reading this... http://www.mozilla.org/projects/security/components/signed-scripts.html I'm not sure exactly how up to date it is. And, there a bound to be other useful documents. But, a quick look at it suggests to me that it is a good primer on the mozilla privilege-based