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
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
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
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
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]
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
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
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
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
Hi,
I have developed a native XPCOM component. I would like to call it from
JavaScript, but have bumped into the following problem:
It looks like UniversalXPConnect permission can only be enabled from pages,
that have been loadad from local disk. The privilege can not be enabled for
pages load
10 matches
Mail list logo