Hi,
   I have developed a native XPCOM component.But when I want to call it

from javascript,I happened some  problem . And someone give
the suggestion as following:
1)  Implementing nsISecurityCheckedComponent (to allow access to
specific
    properties or methods).
2)  Implementing nsIClassInfo with the right magic flags (claiming to
be a DOM
    class?).  This will, for example, allow same-origin access to
properties and
    methods unless something else overrides that access level.
3)  Installing an accessor (constructor or service accessor?) for your
component
    on Window objects.  For example, see how XMLHttpRequest used to
work before
    it got moved into the core code...

    But I can't understand the suggestion,more concretely speaking,I
can't follow even one step.Can someone give me some implement
example.Thanks very much...

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to